Provides pythonic access to the Anaplan API
Project description
Anaplan SDK
Anaplan SDK is an independent, unofficial project providing pythonic access to the Anaplan Integration API v2. This Project aims to provide high-level abstractions over the API, so you can deal with python objects and simple functions rather than implementation details like HTTP Requests, Authentication, JSON Parsing, Compression, Chunking and so on.
This Projects supports both the Bulk APIs and the Transactional APIs and provides synchronous and asynchronous Clients for both.
Visit Anaplan SDK for documentation.
Install Anaplan SDK using pip
pip install anaplan-sdk
Instantiate a client
import anaplan_sdk
anaplan = anaplan_sdk.Client(
workspace_id="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
model_id="11111111111111111111111111111111",
user_email="admin@company.com",
password="my_super_secret_password",
)
Find workspaces and models
If you don't know the workspace and model Ids, instantiate client with authentication information only and
call .list_workspaces()
and list .list_models()
anaplan = anaplan_sdk.Client(
user_email="admin@company.com",
password="my_super_secret_password",
)
for workspace in anaplan.list_workspaces():
print(f"f{workspace.name}: {workspace.id}")
for model in anaplan.list_models():
print(f"f{model.name}: {model.id}")
Async Support
This SDK also provides an AsyncClient
with full async support
import asyncio
anaplan = anaplan_sdk.AsyncClient(
workspace_id="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
model_id="11111111111111111111111111111111",
user_email="admin@company.com",
password="my_super_secret_password",
)
workspaces, models = await asyncio.gather(
anaplan.list_workspaces(), anaplan.list_models()
)
for workspace in workspaces:
print(f"f{workspace.name}: {workspace.id}")
for model in models:
print(f"f{model.name}: {model.id}")
For more information, API reference and detailed guides, visit Anaplan SDK.
Project details
Release history Release notifications | RSS feed
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 anaplan_sdk-0.1.6.tar.gz
.
File metadata
- Download URL: anaplan_sdk-0.1.6.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.12.2 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c381d6184cce2366f3c43f691d85cb6d41bb5c6ff3689ca525656b799f6e603 |
|
MD5 | 668598ac7f2ab5210d061309bc4e9283 |
|
BLAKE2b-256 | 0354f74a0c988713c04a2880ab072c1647b340760798c24b36177d9f5f2cfe92 |
File details
Details for the file anaplan_sdk-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: anaplan_sdk-0.1.6-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.12.2 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1053d1f908f7a743f3ecdab63f25e1723bf17b1b5b520922c262d118fdb8b54 |
|
MD5 | 4060109b7e24e2524e451aa8b1730cc8 |
|
BLAKE2b-256 | c3de355959d5136d4b1c9f57db7c2971fba7dd2db7f66cd40242547e32d358a7 |