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.8.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 sjaandi-kista 0.8.3
File Size Uploaded Provenance
sjaandi_kista-0.8.3.tar.gz 54.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 99.5 kB

Release files / sjaandi_kista-0.8.3.tar.gz

Download URL sjaandi_kista-0.8.3.tar.gz
Size 54.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29e28107a4bcc60833ae697bea4fdfe33cb5cc3847caa4cfb0e2f84b4ae572a4
BLAKE2b-256 checksum
How to use checksums
f313756b51482d57c13d495917f273552f3bcba5911197afaf71346ba2102e6d
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.8.3-py3-none-any.whl

Download URL sjaandi_kista-0.8.3-py3-none-any.whl
Size 44.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c490f43267f6553d8dc36178588425490eeca88b26ff99e81f9bb3b684ab6d3
BLAKE2b-256 checksum
How to use checksums
6f9ebad731c62058e2f33b98d89933e7fc10a51853652f0b4e633d319150c006
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.8.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.

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