Interface to the NetFoundry network-as-code orchestration Platform
Project description
User Guide
Play the demo
This creates a demo network named "BibbidiBobbidiBoo" with your API account stored in ~/.netfoundry/credentials.json
Learn about getting an API account by reading the Authentication Guide
$ python3 -m netfoundry.demo BibbidiBobbidiBoo
INFO: running demo script in /home/alice/.pyenv/versions/3.9.0/lib/python3.9/site-packages/netfoundry/demo.py
Create network snippet from demo.py
#!/usr/bin/env python3
import netfoundry
# default API account credential file is ~/.netfoundry/credentials.json
Organization = netfoundry.Organization(credentials="credentials.json")
# use some Network Group, default is to use the first and there's typically only one
network_group = netfoundry.NetworkGroup(Organization)
# create a Network
network_name = "BibbidiBobbidiBoo"
if network_name in network_group.networks_by_name.keys():
# use the Network
network = netfoundry.Network(network_group, network_name=network_name)
network.wait_for_status("PROVISIONED",wait=999,progress=True)
else:
network_id = network_group.create_network(name=network_name)['id']
network = netfoundry.Network(network_group, network_id=network_id)
network.wait_for_status("PROVISIONED",wait=999,progress=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netfoundry-5.0.1.tar.gz
(30.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netfoundry-5.0.1.tar.gz.
File metadata
- Download URL: netfoundry-5.0.1.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffe7add6c16a8fb02a19b7ac791d36e09423bd2d0b76fc793623416566d466e7
|
|
| MD5 |
d85bb0f0363b4162f7c929b1a9937c75
|
|
| BLAKE2b-256 |
087604141c91fb85a8a84869fe7326fa26067452f266ce57acba9e7869f867e3
|
File details
Details for the file netfoundry-5.0.1-py3-none-any.whl.
File metadata
- Download URL: netfoundry-5.0.1-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
035e5087b16f5be15c74edb3bdd76d287a18c6304216d9ccd8fd5733b16174dd
|
|
| MD5 |
965174dadc7317aef26232d3785d8080
|
|
| BLAKE2b-256 |
b3c0cb68ac65f1a28fa71dfa0ef016c3d8c06816245a4e4a88226a11eabb411d
|