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.31

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.31
File Size Uploaded Provenance Actions
compute_horde-0.0.31.tar.gz 67.3 kB With provenance Details for compute_horde-0.0.31.tar.gz

Built distribution (wheel)

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

Total release size: 126.2 kB

Release files / compute_horde-0.0.31.tar.gz

Download URL compute_horde-0.0.31.tar.gz
Size 67.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1f78e3279c23782c40d7e6f50bbb5dccf8fdaff93611f9ef2ddeeea596eaf810
BLAKE2b-256 checksum
How to use checksums
eb4414cf1aad4229a8ed65c72685cc425c979324baa91f9f982ffb4e20195aca
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 24, 2026.

Transparency log

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

Download URL compute_horde-0.0.31-py3-none-any.whl
Size 59.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b944d5f9da2f6db553805edbe6afd03e51b6076516b70716670708a7fceeebf5
BLAKE2b-256 checksum
How to use checksums
8412d78fe90afe887c7686ef9cfacce4fcef0b1d4b60cdfd8a60e23eeafc0e75
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 24, 2026.

Transparency log

Security for compute-horde 0.0.31

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.31.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 24, 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