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 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 the Bulk API, the Transactional API and the ALM API, 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

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.2.5.tar.gz (167.6 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.2.5-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anaplan_sdk-0.2.5.tar.gz
Algorithm Hash digest
SHA256 5f03daec379e88171ee7cf9f5e8915342fcb3086cc05e173f40a59a1689102d8
MD5 0b235cf08fa7f2dd2f527297f59c9496
BLAKE2b-256 c13a3cfaa72baf7a7567396642beafab7eb36840ababf00ae1da275e68ccf17a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anaplan_sdk-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 289c76d03a1aa8a8832cb6394705d0b84464484c77645de0080aec430c3b2efd
MD5 815892e0a0b461398df65ff3a9c512bf
BLAKE2b-256 4e3984261c153be2b84686d8a7211de6d97178328600256163f49ff671f77aec

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