Skip to main content

compute-horde

Receipts

Common django models

This library contains common Django models for the receipts. To use them, update your INSTALLED_APPS:

INSTALLED_APPS = [
    ...,
    'compute_horde.receipts',
    ...,
]

Migrations

To make new migrations after doing some changes in the model files, run:

DJANGO_SETTINGS_MODULE=compute_horde.settings uv run django-admin makemigrations

Blockchain

This library contains common logic for interacting with the blockchain (subtensor).

To use it, update your INSTALLED_APPS:

INSTALLED_APPS = [
    ...,
    'compute_horde.blockchain',
    ...,
]

Block cache

This is a cheap-to-query store that stores the current block number.

Usage:

  • Add compute_horde.blockchain.tasks.update_block_cache as a Celery Beat task with some reasonable frequency (like 6s)
    • Make sure to set the expires= option for the beat entry to about the same value to avoid the tasks piling up
  • To get the current block number from cache, use aget_current_block (or get_current_block).

Validators

This app contains common logic for updating validators of a given network. To use it, update your INSTALLED_APPS:

INSTALLED_APPS = [
    ...,
    'compute_horde.validators',
    ...,
]

Models

This app works with models from other projects; it doesn't define its own. To use it, you need to specify COMPUTE_HORDE_VALIDATOR_MODEL in your settings.py, in the form of <app_label>.<model_name>. This model must have at least two fields: public key (string) and active (bool). Other settings are:

COMPUTE_HORDE_VALIDATOR_KEY_FIELD
COMPUTE_HORDE_VALIDATOR_ACTIVE_FIELD
COMPUTE_HORDE_VALIDATOR_DEBUG_FIELD # optional
BITTENSOR_NETUID
BITTENSOR_NETWORK

Tasks

There is a periodic task to update the validators in the database. To use it, define the settings above and add compute_horde.validators.tasks.fetch_validators to your celery beat config.

Metadata

Release files for compute-horde 0.0.27

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

Source distribution (sdist)

Source distribution for compute-horde 0.0.27
File Size Uploaded Provenance Actions
compute_horde-0.0.27.tar.gz 67.0 kB With provenance Details for compute_horde-0.0.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for compute-horde 0.0.27
File Interpreter ABI Platform Actions
compute_horde-0.0.27-py3-none-any.whl Python 3 none any Details for compute_horde-0.0.27-py3-none-any.whl

Total release size: 125.9 kB

Release files / compute_horde-0.0.27.tar.gz

Download URL compute_horde-0.0.27.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06c846159a1efcf0005213d13ee00c2a4b088864f7147978fc4c8bf4419b4eb9
BLAKE2b-256 checksum
How to use checksums
0b575c9dbc69ed0fc604ba8cfd65fa3a7c4eb7ac2dac245d5cb62864f0cb6c9f
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 26, 2026.

Transparency log

Release files / compute_horde-0.0.27-py3-none-any.whl

Download URL compute_horde-0.0.27-py3-none-any.whl
Size 58.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45fdb057e539393a313c397d42e1f8d2f51b5fb2f0d62314b222e28120d98a09
BLAKE2b-256 checksum
How to use checksums
4c891b7fce22514388a9193a51eafeee464facd1e1a0b910f01ee6d56d02c19c
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 26, 2026.

Transparency log

Security for compute-horde 0.0.27

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for compute_horde-0.0.27.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 26, 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