Skip to main content
https://travis-ci.org/GIC-de/PyANCP.svg?branch=master https://coveralls.io/repos/github/GIC-de/PyANCP/badge.svg?branch=master Documentation Status

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

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

If you're not sure about the file name format, learn more about wheel file names.

PyANCP-0.1.4-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file PyANCP-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyANCP-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b67d5f0839834d3260f27abd41e53366815941594ea026ccb22c2f60b12499f
MD5 b1ebfbffd645166d9c43ede31c34b670
BLAKE2b-256 c778e90d4be5ba7cd67657bdd8d1c147ca364467f05ca71ddcbca370339ce273

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.7

2 files

0.1.6

1 file

0.1.5

1 file

This release

0.1.4 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page