Solana.py
Project description
Solana.py
Solana Python API built on the JSON RPC API.
Python version of solana-web3.js for interacting with Solana.
Read the Documentation.
Quickstart
Installation
pip install solana
General Usage
import solana
API Client
from solana.rpc.api import Client
http_client = Client("https://api.devnet.solana.com")
Development
Setup
- Install pipenv.
brew install pipenv
- Install dev dependencies.
pipenv install --dev
- Activate the pipenv shell.
pipenv shell
Lint
make lint
Tests
# All tests
make tests
# Unit tests only
make unit-tests
# Integration tests only
make int-tests
Start a Solana Localnet
Install docker.
# Update/pull latest docker image
pipenv run update-localnet
# Start localnet instance
pipenv run start-localnet
Using Jupyter Notebook
make notebook
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
solana-0.10.1.tar.gz
(42.2 kB
view details)
Built Distribution
solana-0.10.1-py3-none-any.whl
(50.3 kB
view details)
File details
Details for the file solana-0.10.1.tar.gz
.
File metadata
- Download URL: solana-0.10.1.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cab4a18bbe90c51d4014a4e8cbfc241d974efe4029fcb273ea01f8b9e3c218d |
|
MD5 | ab809ff28ececfdfa7a775c2b1f838ab |
|
BLAKE2b-256 | c9fa378e1de5e7e63a1338ad686c893a70231dce430f1d75a8bbc1430a51902d |
File details
Details for the file solana-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: solana-0.10.1-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db0b79355c5256000ac226db8418d69782e14e9c19b99b156e2be37ca1289b11 |
|
MD5 | 54dbdf6e56880352abbd7e5cb58aa176 |
|
BLAKE2b-256 | 2bdc7c8692a81655f365cc01ae34961ba2ad05b97bed7dea020056d929a7b98c |