Unofficial Anaplan API Python client library
Project description
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.9+.
More Info
- Official Anaplan APIs Postman Collection
- Official documentation of Anaplan APIs
- Official documentation of Anaplan Connect V4 (Java)
- Official Anaplan Connect repository
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apapi-0.5.0.tar.gz
.
File metadata
- Download URL: apapi-0.5.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 936de7c4449eaed63ac8edd20032314bfee2b572b3fc0a15fe14a6e0f9e955dd |
|
MD5 | b9326f3e807365520dac939959d6b89b |
|
BLAKE2b-256 | 2fffaced63e234a48e4bc0a7dff4eddad9d9f094508c75d296f284858f6fd0d5 |
File details
Details for the file apapi-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: apapi-0.5.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab2e8230630a387ac9759b6c8fa3ea5ee64ac77eee665a703ed3257295857e9 |
|
MD5 | 48669cbfbb88b97e9653f649216c5d16 |
|
BLAKE2b-256 | 2ab6699916a00ee5b11e4d6012018392425fc98577b099155bc2411eea91d95b |