Skip to main content

kista

Reusable Python modules for file operations, HTTP identity, path safety, and platform detection. Small, well-scoped building blocks so the same user agent handling, sanitizing and file routines stop getting rewritten per project.

Kista is Icelandic for chest - verkfaerakista is the toolchest.

Modules

  • kista.http - HTTP request identity: consistent header profiles (an honest tool profile and a complete browser ensemble), never random user agents. The browser profile reaches hosts that block generic user agents; the tool profile identifies the caller by name and version.
  • kista.sanitize - filename and path component sanitizing.
  • kista.fileops - atomic writes and timestamp-preserving copy/move.
  • kista.paths - containment guard (resolve_within) and archive entry normalization for hostile input.
  • kista.testing - hostile-input corpora for test parametrization.
  • kista.netfilter - junk host/path filtering (ads, trackers, crash reporters) with bundled pattern lists and whitelist.
  • kista.hashing - streaming file digests.
  • kista.fmt - human-readable formatting (byte sizes).
  • kista.platforminfo - Linux distro detection with derivative mapping via ID_LIKE.
  • kista.urls - scraped-URL normalization.
  • kista.dt - timezone-aware UTC helpers.
  • kista.arch - AppImage architecture detection from filenames.
  • kista.checkreqs - system dependency checker from TOML manifests.

Install

From PyPI:

pip install sjaandi-kista

From source:

pip install .

The import name is kista:

from kista.sanitize import sanitize_filename
from kista.http import browser_profile, session_for

License

GPL-3.0-or-later. See LICENSE for the full text and THIRD_PARTY_LICENSES.txt for dependencies. Product number SJ-PKG-0020.


kista has been written with the help of tooled assistance, but has been designed, reviewed and thoroughly tested and signed off by its developer.

Metadata

Release files for sjaandi-kista 0.9.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 sjaandi-kista 0.9.0
File Size Uploaded Provenance
sjaandi_kista-0.9.0.tar.gz 58.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sjaandi-kista 0.9.0
File Interpreter ABI Platform
sjaandi_kista-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 104.4 kB

Release files / sjaandi_kista-0.9.0.tar.gz

Download URL sjaandi_kista-0.9.0.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f62448c83ad04a427ad50c1d5799db95cf77bad8b4d5faf7ff1237e06caa6a51
BLAKE2b-256 checksum
How to use checksums
dc5a8f8ab7e242a7ebc196a751c68280a7d59a63bab5611ec0caff674e4552a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / sjaandi_kista-0.9.0-py3-none-any.whl

Download URL sjaandi_kista-0.9.0-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5c2ae828a1883129322400a75498678ddeba65bfa3dfddf5c64d6c583be1237
BLAKE2b-256 checksum
How to use checksums
0a98c0d3c577a8fffde750f192b76402fa4ca2acd3b9503f16245e12c0b2fe12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for sjaandi-kista 0.9.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.

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.

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