Pure, deterministic core for occam-gitignore.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file occam_gitignore_core-0.1.2.tar.gz.
File metadata
- Download URL: occam_gitignore_core-0.1.2.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ad0e1dc7a3b7d32384fda9ff404682422751700e5819eb84bc1d0feef3a265
|
|
| MD5 |
267cd0d0e163d4990cd5da88d7a91518
|
|
| BLAKE2b-256 |
2fd8522fb22acf2e584a2fe0aa331e03890d8a01c2bd50033a158fcde141a5ae
|
Provenance
The following attestation bundles were made for occam_gitignore_core-0.1.2.tar.gz:
Publisher:
release.yml on fabriziosalmi/gitignore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
occam_gitignore_core-0.1.2.tar.gz -
Subject digest:
e9ad0e1dc7a3b7d32384fda9ff404682422751700e5819eb84bc1d0feef3a265 - Sigstore transparency entry: 1393198019
- Sigstore integration time:
-
Permalink:
fabriziosalmi/gitignore@4c23d33eb30b03420d4c21f8494d6ccd067561be -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/fabriziosalmi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c23d33eb30b03420d4c21f8494d6ccd067561be -
Trigger Event:
push
-
Statement type:
File details
Details for the file occam_gitignore_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: occam_gitignore_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c63af425bf8c9274ac43f5a6db6715949a46f66f878cc9a39fabaf080b00f8
|
|
| MD5 |
4d90f8d683e0e719a3c08fe1fdf15a2e
|
|
| BLAKE2b-256 |
da6c80cfa8d0d1f8b99d0a8490e1bc139e031595501cca1a28c5f3b69e4fb235
|
Provenance
The following attestation bundles were made for occam_gitignore_core-0.1.2-py3-none-any.whl:
Publisher:
release.yml on fabriziosalmi/gitignore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
occam_gitignore_core-0.1.2-py3-none-any.whl -
Subject digest:
d3c63af425bf8c9274ac43f5a6db6715949a46f66f878cc9a39fabaf080b00f8 - Sigstore transparency entry: 1393198058
- Sigstore integration time:
-
Permalink:
fabriziosalmi/gitignore@4c23d33eb30b03420d4c21f8494d6ccd067561be -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/fabriziosalmi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c23d33eb30b03420d4c21f8494d6ccd067561be -
Trigger Event:
push
-
Statement type: