Skip to main content

APAPI

APAPI is an unofficial library that allows you to connect to Anaplan APIs using Python. Currently, you can authenticate using either Basic Authentication (email & password), or OAuth2 (client_id & refresh_token, both non-rotatable and rotatable) - Cert based authentication is on the roadmap. Use Bulk, Transactional, ALM and Audit endpoints, with more coming soon!

As an abstract example, here we export some CSV and import it back to Anaplan:

>> > import apapi
>> > with apapi.BasicAuth(f"{email}:{password}") as authentication:
    >> > my_connection = apapi.BulkConnection(authentication)
>> > my_connection.run_export(model_id, export_id)
>> > data = my_connection.get_file(model_id, export_id)
>> > print(data.decode())
Versions, Data, Text
Actual, 1, test
Budget, 2.5, ąćęłńśżź
Forecast, -3,😂
>> > my_connection.put_file(model_id, file_id, data)
>> > my_connection.run_import(model_id, import_id)

Full documentation can be found here. Check examples or tests for more examples and hints about usage.

Installing Anaplan Python API and Supported Versions

APAPI is available on PyPI:

$ python -m pip install apapi

APAPI supports Python 3.8+.

More Info

How to Contribute

Contributions are welcome, even if you can't code it - in such case, please submit an issue if you need any additional feature (preferably in the form of User Story, like "As {who} I need {what} because {why}"). If you encounter any bugs, please report the problem with a description and error log.

PyPI - Python Version PyPI - License Code style: black Imports: isort

Metadata

Release files for apapi 0.6.0

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

Source distribution (sdist)

Source distribution for apapi 0.6.0
File Size Uploaded
apapi-0.6.0.tar.gz 21.7 kB Details

Built distribution (wheel)

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

Total release size: 45.1 kB

Release files / apapi-0.6.0.tar.gz

Download URL apapi-0.6.0.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb80280f5401a93d903d582c1c2dcaf0af2561d60c134285091f904dbf1d1ff
BLAKE2b-256 checksum
How to use checksums
6d015638ebb61c73e67c846d46e2003d10b1f84ce8d39a8bf1ed2f9048422ed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release files / apapi-0.6.0-py3-none-any.whl

Download URL apapi-0.6.0-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64ec1c43bb12dee9e2211436130fc75c9f46aef1dcd134ef3dc65aeed2c4fdd0
BLAKE2b-256 checksum
How to use checksums
6cbbe4146b0e08d89980ce4b0f9a037245f99c92c808230d9a9a1bd71aab9546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.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