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

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.1
File Size Uploaded Provenance Actions
sjaandi_kista-0.9.1.tar.gz 59.6 kB Without provenance Details for sjaandi_kista-0.9.1.tar.gz

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / sjaandi_kista-0.9.1.tar.gz

Download URL sjaandi_kista-0.9.1.tar.gz
Size 59.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4debbca36186f548f75b147fa3b0e9896bda639b0d842d62ca096786563ab3b5
BLAKE2b-256 checksum
How to use checksums
735120d746482d61ae6d15206b8496beaa5aac60bba46b477ebe93dc7d6656de
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.1-py3-none-any.whl

Download URL sjaandi_kista-0.9.1-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7255912e43a00bd83072f9abc0a638538315fd3cc204c26767d87242cf6efd92
BLAKE2b-256 checksum
How to use checksums
094429348ce7b0e718ad91d7cc1aebff0559dd0559cbaccd014b1f9f1b316e3c
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.1

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