Skip to main content

xit - Useful tools for common applications

Xit is a general-purpose Python library that provides low-level, reusable tools for other Python projects. It sits at the base of the dependency graph: other projects may depend on it, but it depends on nothing beyond the Python standard library.

Status: early design (0.1.0). The public API is not stable yet; the module layout below is a proposal.

Goals

  • Offer small, well-tested building blocks that recur across projects and are missing from, or awkward to use in, the standard library.
  • Keep the library lightweight to install, import, and audit.
  • Provide a typed, documented, and predictable API.

Principles

  • Standard library only. Runtime code imports only the Python standard library. The sole exception is another library at this same foundational level, added only after explicit agreement. Development tools (tests, linters, documentation) are not restricted.
  • Low level and generic. No application, framework, or domain logic. A tool belongs here when at least two unrelated projects need it.
  • No import side effects. Importing a module must not perform I/O, change global state, or configure logging.
  • Fully typed. All public functions and classes carry type annotations and docstrings.
  • Explicit and stable API. Each module declares its public names in __all__. Breaking changes go through a deprecation period and are recorded in the changelog.
  • Modern Python. Targets Python 3.14 or later, using current language features instead of compatibility shims.

Proposed modules

Initial areas under consideration; each becomes a module of the xit package only when a concrete use case exists:

Module Scope
xit.collections Container helpers: ordered sets, frozen mappings, etc.
xit.functools Function composition, memoization, and sentinels.
xit.iterators Lazy iteration helpers complementing itertools.
xit.text String normalization, slugs, and safe formatting.
xit.paths File-system and path utilities built on pathlib.
xit.typing Reusable protocols, type aliases, and guards.

Pending ideas are tracked in the documentation backlog (docs/source/backlog/index.md).

Installation

uv add xit

Or, with pip:

pip install xit

Development

The project uses uv for environment and dependency management:

uv sync                                       # Create the environment.
uv run pytest                                 # Run the test suite.
uv run ruff check src tests                   # Lint.
uv run ruff format src tests                  # Format.
uv run isort src tests                        # Sort imports.
uv run mypy                                   # Type-check.
uv run make -C docs html                      # Build the documentation.

Contributors, human or AI, should read AGENTS.md for the project's conventions.

Documentation

The documentation is written in Markdown (MyST) and built with Sphinx. Its sources live in docs/source, including the changelog (history/) and the backlog (backlog/).

License

Released under the MIT License. See LICENSE.

Metadata

Release files for xit 0.1.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 xit 0.1.1
File Size Uploaded Provenance Actions
xit-0.1.1.tar.gz 5.0 kB Without provenance Details for xit-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 9.8 kB

Release files / xit-0.1.1.tar.gz

Download URL xit-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8199560401c36e5bd998da7e1ddd3bc2746bab50693fb70c8bb2795b3b2c9cd0
BLAKE2b-256 checksum
How to use checksums
5a8bd41cf61e3c92aa3e2bf5bcdefaee32b4a29e0457e778492e1665683b0b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xit-0.1.1-py3-none-any.whl

Download URL xit-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2313748fb04adfaef62793bd1a3ce3f156eac8e78ffdf79c6fdfb8ffa7a181a1
BLAKE2b-256 checksum
How to use checksums
b8c3cfec5cc3cc6dbdedd63a7b66f90ad667fcd1825661bcbb9a156783ba02d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for xit 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 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