evergreen.py
Python client for the Evergreen API
Decision gist · record as of 2026-08-14
Yes, if you work with Evergreen infrastructure. The package is actively maintained, has low install friction, carries a permissive license, and provides a well-structured interface to a specialized API. Install it if you need to automate or query Evergreen from Python; skip it if you don't use Evergreen.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9–3.13; the patch_from_diff API requires the Evergreen CLI to be installed separately on the host.
- Low install friction with a pure-wheel distribution and eight well-established runtime dependencies.
- Actively maintained with a recent release (46 days old) and ongoing repository activity.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-06-29 (46 days) · last repo commit 2026-06-29 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,324,580 downloads/mo, #2,659 on PyPI
Alternatives
Verify before relying
pip install evergreen.py
from evergreen.api import EvgAuth, EvergreenApi
api = EvergreenApi.get_api(EvgAuth('username', 'api_key'))
project = api.project_by_id('mongodb-mongo-master')
print(project.display_name)- Actual API coverage and completeness relative to the full Evergreen V2 specification.
- Performance characteristics and rate-limiting behavior when querying large datasets.
- Whether all Evergreen object types are supported or only a subset.
What it is and what it does
Evergreen.py is a Python client library for interacting with MongoDB's Evergreen continuous integration platform via its V2 REST API. It provides both a programmatic interface for Python applications and a command-line tool (evg-api) for quick queries. The library wraps HTTP requests to Evergreen using standard dependencies like requests, pydantic for data validation, and PyJWT for authentication, allowing developers to fetch and manipulate build, test, host, and project data without writing raw API calls.
The package is designed for two main workflows: embedding Evergreen queries into Python automation scripts and ad-hoc command-line inspection of infrastructure state. It handles authentication via username and API key, parses JSON responses into typed Python objects, and exposes a fluent query interface. Most operations are straightforward HTTP calls, though some advanced features (like patch_from_diff) require external tooling.
Use it for
- Query build and test status for a project to integrate Evergreen data into dashboards or alerts.
- Automate task scheduling or host provisioning by scripting Evergreen API calls from Python.
- Inspect host inventory, distro configuration, and task history via the command-line tool.
- Embed Evergreen queries into CI/CD pipelines to make decisions based on build state.
- Generate reports on test failures, task durations, or infrastructure utilization.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with Evergreen infrastructure.
The package is actively maintained, has low install friction, carries a permissive license, and provides a well-structured interface to a specialized API. Install it if you need to automate or query Evergreen from Python; skip it if you don't use Evergreen.
Install
evergreen-py on PyPI
Before you install
Low install friction with a pure-wheel distribution and eight well-established runtime dependencies. Actively maintained with a recent release (46 days old) and ongoing repository activity.
Requires Python 3.9–3.13; the patch_from_diff API requires the Evergreen CLI to be installed separately on the host.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install evergreen.py
from evergreen.api import EvgAuth, EvergreenApi
api = EvergreenApi.get_api(EvgAuth('username', 'api_key'))
project = api.project_by_id('mongodb-mongo-master')
print(project.display_name)
Verify before relying
- Actual API coverage and completeness relative to the full Evergreen V2 specification.
- Performance characteristics and rate-limiting behavior when querying large datasets.
- Whether all Evergreen object types are supported or only a subset.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.14,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesClickpython-dateutilPyYAMLrequestsstructlogpydanticpackagingPyJWT |
| Maintenance | Actively maintained 46 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,324,580 / month, #2,659 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: evergreen_py-3.19.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “evergreen api client python”
- evergreen.pyA Python client library for the Evergreen API (V2) that enables…
- shrub.pyProgrammatically generate Evergreen project configurations in JSON…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also shrub.py · pygerrit2 · assisted-service-client · cycode · curatorbin · dbt-copilot-python · oci · stackit-core · qase-api-v2-client · prophecy-libs