Skip to main content

Provides pythonic access to the Anaplan API

Project description

Python

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.

Visit Anaplan SDK for documentation.


Install Anaplan SDK using pip

pip install anaplan-sdk

Instantiate a client

import anaplan_sdk

anaplan_client = 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_client = anaplan_sdk.Client(
    user_email="admin@company.com",
    password="my_super_secret_password",
)

for workspace in anaplan_client.list_workspaces():
    print(f"f{workspace.name}: {workspace.id}")

for model in anaplan_client.list_models():
    print(f"f{model.name}: {model.id}")

Async Support

This SDK also provides and AsyncClient with full async support

anaplan_client = anaplan_sdk.AsyncClient(
    workspace_id=os.getenv("ANAPLAN_SDK_TEST_WORKSPACE_ID"),
    model_id=os.getenv("ANAPLAN_SDK_TEST_MODEL_ID"),
    certificate=os.getenv("ANAPLAN_SDK_TEST_CERT"),
    private_key=os.getenv("ANAPLAN_SDK_TEST_PK"),
)
workspaces, models = await asyncio.gather(
    anaplan_client.list_workspaces(), anaplan_client.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


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.0.6.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

anaplan_sdk-0.0.6-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anaplan_sdk-0.0.6.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.12.2 Windows/11

File hashes

Hashes for anaplan_sdk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e222cbb414198320f06747036ef1c83225719fb1a6de546fefb475d911b93b89
MD5 b770c7d0e75a81af4b4d5c4882f5fbe0
BLAKE2b-256 6be51b47963857fdc74f89ffaa2b501b91d0c300834c045eea9604b49b30e00c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anaplan_sdk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.12.2 Windows/11

File hashes

Hashes for anaplan_sdk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aea90fd8945fe50b89acd15b3a8ce8967b541d21da629cfcd042a2a47798286d
MD5 c838177a264840b02312021e7ba595e4
BLAKE2b-256 d446e4db4570d4db4fb48f13f0256167ccc25839ba25c4df57dadb6a260b7b3e

See more details on using hashes here.

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