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


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.5.0.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

solana-0.5.0-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solana-0.5.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for solana-0.5.0.tar.gz
Algorithm Hash digest
SHA256 74d70dc476106d560418869693033d9bb300ba8c07dd6dafe8e46ce988237267
MD5 b80911e99239049eb9c2608fc5eb6142
BLAKE2b-256 f283fe7ca684d16d086e0c0a98c8899fc496acd4097f5b80f8e04a9467cbab48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solana-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for solana-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42719df91c08c20ab7eebc7b349aedb4602e46e0e55bfda520a41230e51cde48
MD5 9fb6ec0983823b56605d37f41c426cec
BLAKE2b-256 1126340e4c7ac7aa0d0526edfbb0b9a8f4e4d29562c01ed59685477d356a0685

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page