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.

Release files for ant_connect_py 2.0.12rc311

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.12rc311
File Size Uploaded
ant_connect_py-2.0.12rc311.tar.gz 48.9 kB Details

Built distribution (wheel)

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

Total release size: 100.5 kB

Release files / ant_connect_py-2.0.12rc311.tar.gz

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

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

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

Release history Release notifications | RSS feed

This release

2.0.12rc311 This release

2 release files

2.0.11

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

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