cradlepoint / api-samples Goto Github PK
View Code? Open in Web Editor NEWSample code for the NetCloud Manager API
License: MIT License
Sample code for the NetCloud Manager API
License: MIT License
I am attempting to use your script to modify a group where a router is stored. I see your script is created with the intention of modifying a router so I made a few changes to get it to modify the group but am getting the below response when I attempt to run:
Traceback (most recent call last):
File "/home/user/github/netcloudapi/api-samples/configuration/samples/dmvpn_maker/config_pusher.py", line 150, in
push_configs()
File "/home/user/github/netcloudapi/api-samples/configuration/samples/dmvpn_maker/config_pusher.py", line 111, in push_configs
cfg_id = cfg.json().get("data")[0].get("id")
TypeError: 'NoneType' object is not subscriptable
This repository could benefit from being a Python package using setup.py
or pyproject.toml
.
This way when following the directions on the main README, there could be one extra step to install the package, e.g.
pip install -e /location/of/api-samples
Then the samples could be run pretty seamlessly, and modified in-place with key changes, etc. As it is when trying to run the sample net_device_signal_samples.py
I had to manually modify the PYTHONPATH so that the internally-defined monitoring.utils.session
package could be correctly imported by Python within the virtual environment.
I could supply a PR if this idea seems good. It's not a big deal, would just make quick operation of the samples a little easier and quicker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.