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 exists so automated downloads can reach hosts that block generic user agents while still identifying the actual client in the profile comment.
  • 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_headers

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

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.2
File Size Uploaded Provenance
sjaandi_kista-0.8.2.tar.gz 52.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 96.2 kB

Release files / sjaandi_kista-0.8.2.tar.gz

Download URL sjaandi_kista-0.8.2.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
35c6e4106f42279adb1fcaf3816d3c5ef82d995ce563bece9dbe65e8a043cf98
BLAKE2b-256 checksum
How to use checksums
45665e06c72a01ae785d668fdc687250e8b5d9020840e60afda91e2de0ab1ee0
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.2-py3-none-any.whl

Download URL sjaandi_kista-0.8.2-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fe7d6fe73ff129f36f5542bc1e902e1dd6da973b15597165e27a1ed0b900fe4
BLAKE2b-256 checksum
How to use checksums
3bec156166d8110da5041f6c58d36b81a7d8c99f006c09d19730223efb2455e0
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.2

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