Skip to main content

celery-bittensor

Bittensor's Schedule for Celery

Installation

pip install celery-bittensor

Requires Python 3.10+.

Example

import celery
import celery_bittensor

app = celery.Celery()


@app.on_after_configure.connect
def setup_periodic_tasks(sender: celery.Celery, **kwargs):
    # Calls test('hello') every 10 finalized blocks.
    sender.add_periodic_task(
        celery_bittensor.schedule(run_every=10),
        test.s("hello"),
        name="add every 10",
    )

    # Calls test('hello') every 10 finalized blocks relative to block number 0.
    sender.add_periodic_task(
        celery_bittensor.schedule(run_every=10, relative=True),
        test.s("hello"),
        name="add every 10 relative to 0",
    )

    # Calls test('hello') every 10 new blocks on testnet.
    sender.add_periodic_task(
        celery_bittensor.schedule(run_every=10, finalized=False, network="test"),
        test.s("hello"),
        name="add every 10 on testnet",
    )


@app.task
def test(arg):
    print(arg)

License

BSD 3-Clause License, see LICENSE.

Metadata

Release files for celery-bittensor 0.1.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 celery-bittensor 0.1.1
File Size Uploaded Provenance Actions
celery_bittensor-0.1.1.tar.gz 7.5 kB With provenance Details for celery_bittensor-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for celery-bittensor 0.1.1
File Interpreter ABI Platform Actions
celery_bittensor-0.1.1-py3-none-any.whl Python 3 none any Details for celery_bittensor-0.1.1-py3-none-any.whl

Total release size: 13.0 kB

Release files / celery_bittensor-0.1.1.tar.gz

Download URL celery_bittensor-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f0080ad5e88c4f98f420d06b814d3d23977ba0bb644a866ab91c58b78d736f27
BLAKE2b-256 checksum
How to use checksums
934555998a19b3884f2ab4fcf30c78e23d540f3cf7c11e955fc4e0f9268e6230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / celery_bittensor-0.1.1-py3-none-any.whl

Download URL celery_bittensor-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3310486fe60892790d7a20d4968ad5a45bb4fa409d78f144b94016c3c0b398c5
BLAKE2b-256 checksum
How to use checksums
43a83fb0db4d520f6691861b9e1d6d695a363943c6a70b7f9565ec237e91d1f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for celery-bittensor 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for celery_bittensor-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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