A blazingly fast and Pythonic SNMP library based on the official Net-SNMP bindings. We use SWIG to generate the wrapper code for us.
Actively maintained. Last release 3 days ago, commits in 23 of the last 26 weeks. A safe choice.
$
pip install ezsnmpREADME as published on PyPI with version 2026.11.28.
=======
EzSnmp
=======
|Tests Native| |Tests Homebrew| |Black| |Clang-format| |Sphinx Docs|
|Codecov| |Quality Gate Status| |Security Rating| |Maintainability Rating|
|PyPI Version| |PyPI Downloads| |PyPI Distributions| |TestPyPI Version| |TestPyPI Distributions| |Build Docker Images|
|Python Versions| |License|
.. |Tests Native| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/tests_native.yml?style=flat-square&label=Tests+Native
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/tests_native.yml
.. |Tests Homebrew| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/tests_homebrew.yml?style=flat-square&label=Tests+Homebrew
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/tests_homebrew.yml
.. |Black| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/black.yml?style=flat-square&label=Black
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/black.yml
.. |Clang-format| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/clang_format.yml?style=flat-square&label=Clang-format
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/clang_format.yml
.. |Sphinx Docs| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/sphinx_build.yml?style=flat-square&label=Sphinx+Docs
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/sphinx_build.yml
.. |Codecov| image:: https://img.shields.io/codecov/c/github/carlkidcrypto/ezsnmp/main?style=flat-square&label=Codecov
:target: https://codecov.io/gh/carlkidcrypto/ezsnmp
.. |Quality Gate Status| image:: https://sonarcloud.io/api/project_badges/measure?project=carlkidcrypto_ezsnmp&metric=alert_status
:target: https://sonarcloud.io/summary/new_code?id=carlkidcrypto_ezsnmp
:alt: Quality Gate Status
.. |Security Rating| image:: https://sonarcloud.io/api/project_badges/measure?project=carlkidcrypto_ezsnmp&metric=security_rating
:target: https://sonarcloud.io/summary/new_code?id=carlkidcrypto_ezsnmp
:alt: Security Rating
.. |Maintainability Rating| image:: https://sonarcloud.io/api/project_badges/measure?project=carlkidcrypto_ezsnmp&metric=sqale_rating
:target: https://sonarcloud.io/summary/new_code?id=carlkidcrypto_ezsnmp
:alt: Maintainability Rating
.. |PyPI Version| image:: https://img.shields.io/pypi/v/ezsnmp?style=flat-square
:target: https://pypi.org/project/ezsnmp/
.. |TestPyPI Version| image:: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftest.pypi.org%2Fpypi%2Fezsnmp%2Fjson&query=%24.info.version&label=TestPyPI&style=flat-square&color=blue
:target: https://test.pypi.org/project/ezsnmp/
.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/ezsnmp?style=flat-square
:target: https://pypi.org/project/ezsnmp/
.. |PyPI Distributions| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/build_and_publish_to_pypi.yml?style=flat-square&label=PyPI+Distributions
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/build_and_publish_to_pypi.yml
.. |TestPyPI Distributions| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/build_and_publish_to_test_pypi.yml?style=flat-square&label=TestPyPI+Distributions
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/build_and_publish_to_test_pypi.yml
.. |Build Docker Images| image:: https://img.shields.io/github/actions/workflow/status/carlkidcrypto/ezsnmp/build_and_publish_docker_images.yml?style=flat-square&label=Build+Docker+Images
:target: https://github.com/carlkidcrypto/ezsnmp/actions/workflows/build_and_publish_docker_images.yml
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/ezsnmp?style=flat-square
:target: https://pypi.org/project/ezsnmp/
.. |License| image:: https://img.shields.io/github/license/carlkidcrypto/ezsnmp?style=flat-square
:target: https://github.com/carlkidcrypto/ezsnmp/blob/main/LICENSE
.. image:: https://raw.githubusercontent.com/carlkidcrypto/ezsnmp/main/images/ezsnmp_logo.jpeg
:alt: EzSnmp Logo
Introduction
------------
EzSnmp is a fork of `Easy SNMP <https://github.com/easysnmp/easysnmp>`__
Why Another Library?
--------------------
- Simply because the maintainer of Easy SNMP seems to have abandoned the project or isn't actively working on it.
- This version (EzSnmp) will attempt to remain up to date with Python versions that are supported by `Python <https://devguide.python.org/versions/>`__
and net-snmp versions that are supported by `Net-SNMP <https://www.net-snmp.org/download.html>`__
How to Support This Project?
----------------------------
.. image:: https://raw.githubusercontent.com/carlkidcrypto/ezsnmp/main/images/buy_me_a_coffee.png
:alt: Buy Me A Coffee
`Use this link to buy me a coffee! <https://www.buymeacoffee.com/carlkidcrypto>`__
Getting Started
---------------
Please check out the `EzSnmp documentation <https://carlkidcrypto.github.io/ezsnmp/>`_. Published Python wheels for
Linux (``manylinux`` and ``musllinux``), macOS, and Windows (AMD64, x86, and ARM64) are completely self-contained and
bundle Net-SNMP 5.10 so ``pip install ezsnmp`` works out of the box without requiring users to install Net-SNMP. For
source builds (``pip install .``), EzSnmp automatically shallow-clones and builds Net-SNMP 5.10 under
``third_party/net-snmp`` when Net-SNMP 5.10+ is not already installed on the system.
Code Coverage
-------------
EzSnmp uses `CodeCov <https://codecov.io/gh/carlkidcrypto/ezsnmp>`_ for tracking code coverage across both Python and C++ components.
Coverage reports are automatically generated and uploaded for:
- **Python tests**: Coverage from pytest runs (both Docker and native environments)
- **C++ tests**: Coverage from Google Test runs using lcov (both Docker and native environments)
Coverage data is collected from multiple test workflows:
- Docker-based Python tests across multiple distributions
- Native Python tests on Ubuntu and macOS
- Docker-based C++ tests
- Native C++ tests on Ubuntu and macOS
Each workflow uploads with exactly one Codecov flag (``python-native``, ``python-docker``,
``cpp-native``, ``cpp-docker``) so carryforward keeps every environment's coverage when its
tests are skipped on a commit. Use the **Python Code** and **C++ Code** components for
per-language line coverage.
You can view the latest coverage reports and trends at the `CodeCov dashboard <https://codecov.io/gh/carlkidcrypto/ezsnmp>`_.
Operational Reports
-------------------
EzSnmp also keeps a small set of maintenance reports and supporting scripts for
CI diagnostics:
- **Valgrind PR history report**: ``.github/workflows/valgrind_pr_history_report.yml``
runs ``.github/scripts/analyze_valgrind_pr_history.py`` to scan historical
Homebrew Valgrind bot comments, then publishes markdown and JSON report
artifacts.
- **Docker test summary report**: ``docker/generate_test_reports.sh`` summarizes
existing ``docker/test_outputs_*`` results. Its usage details and prerequisites
are documented in ``docker/README.rst``.
- **Monthly report tooling maintenance**: ``.github/workflows/monthly_report_tooling_maintenance.md``
is the scheduled agentic workflow that reviews these report paths on the first
day of each month and proposes fixes when their scripts or docs drift out of
sync.
Want to Contribute?
-------------------
Check out the development guide at `EzSnmp Development <https://carlkidcrypto.github.io/ezsnmp/html/development.html>`_.
If you plan to use AI coding assistants while contributing, please also read
`HOWTOAI.rst <HOWTOAI.rst>`_ for guidelines on effective and responsible AI-assisted development.
Acknowledgments
---------------
I'd like to say thanks to the following folks who have made this project
possible:
- **Giovanni Marzot**: the original author
- **ScienceLogic, LLC**: sponsored the initial development of this
module
- **Wes Hardaker and the net-snmp-coders**: for their hard work and
dedication
- **fgimian and nnathan**: the original contributors to this codebase
- **Kent Coble**: who was the most recent maintainer. `Easy SNMP <https://github.com/easysnmp/easysnmp>`_
License
-------
EzSnmp is released under the **BSD** license. Please see the
`LICENSE <LICENSE>`_
file for more details.
Copyright
---------
The original version of this library is copyright (c) 2006 G. S. Marzot.
All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Net-SNMP itself.
Copyright (c) 2006 SPARTA, Inc. All Rights Reserved. This program is
free software; you can redistribute it and/or modify it under the same
terms as Net-SNMP itself.
Copyright (c) 2024-2026 carlkidcrypto All Rights Reserved. This program is
free software; you can redistribute it and/or modify it under the same
terms as Net-SNMP itself.
----
.. note::
This content was generated by AI and reviewed by humans. Mistakes may still occur. PRs for corrections are welcome.