PyANCP
Python ANCP (RFC 6320) client and library. PyANCP requires Python 2.7 or later, or Python 3.2 or later.
State: BETA
ANCP Library Example
from ancp.client import Client
from ancp.subscriber import Subscriber
# setup ancp session
client = Client(address="1.2.3.4")
if client.connect():
# create ancp subscribers
S1 = Subscriber(aci="0.0.0.0 eth 1", up=1024, down=16000)
S2 = Subscriber(aci="0.0.0.0 eth 2", up=2048, down=32000)
# send port-up for ancp subscribers
client.port_up([S1, S2])
# keep session active
try:
while client.established.is_set():
time.sleep(1)
except KeyboardInterrupt:
# send port-down for ancp subscribers
client.port_down([S1, S2])
client.disconnect()
Author: Christian Giese and Wolfgang Beck
Contributors: - Istvan Ruzman
Metadata
Release files for PyANCP 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyANCP-0.1.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for PyANCP-0.1.4-py2.py3-none-any.whl |
Release files / PyANCP-0.1.4-py2.py3-none-any.whl
| Download URL | PyANCP-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4b67d5f0839834d3260f27abd41e53366815941594ea026ccb22c2f60b12499f
|
|
BLAKE2b-256 checksum How to use checksums |
c778e90d4be5ba7cd67657bdd8d1c147ca364467f05ca71ddcbca370339ce273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyANCP 0.1.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.