Skip to main content

Library for building blockchain pipelines

Project description

Cherry

PyPI version

Python framework for building blockchain data pipelines.


Cherry is in the early stages of development, so the API is changing, and we are still figuring things out.

We would love to help you get started and get your feedback on our telegram channel.

Core libraries we use for ingesting/decoding/validating/transforming blockchain data are implemented in cherry-core repo.

This project is sponsored by:

Features

  • Ingest data from multiple providers with a uniform interface. This makes switching providers as easy as changing a couple lines in config.
  • Prebuilt functionality to decode/validate/transform blockchain data.
  • Support for both Ethereum (EVM) and Solana (SVM) based blockchains.
  • Write data into Clickhouse, Iceberg, Deltalake, Parquet/Arrow (via pyarrow).
  • Keep datasets fresh with continuous ingestion.

Status

We are still trying to figure out our core use cases and trying to build up to them. Here is a rough roadmap::

  • Add option to ingest Solana data from geyser plugin/RPC.
  • Add option to ingest EVM data from Ethereum RPC.
  • Implement more advanced validation.
  • Add more writers like DuckDB, PostgreSQL.
  • Build an end-to-end testing flow so we can test the framework and users can test their pipelines using the same flow.
  • Build a benchmark flow so we can optimize the framework and user can optimize their pipelines using the same flow. This will also make it easy to compare performance of providers and writers.
  • Implement more blockchain formats like SUI, Aptos, Fuel.
  • Implement automatic rollback handling. Currently we don't handle rollbacks so we stay behind the tip of the chain in order to avoid writing wrong data.

Usage Examples

See examples directory.

Can run examples with uv run examples/{example_name}/main.py --provider {sqd or hypersync}

For examples that require databases or other infra, run docker-compose -f examples/{example_name}/docker-compose.yaml up -d to start the necessary docker containers. Can run docker-compose -f examples/{example_name}/docker-compose.yaml down -v after running the example to stop the docker containers and delete the data.

Logging

Python code uses the standard logging module of python, so it can be configured according to python docs.

Set RUST_LOG environment variable according to env_logger docs in order to see logs from rust modules.

To run an example with trace level logging for rust modules:

RUST_LOG=trace uv run examples/{example_name}/main.py --provider {sqd or hypersync}

Development

This repo uses uv for development.

  • Format the code with uv run ruff format
  • Lint the code with uv run ruff check
  • Run type checks with uv run pyright

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

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

cherry_etl-0.2.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

cherry_etl-0.2.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file cherry_etl-0.2.1.tar.gz.

File metadata

  • Download URL: cherry_etl-0.2.1.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.9

File hashes

Hashes for cherry_etl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cafc738d2b09f340b42934fafdbf8e81b7f1e48dc9b8e7a3657ef74ad404f0ac
MD5 d6a2580d39d74e6fdd833e18b7909b7f
BLAKE2b-256 780fc04f65d72df9591d3ded230eb42bbb6eb2a7c7330d42586dff205b9675ec

See more details on using hashes here.

File details

Details for the file cherry_etl-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cherry_etl-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.9

File hashes

Hashes for cherry_etl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec95dff68a239d2e76633c17ae8d90e55c356ea9b4bd16d9c255f25fbd6e97d1
MD5 f59809142f294cbaa5c0a41132b0114b
BLAKE2b-256 38f8a4fa638a640d1f8def06f5d54b542483077b8742b368268137478a7168ae

See more details on using hashes here.

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