Skip to main content

API client library built for network engineers.

Project description

Wingpy: Cisco APIs for humans

wingpy is an elegant and simple Cisco API library for Python, built for network engineers by Wingmen Solutions.

All Cisco APIs differ in how they handle authentication, session management, rate limiting, path construction, pagination and concurrency. With wingpy you don't need to wory about all of the complexities associated with this.

Although many Cisco platforms have dedicated SDKs, each of them is designed and maintained individually and have notable differences. With wingpy, just start coding and interact directly with API endpoints! This makes it much easier to work with new Cisco platform APIs and automate across domains.

Plenty of examples and explanations are available in the User Guide

Features

  • Session maintenance
  • Rate limit handling
  • Authentication
  • Path building
  • Concurrency
  • Fully typed
  • Pagination
  • Headers

Installation

Install via uv

uv add wingpy

Install via pip

pip install wingpy

Install via poetry

poetry add wingpy

Supported APIs

  • Cisco APIC (Application Centri Infrastructure / ACI)

    from wingpy import CiscoAPIC
    
  • Cisco Catalyst Center

    from wingpy import CiscoCatalystCenter
    
  • Cisco FMC (Secure Firewall Management Center)

    from wingpy import CiscoFMC
    
  • Cisco Hyperfabric

    from wingpy import CiscoHyperfabric
    
  • Cisco ISE (Identity Service Engine)

    from wingpy import CiscoISE
    
  • Cisco Meraki Dashboard

    from wingpy import CiscoMerakiDashboard
    

Configuration

The recommended way to specify API authentication parameters is through environment variables:

  • WINGPY_*_BASE_URL
  • WINGPY_*_USERNAME
  • WINGPY_*_PASSWORD
  • WINGPY_*_TOKEN

See more in the User Guide

Usage

Import the class matching the API you want to use. See full list in the User Guide, API section

Connect to an API

Parameters can be specified as environment variables or with static values. It is your responsibility to keep your secrets safe!

from wingpy import CiscoFMC
fmc = CiscoFMC(base_url="https://1.2.3.4", username="admin", password="passw0rd")

Retrieve all items from a paginated API endpoint

Pages are retrieved in parallel for max. performance.

networks = fmc.get_all("/api/fmc_config/v1/domain/{domainUUID}/object/hosts")
# Domain UUID is automatically substituted.
# Authentication is done automatically when needed.
# Paginated results are automatically fetched and combined.
for network in networks:
    print(network["name"])

Getting help

Check the FAQ or search the documentation

To report bugs or request features, please open a GitHub issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wingpy-1.2.1.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

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

wingpy-1.2.1-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file wingpy-1.2.1.tar.gz.

File metadata

  • Download URL: wingpy-1.2.1.tar.gz
  • Upload date:
  • Size: 44.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for wingpy-1.2.1.tar.gz
Algorithm Hash digest
SHA256 02977bc06fbb146be2c656dbef38e6cca7174eb4edcbad7e069fd6f2a54cdafb
MD5 218d6b6d24d75d59f00ed649e1412767
BLAKE2b-256 7be290c763d2f18b161971e0db6dc8a64f2e2d68e6aa5e64281abe9fd59b95e4

See more details on using hashes here.

File details

Details for the file wingpy-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: wingpy-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for wingpy-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bf73eefcb5a164e03a633bcee104c28d17bf881f851c5a263c71f2eaee42d6c
MD5 ab7224b10a8cc47556cdb732e74eae5e
BLAKE2b-256 de5da635c985da8d648f464fd47a617d3eb35fce159fb6c03581ce29b55b0e8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page