Skip to main content

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 HTTP, WEBSOCKET, Client

http_client = Client(endpoint="https://devnet.solana.com", client_type=HTTP)
websocket_client = Client(endpoint="ws://localhost:8900", client_type=WEBSOCKET)

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

Uploaded Source

Built Distribution

solana-0.0.3-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solana-0.0.3.tar.gz
  • Upload date:
  • Size: 25.0 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.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for solana-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5e33b29255adff4ada29a454ebcdebcd02aca004808f7d65cbaaa0e78d177e1f
MD5 b9a6792eaf7db92b29fb88f46db11d4d
BLAKE2b-256 1f000dcf472f12b32e1dba20c5e9f2f7ce90fd3a2728ef552d3de19bd29e2d71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solana-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 29.9 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.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for solana-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 208121a2655fbcc4d07d578d1bb1b46a22aab6f076d1f53c1c4317059ab2b977
MD5 10c2a37974ac3f994e5ccd7f65adc44e
BLAKE2b-256 84540cdae7ad15c458b6e13c9d8875dca60acf902bd07c039b34bce6d65e75f6

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