Skip to main content

Solana.py

Project description

Actions Status PyPI version PyPI pyversions Codecov License: MIT Code style: black

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://devnet.solana.com")

Development

Setup

  1. Install pipenv.
brew install pipenv
  1. Install dev dependencies.
pipenv install --dev
  1. 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.9.1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

solana-0.9.1-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

Details for the file solana-0.9.1.tar.gz.

File metadata

  • Download URL: solana-0.9.1.tar.gz
  • Upload date:
  • Size: 41.5 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.60.0 CPython/3.7.3

File hashes

Hashes for solana-0.9.1.tar.gz
Algorithm Hash digest
SHA256 085c1d74deffb0e18e69044a4ac4f6cf7e395ce85805f24b407b11fa3b163710
MD5 f449bc5aa822d22fe4bc2aa538abcc98
BLAKE2b-256 1c21bb8a78df8cc4a051fa53399a11ce6ad997a3abae40bcfe7fcb7019d8038f

See more details on using hashes here.

File details

Details for the file solana-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: solana-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 49.6 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.60.0 CPython/3.7.3

File hashes

Hashes for solana-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8ba6fe3eaa272597813b062e7e123f34cff158fcd9879f392c010f15b76adc
MD5 01e2cac45ed653eecd77ff9949040622
BLAKE2b-256 987b1f06bda3b2b6607118d59e62d921be1e275f2f31ac18e25dd0157ca455ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page