Skip to main content

Actions Status PyPI version 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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solana-0.1.1-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solana-0.1.1.tar.gz
  • Upload date:
  • Size: 27.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 7ab9490f1c59582be1917b79f860aef2eafd9e8018bfeb28f0f99c0d9eb45310
MD5 6124678b9e1ad18418d996a843696af7
BLAKE2b-256 c84ddabd7f3e30b070a813cc5594b3f137129b69c3b806fdeb8a336247af695c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solana-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.8 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2af566a15bda2641c37634fb6fa784c70102862ea3505e5059bb4b683472d28e
MD5 cb7371ac5aaaf730da7443072818ea47
BLAKE2b-256 75d8f92d7c8d70fa4a83f5fd0bf10ecd473e19e91973ca0cac855424c480655f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1

Supported by

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