Skip to main content

Solana.py

Project description

Actions Status PyPI version 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.1.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

solana-0.1.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for solana-0.1.0.tar.gz
Algorithm Hash digest
SHA256 187b03bb4d4c33bcadfcfdfd0334363f6e67dbe994b8ff3c93c77e8c53c744c8
MD5 8a4ba94e49de28451c934f12dbcb58ac
BLAKE2b-256 c77e8a1b2b57430bb2fc38ecdc215fc4c8767ba708a8f1b7e7e380fc5e507cd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solana-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2533a84d58847a4eac044f07a21a9324c556467e34eef8b6f1b320195e54251
MD5 f594669288efd9921b1b6204c979e231
BLAKE2b-256 21e894e71c8220a74410c55be4ec5eea17f4d50e31b757298fcc3f5a3f70af18

See more details on using hashes here.

Supported by

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