Skip to main content

Endless Python SDK

Discord PyPI Package Version PyPI Package Downloads

This provides basic functionalities to interact with Endless. Get started here.

Currently, this is still in development and may not be suitable for production purposes.

Note: The sync client is deprecated, please only start new projects using the async client. Feature contributions to the sync client will be rejected.

Requirements

This SDK uses Poetry for packaging and dependency management:

curl -sSL https://install.python-poetry.org | python3 -
poetry install

Unit testing

make test

E2E testing and Using the Endless CLI

You can do this a bit more manually by:

First, run a local testnet (run this from the root of endless-framework):

endless node run-local-testnet --force-restart --assume-yes --with-indexer-api

Next, tell the end-to-end tests to talk to this locally running testnet:

export ENDLESS_CORE_REPO="/path/to/repo"
export ENDLESS_FAUCET_URL="http://127.0.0.1:8081"
export ENDLESS_INDEXER_URL="https://idx-test.endless.link/api/v1"
export ENDLESS_NODE_URL="https://rpc-test.endless.link/v1"

Finally run the tests:

make examples

Integration Testing Using the Endless CLI:

make integration_test

[!NOTE] The Python SDK does not require the Indexer, if you would prefer to test without it, unset or do not set the environmental variable ENDLESS_INDEXER_URL and exclude --with-indexer-api from running the endless node software.

Autoformatting

make fmt

Autolinting

make lint

Package Publishing

  • Download the ENDLESS CLI.
  • Set the environment variable ENDLESS_CLI_PATH to the full path of the CLI.
  • poetry run python -m endless_sdk.cli and set the appropriate command-line parameters

Semantic versioning

This project follows semver as closely as possible

Metadata

Release files for endless-sdk 1.0.0

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

Source distribution (sdist)

Source distribution for endless-sdk 1.0.0
File Size Uploaded
endless_sdk-1.0.0.tar.gz 54.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for endless-sdk 1.0.0
File Interpreter ABI Platform
endless_sdk-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 118.0 kB

Release files / endless_sdk-1.0.0.tar.gz

Download URL endless_sdk-1.0.0.tar.gz
Size 54.0 kB
Tags Source
SHA-256 checksum
How to use checksums
76ff2cd9833c19536bec1b16519fb0f131e70b2e6a6bac83163860b345feb6df
BLAKE2b-256 checksum
How to use checksums
9be79ad5fb396bb55573c06a192b30aedb588e02b646afced584602b310e2348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Windows/11

Release files / endless_sdk-1.0.0-py3-none-any.whl

Download URL endless_sdk-1.0.0-py3-none-any.whl
Size 64.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bb436a0bae7730e73d70858091b7207d9306530aadfa9f8279b15207f6205b9
BLAKE2b-256 checksum
How to use checksums
5d8c18663ee514ddf577431ea22a45a6d002208c82035feb0c6114c3abb33ea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Windows/11

Release history Release notifications | RSS feed

This release

1.0.0 This release

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