Python ANCP (RFC 6320) Client and Library
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for PyANCP-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4faeada6af3cd65f98742b3f8fb0b6980c3f847bf2c5efed53e07d40e2686e4 |
|
MD5 | cdb5fbae36d3e9d440b0348745c398d9 |
|
BLAKE2b-256 | 692d7d4004ff486835f0a414997b5da210d6755a1c357be437a73564ccbe76b4 |