Skip to main content

Unofficial Anaplan API Python client library

Project description

APAPI

APAPI is an unofficial library that allows you to connect to Anaplan API v2 (Bulk and Transactional) using Python. Here we export some CSV and import it back to Anaplan:

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

Check tests/test_connection.py 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

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

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

apapi-0.2.0.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

apapi-0.2.0-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page