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 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


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

Uploaded Source

Built Distribution

anaplan_sdk-0.1.5-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anaplan_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 21.7 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.1.5.tar.gz
Algorithm Hash digest
SHA256 ecdef4cfe407e7128c27d8a81df985cb2ff360615d99d116cee349b786c084f9
MD5 f6026152c09fd87c1bca60ee80b118d2
BLAKE2b-256 09c18f19a084efe9d4ad740d57af7deb925a6c89a8c3cb5de5eb28dabeeec5fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anaplan_sdk-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.8 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 54efb6f61c7cf8a79ae7ef4857bb04e5b7c3462d8e1d7a107f2156c890369f1c
MD5 6a5d47ee8c21478e9a4e0c02a4f0672c
BLAKE2b-256 a39f28f98ca322acb4f67f35ca474c555af20558849ea4a08e9b5f918806dac1

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