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",
)
# Calls test('hello') at first 10 blocks each epoch in subnet 1
sender.add_periodic_task(
celery_bittensor.epoch("0-9", netuid=1),
test.s("hello"),
name="first 10 block each epoch",
)
# Calls test('hello') at 50th and 75th block each epoch in subnet 1
sender.add_periodic_task(
celery_bittensor.epoch("49,74", netuid=1),
test.s("hello"),
name="50 and 75 block each epoch",
)
@app.task
def test(arg):
print(arg)
License
BSD 3-Clause License, see LICENSE.
Metadata
Release files for celery-bittensor 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| celery_bittensor-0.4.1.tar.gz | 9.5 kB | With provenance | Details for celery_bittensor-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celery_bittensor-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for celery_bittensor-0.4.1-py3-none-any.whl |
Total release size: 17.3 kB
Release files / celery_bittensor-0.4.1.tar.gz
| Download URL | celery_bittensor-0.4.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5538ef3b1b944022ceb25882a9830e355afcb85600c656f4f49581ed2d7d03a
|
|
BLAKE2b-256 checksum How to use checksums |
349236fee1f10463ac69dac0dc2069b1e6a4274cbdccef3474faefa1b54a4259
|
| 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 Nov 4, 2026.
Transparency logRelease files / celery_bittensor-0.4.1-py3-none-any.whl
| Download URL | celery_bittensor-0.4.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
269b9b16854f0cb3d466c7e21e34b7b11ae9d1bb8735d6206687c947ed2fd70a
|
|
BLAKE2b-256 checksum How to use checksums |
a7471a22fab30a5a37a233bbb83c2a3110464b7d2ca5fd14c58bff27af332018
|
| 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 Nov 4, 2026.
Transparency logSecurity for celery-bittensor 0.4.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.
Attestation for celery_bittensor-0.4.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 Nov 4, 2026.
Transparency logA 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.