Skip to main content

Moonstream Crawlers

Installation

(Use Python 3)

pip install -e .

Database access and environment variables

Make sure that the MOONSTREAM_DB_URI environment variable is set as a Postgres connection string.

For a sample, view sample.env.

Crawlers

Ethereum Signature Database

This crawler retrieves Ethereum function signatures from the Ethereum Signature Database at https://www.4byte.directory.

Crawling ESD function signatures

python -m mooncrawl.esd --interval 0.3 functions

Crawling ESD event signatures

python -m mooncrawl.esd --interval 0.3 events

Ethereum contract registrar

This crawler scans new transactions for smart contract deployments and retrieves their deployment addresses from transaction receipts.

To run this crawler:

python -m mooncrawl.cli ethcrawler contracts update

Output is JSON list of pairs [..., (<transaction_hash>, <contract_address>), ...], so you can pipe to jq:

python -m mooncrawl.cli ethcrawler contracts update | jq .

You can also specify an output file:

python -m mooncrawl.cli ethcrawler contracts update -o new_contracts.json

Metadata

Release files for mooncrawl 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mooncrawl 0.5.1
File Size Uploaded Provenance Actions
mooncrawl-0.5.1.tar.gz 81.2 kB Without provenance Details for mooncrawl-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mooncrawl 0.5.1
File Interpreter ABI Platform Actions
mooncrawl-0.5.1-py3-none-any.whl Python 3 none any Details for mooncrawl-0.5.1-py3-none-any.whl

Total release size: 179.5 kB

Release files / mooncrawl-0.5.1.tar.gz

Download URL mooncrawl-0.5.1.tar.gz
Size 81.2 kB
Tags Source
SHA-256 checksum
How to use checksums
23510265321483a11eff6c52ce164e475a6c90a59dd6359745e2fa333150184f
BLAKE2b-256 checksum
How to use checksums
882792733065fc03642e097cafb18b907bccbab09ab120850428a7a90e2e8e81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.18

Release files / mooncrawl-0.5.1-py3-none-any.whl

Download URL mooncrawl-0.5.1-py3-none-any.whl
Size 98.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f47f40e866fc1666a728cea92c0e858670bc81e01763de6e37fa4ebd20a88bf
BLAKE2b-256 checksum
How to use checksums
8f7bfd3dbb646c3613807724bb6a72879c933366bd1b6d0664e51d976880ffd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.18

Security for mooncrawl 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page