Skip to main content

Endless SDK

Project description

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

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

endless_sdk-1.0.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

endless_sdk-1.0.0-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file endless_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: endless_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for endless_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 76ff2cd9833c19536bec1b16519fb0f131e70b2e6a6bac83163860b345feb6df
MD5 f2bf39b9a9b0710d9cb23d879105aa11
BLAKE2b-256 9be79ad5fb396bb55573c06a192b30aedb588e02b646afced584602b310e2348

See more details on using hashes here.

File details

Details for the file endless_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: endless_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for endless_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb436a0bae7730e73d70858091b7207d9306530aadfa9f8279b15207f6205b9
MD5 a65500218e98fdbc556a79ec21b3a367
BLAKE2b-256 5d8c18663ee514ddf577431ea22a45a6d002208c82035feb0c6114c3abb33ea9

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