Skip to main content

Python ANCP (RFC 6320) Client and Library

Project description Documentation Status


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="")
if client.connect():
    # create ancp subscribers
    S1 = Subscriber(aci=" eth 1", up=1024, down=16000)
    S2 = Subscriber(aci=" eth 2", up=2048, down=32000)
    # send port-up for ancp subscribers
    client.port_up([S1, S2])
    # keep session active
        while client.established.is_set():
    except KeyboardInterrupt:
        # send port-down for ancp subscribers
        client.port_down([S1, S2])

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.

Files for PyANCP, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size PyANCP-0.1.6-py2.py3-none-any.whl (9.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page