occam-gitignore-core
Pure, deterministic core for occam-gitignore.
This package contains only the algorithm: types, ports, fingerprinter,
generator. No I/O wrappers, no CLI, no network. The public-facing tool that
end users want is occam-gitignore:
install that one with pipx install occam-gitignore.
This package is published separately so that other tools (IDE extensions, servers, language ports) can depend on the algorithm without pulling the CLI surface.
from occam_gitignore_core import (
DefaultFingerprinter,
FileSystemTemplateRepository,
GenerateOptions,
JsonRulesTable,
generate,
)
fp = DefaultFingerprinter().fingerprint(("pyproject.toml", "src/main.py"))
content = generate(
fp,
GenerateOptions(),
templates=FileSystemTemplateRepository("data/templates"),
rules_table=JsonRulesTable.from_file("data/rules_table.json"),
)
See https://github.com/fabriziosalmi/gitignore for the full project, conformance suite, and specification.
MIT licensed.
Metadata
Release files for occam-gitignore-core 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| occam_gitignore_core-0.4.0.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| occam_gitignore_core-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / occam_gitignore_core-0.4.0.tar.gz
| Download URL | occam_gitignore_core-0.4.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3a4b3b8388b1b7064b366b0baa2850cb0df71ab591a9ef46af8050ff7d53b4b
|
|
BLAKE2b-256 checksum How to use checksums |
b5ea5e8009d3278835412753c5ffc29e5908f6c36cf61af20adb5f0303c69547
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / occam_gitignore_core-0.4.0-py3-none-any.whl
| Download URL | occam_gitignore_core-0.4.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b55bf6630016a16416d12bbc8293c581b2b9815fac6072d7387dafcbe96080b
|
|
BLAKE2b-256 checksum How to use checksums |
0226c14ce154ff653bcfdd95a16f6e1a83ce9f8d08b75024f40839ceb9420da0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log