Skip to main content

rehuco-core

PyPI License: MIT Python versions

Shared library for rehuco: data models, .rehu file I/O, checksums, a catalog cache, and a task queue.

View on PyPI · View on GitHub

Status

Alpha. It does real work: it is what the desktop app reads and writes files with, in daily use. But it is developed for that one consumer, the file formats still change between releases, and the API changes without notice. The release milestones say what ships next.

What it is

rehuco-core is the non-GUI half of rehuco: everything the desktop editor needs to read and write a resource's .rehu sidecar, with no Qt dependency.

It provides:

  • Data models — the .rehu document, its common fields, and per-type plugin blocks
  • File I/O — atomic read and write, with unknown fields preserved verbatim
  • Format versioning — a per-file version, migrations applied on load, and read-only handling of a file written by a newer version
  • Per-user state — one user's ratings, flags, learning paths and watch progress for a resource, in a .rehuser sidecar of its own beside the .rehu
  • Content checksums — a .checksum record beside the .rehu holding, per content file, its hash, when it was last verified and what the answer was; generate and verify read it, and can re-check just one file or skip whatever was checked recently
  • Content enumeration — which files a resource covers, the images inside a reference pack's archives, and measured size on disk and video duration
  • A catalog — the .rehuco file listing folder roots, each a .rehuroot file of its own that catalogs share, a root's path layouts rendered per record, and the .rehudb SQLite cache of the records found under them: an incremental scan, targeted updates after a save or rename, and filtered reads
  • Staged images — an image taken out of a resource, written unchanged under a name that traces it back
  • A task queue — one long job at a time, pausable, cancellable, reorderable, optionally persisted across restarts
  • Legacy .tc conversion — parsing the predecessor format and converting it to .rehu, one file or a whole folder tree, with backups and rollback

Goals

rehuco-core aims to be:

  • MIT licensed — usable in open-source or closed-source projects freely
  • Dependency-light — no GUI dependencies; installable on headless servers and low-spec NAS hardware
  • Typed — fully annotated public API with a py.typed marker for type-checker integration

Installation

pip install rehuco-core

License

MIT

Metadata

Release files for rehuco-core 0.4.0

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

Source distribution (sdist)

Source distribution for rehuco-core 0.4.0
File Size Uploaded Provenance Actions
rehuco_core-0.4.0.tar.gz 1.0 MB With provenance Details for rehuco_core-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rehuco-core 0.4.0
File Interpreter ABI Platform Actions
rehuco_core-0.4.0-py3-none-any.whl Python 3 none any Details for rehuco_core-0.4.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / rehuco_core-0.4.0.tar.gz

Download URL rehuco_core-0.4.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
0e0dfc173798e1be45cd12e2c908b42204874bdabdbf105c21c6aec099dba8e1
BLAKE2b-256 checksum
How to use checksums
68c89eae548c3eb93dfffc41ead908d4cc0a53a02d45eb3a326dadfb8a739fd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 12, 2026.

Transparency log

Release files / rehuco_core-0.4.0-py3-none-any.whl

Download URL rehuco_core-0.4.0-py3-none-any.whl
Size 577.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1fd9ce6925e76154daa10615bbf45953d6e980bae90060c205f80590f4f7e3c
BLAKE2b-256 checksum
How to use checksums
9eca9416eb5de6d54ec2ca86d7fbc829164357a9196b765b2d93fef5553e833c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 12, 2026.

Transparency log

Security for rehuco-core 0.4.0

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 rehuco_core-0.4.0.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 12, 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