Skip to main content

Provides pythonic access to the Anaplan API

Project description

Python

Anaplan SDK

Downloads Badge


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.


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.

Project details


Release history Release notifications | RSS feed

This version

0.3.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anaplan_sdk-0.3.1.tar.gz (245.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anaplan_sdk-0.3.1-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file anaplan_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: anaplan_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 245.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for anaplan_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0271b5192be5f49fcef767bae6b33a2884da91cfbbdcdd599288c7af0f3053c2
MD5 3d3beaaf284d248c88ba81d63e8fa1aa
BLAKE2b-256 8d46d89ec95e7dbdf25269b456f15a6a32816a7bdd56041f2301bae27861f284

See more details on using hashes here.

File details

Details for the file anaplan_sdk-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for anaplan_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5fdb54f914124ca0d337490fb634beb145c2fa6c94807efb9cb9bb79166c8bf
MD5 bd23d059bec95d848f80d0fb3f43b853
BLAKE2b-256 0ed382f09f9328e0a200649ffdbda1e50d0ad90d061a142778a7f2cf2bd76ba5

See more details on using hashes here.

Supported by

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