magma-orc8r-client
A simple API client to communicate with Magma's orchestrator service via HTTP.
warning: This project is under construction!
Installation
pip3 install magma-orc8r-client
Usage
Leveraging built-in methods
from magma_orc8r_client.orchestrator import Orc8r
from magma_orc8r_client.schemas.network_dns_config import NetworkDNSConfig
from magma_orc8r_client.schemas.network_epc_configs import NetworkEPCConfigs
from magma_orc8r_client.schemas.network_cellular_configs import NetworkCellularConfigs
from magma_orc8r_client.schemas.lte_network import LTENetwork
from magma_orc8r_client.schemas.network_ran_configs import NetworkRANConfigs, TDDConfig
orc8r_client = Orc8r(
url="https://api.magma.com",
admin_operator_pfx_path="/path/to/admin_operator.pfx",
admin_operator_pfx_password="my_pfx_password",
)
network_id = "my_new_networkid"
new_network = LTENetwork(
dns=NetworkDNSConfig(dhcp_server_enabled=True, enable_caching=True, local_ttl=0),
cellular=NetworkCellularConfigs(
epc=NetworkEPCConfigs(
gx_gy_relay_enabled=True,
hss_relay_enabled=False,
lte_auth_amf="gAA=",
lte_auth_op="EREREREREREREREREREREQ==",
mcc="001",
mnc="01",
tac=1,
),
ran=NetworkRANConfigs(
bandwidth_mhz=20,
tdd_config=TDDConfig(
earfcndl=44590,
special_subframe_pattern=7,
subframe_assignment=2,
),
),
),
description=network_id,
id=network_id,
name=network_id,
)
orc8r_client.lte.create_network(lte_network=new_network)
list_of_networks = orc8r_client.lte.list()
Custom calls
from magma_orc8r_client.orchestrator import Orc8r
orc8r_client = Orc8r(
url="https://api.magma.com",
admin_operator_pfx_path="/path/to/admin_operator.pfx",
admin_operator_pfx_password="my_pfx_password",
)
network_id = "pizza"
apn_list = orc8r_client.get(endpoint=f"lte/{network_id}/apns")
Metadata
Release files for magma-orc8r-client 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| magma-orc8r-client-1.0.4.tar.gz | 12.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| magma_orc8r_client-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / magma-orc8r-client-1.0.4.tar.gz
| Download URL | magma-orc8r-client-1.0.4.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3e54bbf42f2ebb072b32fcd9690a6cf2613c2a4c79b4f87ef201f8cc2ea0608
|
|
BLAKE2b-256 checksum How to use checksums |
78d20680fd972f068b91b49f3f694d6444128ac5e238c8c0fae8ea2b4881e342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / magma_orc8r_client-1.0.4-py3-none-any.whl
| Download URL | magma_orc8r_client-1.0.4-py3-none-any.whl |
|---|---|
| Size | 32.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9d298d7673413b4d963c71cc6a52726675f3be179669e3001f651545d1d8498
|
|
BLAKE2b-256 checksum How to use checksums |
afaf3e033031f05b484c8497bc44c8ba6d745cb85952eb94fa8ae1d43296999f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for magma-orc8r-client 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.