Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NX-OS gRPC Python connectivity library.

License

NotificationsYou must be signed in to change notification settings

cisco-ie/nx-os-grpc-python

Repository files navigation

LicenseCode style: black

NX-OS gRPC Python connectivity library. Proto files sourced fromdocumentation.

Development

Requires Python and recommendspipenv. Manual usage ofpip/virtualenv is not covered. Usesblack for code formatting andpylint for code linting.

Get Source

git clone https://github.com/cisco-grpc-connection-libs/nx-os-grpc-python.gitcd nx-os-grpc-python# If pipenv not installed, install!pip install --user pipenv# Now use pipenv, source from lockfilepipenv --three install --dev --ignore-pipfile# Or use latest libraries./update_deps.sh# Enter virtual environmentpipenv shell# Do your thing.exit

Clean Code

We useblack for code formatting andpylint for code linting.clean_code.sh will runblack against all of the code undernxos_grpc/ except forprotoc compiled protobufs, and runpylint against Python files directly undernxos_grpc/. They don't totally agree, and we aren't using perfect naming conventions in some cases, so we're not looking for perfection here.

./clean_code.sh

TODO: Add pre-commit hook to automatically run black if any Python files are being committed.

Recompile Protobufs

If a newnxos_grpc.proto definition is released, useupdate_protos.sh to recompile. If breaking changes are introduced the wrapper library must be updated.

./update_protos.sh

TLS Usage

In order to use a secure channel you must acquire the necessary gRPC PEM files,grpc.pem. This PEM file is found with your downloaded gRPC Agent RPM. You must then specify the file path or the content of this PEM file when initializing the Client class.

TODO: Where to acquire gRPC Agent RPM?

Issues

Open an issue :)

  1. A potential issue that might arise is that this library uses the latestgrpcio andprotobuf packages whereas the NX-OS gRPC server was built against 0.11.1 which is ~2016 and lacks compatibility documentation. If an issue is encountered we will go down the rabbit hole, ignoring until then. Tracking in#2.

Contribution

Big thanks to Kyoung Yun for a reference client implementation.

About

NX-OS gRPC Python connectivity library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp