Skip to main content

Absolidix API client

DOI PyPI

This library allows for programmatic interactions with the Absolidix infrastructure.

Installation

pip install absolidix_client

Usage

There are two client flavors: asyncronous asyncio client and simplified synchronous client.

Asynchronous client

An asynchronous client is AbsolidixAPIAsync. Example of usage:

from absolidix_client import AbsolidixAPIAsync, AbsolidixTokenAuth

async def main():
    async with AbsolidixAPIAsync(API_URL, auth=AbsolidixTokenAuth("VERY_SECRET_TOKEN")) as client:
        print(await client.v0.auth.whoami())
        data = await client.v0.datasources.create(content, name)
        results = await client.v0.calculations.create_get_results(data["id"])
        print(resuls)

See examples directory for more examples.

Synchronous client

A synchronous client is AbsolidixAPI. Example of usage:

from absolidix_client import AbsolidixAPI, AbsolidixTokenAuth

client = AbsolidixAPI(API_URL, auth=AbsolidixTokenAuth("VERY_SECRET_TOKEN"), timeout=5)
data = client.v0.datasources.create(content, name)
results = client.v0.calculations.create_get_results(data["id"], timeout=False)
print(results)

NB in development one can replace a VERY_SECRET_TOKEN string with the development user email, e.g. admin@test.com (refer to users_emails BFF table).

Contributing

Please give a minute to the contribution guide.

License

Author Sergey Korolev, Tilde Materials Informatics

Copyright 2024-2025 Tilde Materials Informatics

Copyright 2023-2024 BASF SE

BSD 3-Clause

Release files for absolidix-client 0.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for absolidix-client 0.8.4
File Size Uploaded
absolidix_client-0.8.4.tar.gz 28.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for absolidix-client 0.8.4
File Interpreter ABI Platform
absolidix_client-0.8.4-py3-none-any.whl Python 3 none any Details

Total release size: 60.4 kB

Release files / absolidix_client-0.8.4.tar.gz

Download URL absolidix_client-0.8.4.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ac0b4a15e2f380ebeee6ca436c5e0c5b4c6a10a112435b9068e26df7d5f679
BLAKE2b-256 checksum
How to use checksums
297080a24dac9c135f11e7040f08f0f34ef3f2ce262e7d663f83f0070a01d159
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / absolidix_client-0.8.4-py3-none-any.whl

Download URL absolidix_client-0.8.4-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb0077e30710e94ccd40b15c33c7bd551f166ebb7810c39d66bed891967bac1f
BLAKE2b-256 checksum
How to use checksums
f559c51950d01b62bfd5ebe28f41e0f31834f8342077b0b0b940139547816b0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.8.4 This release

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page