Skip to main content

chives

chives is a collection of Python functions for working with my local media archives.

I store a lot of media archives as static websites, and I use Python scripts to manage the sites. This includes:

  • Verifying every file that's described in the metadata is stored correctly
  • Downloading pages from sites I want to bookmark
  • Checking the quality and consistency of my metadata

This package has some functions I share across multiple archives/sites.

References

I've written blog posts about some of the code in this repo:

Versioning

This library is monotically versioned. I'll try not to break anything between releases, but I make no guarantees of back-compatibility.

I'm making this public because it's convenient for me, and you might find useful code here, but be aware this may not be entirely stable.

Usage

See the docstrings on individual functions for usage descriptions.

Installation

If you want to use this in your project, I recommend copying the relevant function and test into your codebase (with a link back to this repo).

Alternatively, you can install the package from PyPI:

$ pip install alexwlchan-chives

Development

If you want to make changes to the library, there are instructions in CONTRIBUTING.md.

License

MIT.

Metadata

Release files for alexwlchan-chives 3

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

Source distribution (sdist)

Source distribution for alexwlchan-chives 3
File Size Uploaded Provenance Actions
alexwlchan_chives-3.tar.gz 5.5 kB Without provenance Details for alexwlchan_chives-3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alexwlchan-chives 3
File Interpreter ABI Platform Actions
alexwlchan_chives-3-py3-none-any.whl Python 3 none any Details for alexwlchan_chives-3-py3-none-any.whl

Total release size: 10.7 kB

Release files / alexwlchan_chives-3.tar.gz

Download URL alexwlchan_chives-3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d02b48bc9802cbe89792c1c50441b2e27ae637a47b0a0f08f831add41acf1c05
BLAKE2b-256 checksum
How to use checksums
36632aa1f0bb8c13db8a56aba10306f4368fa93bc873a6328795023a0dc05067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / alexwlchan_chives-3-py3-none-any.whl

Download URL alexwlchan_chives-3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f259f479dc86919add34de43d8b8e24538444674ff37b462da927ba92e789a74
BLAKE2b-256 checksum
How to use checksums
33274ee3a16ee1e477b330d229e23ff1f9f9edeb472c2452550444e6377be9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for alexwlchan-chives 3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

3 This release

2 release files No provenance

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