Provides pythonic access to the Anaplan API
Project description
Anaplan SDK
Anaplan SDK is an independent, unofficial project providing pythonic access to Anaplan. Anaplan SDK provides high-level abstractions over the various Anaplan APIs, so you can focus on you requirements rather than spend time on implementation details like authentication, error handling, chunking, compression and data formatting.
This Projects supports the Bulk APIs, the Transactional APIs and the ALM APIs, the Audit APIs, providing both synchronous and asynchronous Clients.
Visit Anaplan SDK for documentation.
If you find any issues or feel that this SDK is not adequately covering your use case, please open an issue.
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"{workspace.name}: {workspace.id}")
for model in anaplan.list_models():
print(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"{workspace.name}: {workspace.id}")
for model in models:
print(f"{model.name}: {model.id}")
For more information, API reference and detailed guides, visit Anaplan SDK.
Contributing
Pull Requests are welcome. For major changes, please open an issue first to discuss what you would like to change. To submit a pull request, please follow the standard Fork & Pull Request workflow.
Before submitting your pull request, please ensure that all the files pass linting and formatting checks. You can do this by running the following command:
uv sync --dev
ruff check
ruff format
You can also enable pre-commit hooks to automatically format and lint your code before committing:
pre-commit install
If your PR goes beyond a simple bug fix or small changes, please add tests to cover your changes.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anaplan_sdk-0.4.0a1.tar.gz.
File metadata
- Download URL: anaplan_sdk-0.4.0a1.tar.gz
- Upload date:
- Size: 313.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d397f34707748137561ab039e0da6c5062106dc4589ddb9b31f7b2437312f9
|
|
| MD5 |
036631a9682cc984261524f63162df9c
|
|
| BLAKE2b-256 |
d083ec003cb8df2e5daf70b518e099f95bdc3c6fe3fb3cfd0183e1b35b229093
|
File details
Details for the file anaplan_sdk-0.4.0a1-py3-none-any.whl.
File metadata
- Download URL: anaplan_sdk-0.4.0a1-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0175393d9ae9fce409587c2e53d158a47e31091fe706ce223851a6a951a8eaba
|
|
| MD5 |
16fe000d34b86bb70696d2a6e90ae958
|
|
| BLAKE2b-256 |
40704b0888939a687dc7607bfa14f0da660aadcdd14225984e7617e58a361c1b
|