Aloxide SDK for Python is a collection of libraries which allow you to access various blockchains.
Aloxide SDK for Python development and execution requires Python 3.7 or later.
Gitpod is an online open source VS Code-like IDE (and is free for open source projects) for working on issues and making PRs to this project. With a single click it will start a workspace automatically.
Configure Poetry to use a test repository named testpypi
, do it once:
poetry config repositories.testpypi https://test.pypi.org/legacy/
And following are commands you will use during development:
# install dependencies
$ poetry install
# test
$ pytest
# build
$ rm -rf dist && poetry build
# install from source for testing in other projects
$ pip install -e /path/to/aloxide-sdk-python
It’s time to upload your package to the PyPI so others can use it. The first thing you’ll need to do is register an account on TestPyPI.
You also need an API key so that Poetry can push your package to the testpypi
repository. Configure Poetry to use it:
poetry config http-basic.testpypi __token__ your_api_token
poetry publish -r testpypi
Once uploaded the package should be viewable on TestPyPI at https://test.pypi.org/project/aloxidesdk.
First, you need to get Aloxide SDK for Python into your project. It can be installed using pip as follows:
$ pip install aloxidesdk
Once you have installed aloxidesdk
library, you can import it using:
import aloxidesdk
from aloxidesdk.aloxide_service import AloxideService
# more code go here
More examples are found on GitHub at examples.