Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ant_connect_py

ant_connect_py Python package V2 is here!

ant_connect_py V2 is a ground-up rewrite that offers some breaking changes compared to the previous version. The new version is designed to be more flexible, more efficient, and especially more user-friendly. The new version is also designed to be more modular, allowing users to easily extend the functionality of the package.

Note

If you are using ant_connect V1 (versions 2023.15.1 and lower) you might want to check the documentation for more details. ant_connect_py V2 also ships with the latest version of ant_connect V1 built in so that you can incrementally upgrade your code base and projects.

Import as follows: from ant_connect import v1 as ant_connect_v1

This repo contains a centralized changelog file, CHANGELOG.rst, which is used to track changes to the project. The file is automatically updated in the pipeline with each release, and includes a list of changes, bug fixes, and new features for each version of the project.

The reason to use a centraized changelog file (found on the centralized-changelog branch) is to provide a single source of truth for all changes to the project and all future releases.

Of course, I would not be an epic developer if I would not consider your need to manually add changes to the changelog for the coming release. List your changes below!

ADD TO THE CHANGELOG (every line from line 15 will be added to the changelog)

v2.0.12rc302 (2026-09-18)

Restores the package: every API call in 2.0.12rc* up to and including rc301 failed with TypeError: 'ModelPrivateAttr' object is not iterable. Also the first regeneration of models.py since the generator stopped working, so it tracks the current API again.

Bug Fixes

  • ApiConnector declared its connection state as underscore-prefixed attributes without ClassVar, so Pydantic v2 collected them as private attributes. activate() then handed a ModelPrivateAttr to ModelBaseClass._cookies and requests tried to iterate it. Every API call failed this way.

  • Project.description and Project.number are nullable in the API but were declared as required str, so a project with either field null failed validation.

  • The model generator could not run against the live spec at all, which is why models.py had gone stale: a 204-only endpoint dereferenced None, text/csv responses matched no branch, and a bare OA\Items serialised to [] rather than {}.

New Features

  • New models: VaultSecret, VaultSecretGrant, VaultSecretUsage, VaultProviderPreset, VaultCredentialDetection, WebhookTrigger, WebhookTriggerSecret, WebhookTriggerVersion, WebhookBindingTestResult, PropagationRun, PropagationRunItem, PropagationTemplate, PropagationTemplateItem, UserNotificationRule, OAuthClient.

  • Roughly a hundred endpoints that existed on the API but not in the SDK are now generated, across Task (versioning, shares, relation queries), Table (locking, queries), Script, Revision, Label, DmsFile (external links, root upload), Project (archive, project users) and AntPersonalAccessToken.

Breaking Changes

  • Removed models, no longer present in the API spec: Module, Permission, Member, Link, Company, NewsItem, LabelOs, Workflow, WorkflowCollection, Reseller, ResellerRequest, SbsVersion, AntPersonalAccessTokenResult.

  • Label.title renamed to Label.name.

  • Project.modules removed.

  • User.company is now Optional[str] (was Optional[dict]).

  • License.authorize_user() and Task.update_dates() removed.

  • Project.description and Project.number are now Optional[str]. They are nullable in the API and the previous required declaration rejected valid responses.

v2.0.11 (2026-03-19)

New Features

  • Added context helper methods to ApiConnector for license/project scoping: set_license_context(), set_project_context(), clear_license_context(), clear_project_context(), set_cookies(), get_cookies(), clear_cookies(). All API calls can now be scoped to a specific license and/or project via cookies.

Breaking Changes

  • Dropped support for Python 3.8 and 3.9. Minimum version is now Python 3.10.

  • numpy (^2.1.0) and pandas (^2.2.3) are now runtime dependencies (previously dev-only). This increases the install footprint.

  • Minimum pydantic version raised from ^2.5.2 to ^2.8.0.

Improvements

  • Added official support for Python 3.13 and 3.14.

  • Migrated CI/CD pipeline from GitLab CI to GitHub Actions.

  • Updated dev dependencies: pylint ^3.3.0, black ^24.8.0, sphinx ^7.3.0.

  • Added AI_DOCUMENTATION.md as architecture guide for AI-assisted development.

  • Updated package metadata and documentation URLs.

Metadata

Release files for ant_connect_py 2.0.12rc405

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ant_connect_py 2.0.12rc405
File Size Uploaded Provenance
ant_connect_py-2.0.12rc405.tar.gz 48.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ant_connect_py 2.0.12rc405
File Interpreter ABI Platform
ant_connect_py-2.0.12rc405-py3-none-any.whl Python 3 none any Details

Total release size: 100.5 kB

Release files / ant_connect_py-2.0.12rc405.tar.gz

Download URL ant_connect_py-2.0.12rc405.tar.gz
Size 48.9 kB
Tags Source
SHA-256 checksum
How to use checksums
06144336be47623bc73d2740abfa2ede969a05ec1ca67744f45a4018d87aa175
BLAKE2b-256 checksum
How to use checksums
c84d66b1a1a26af1bdb2097fe25a563de8a51d080bf7e3dbb32a0b10770f164d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.10.22 Linux/6.17.0-1022-azure

Release files / ant_connect_py-2.0.12rc405-py3-none-any.whl

Download URL ant_connect_py-2.0.12rc405-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e1ad497e6f8ab006dffa3af61a1eb0f6434a2fd2bbbe665039da0326a6bce4d
BLAKE2b-256 checksum
How to use checksums
470c89de5bb716d140e4782218a2f36cc24c2ba8b8c194f863e6a51934f94c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.10.22 Linux/6.17.0-1022-azure

Security for ant_connect_py 2.0.12rc405

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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