Skip to main content

Python SDK for Filecoin Onchain Cloud (Synapse)

Project description

Pynapse

Python SDK for Filecoin Onchain Cloud (Synapse).

This project mirrors the JS SDK in FilOzone/synapse-sdk and references the Go implementation in data-preservation-programs/go-synapse for parity.

Status

Work in progress. Parity is being implemented in incremental commits.

Install (dev)

uv venv
uv pip install -e .[test]

PyPI package name: synapse-filecoin-sdk
Python import: pynapse

Install (PyPI)

pip install synapse-filecoin-sdk

CommP / PieceCID

pynapse uses stream-commp from go-fil-commp-hashhash for PieceCID calculation.

Install stream-commp

stream-commp is an external runtime dependency and is not installed by pip.

git clone https://github.com/filecoin-project/go-fil-commp-hashhash.git
cd go-fil-commp-hashhash/cmd/stream-commp
go build -o stream-commp .

Install it to your PATH (for example /usr/local/bin) or set:

export PYNAPSE_COMMP_HELPER=/absolute/path/to/stream-commp

Verify:

stream-commp --help

License

Dual-licensed under Apache-2.0 OR MIT. See LICENSE.md.

Publishing to PyPI

Publishing is automated via GitHub Actions in .github/workflows/publish-pypi.yml.

  1. In PyPI, create the project (or use an existing one) and configure a Trusted Publisher for this GitHub repository and workflow.
  2. In GitHub, optionally protect the pypi environment for manual approval.
  3. Tag a release and push the tag:
git tag v0.1.1
git push origin v0.1.1

The workflow builds the package, runs twine check, and publishes to PyPI via OIDC (no API token required).

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

synapse_filecoin_sdk-0.1.1.tar.gz (189.1 kB view details)

Uploaded Source

Built Distribution

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

synapse_filecoin_sdk-0.1.1-py3-none-any.whl (86.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synapse_filecoin_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 189.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for synapse_filecoin_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fdd2384bd527b71cc6bf08befd370fba7759cc3226b68f861c2cd1c2688f4ea6
MD5 d7eb194f21c99fcac6538dcdfbc938cb
BLAKE2b-256 4d84c57b18acb21727a79483f0ad6752ab30206ba35119789231ae6e9ac6f983

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_filecoin_sdk-0.1.1.tar.gz:

Publisher: publish-pypi.yml on anjor/pynapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for synapse_filecoin_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a24b0a82c519d7b84ea2e03f57e239b867f4c9ac9d333408abeb2e492b33c3cc
MD5 44708e7ccfc5b91f27a6759d6ac71730
BLAKE2b-256 b9050c4d25a5dbe11b3f0bd99cd1a60aa25b0d4b175bbc6436a60242464295ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_filecoin_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on anjor/pynapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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