Skip to main content

Deterministic, content-addressed .gitignore generator. Same input always yields the same output, byte-for-byte.

Project description

occam-gitignore

Deterministic, content-addressed .gitignore generator. Given the same project tree, always produces the same output — byte-for-byte — with a provenance_hash header so any third party can verify the result was generated by an honest implementation of the algorithm.

pipx install occam-gitignore
occam-gitignore generate /path/to/repo > .gitignore

Why deterministic?

A .gitignore is part of your repo's reproducible build surface. If two checkouts of the same commit produce different ignore files, your CI is lying. occam-gitignore fingerprints the project tree, runs a pure function over a content-addressed templates table + a versioned mined-rules table, and emits an ignore file annotated with hashes of every input. No I/O ordering, no clock, no hostname.

Guarantees

  • Determinism: identical inputs ⇒ identical bytes (UTF-8, LF, single trailing newline). Property-tested with Hypothesis (P1–P7) and validated by a 32-case conformance suite that any external implementation can run.
  • Content addressing: templates and rules table carry sha256:<12-hex> versions; mismatched declarations are rejected at load time.
  • Provenance: every emitted .gitignore includes a header with the full provenance_hash (Merkle of core + templates + rules_table + content) so drift is one grep away.
  • Supply chain: every release ships with an SPDX SBOM and a SLSA Level 3 build provenance attestation.

Links

MIT licensed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

occam_gitignore-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

occam_gitignore-0.1.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file occam_gitignore-0.1.2.tar.gz.

File metadata

  • Download URL: occam_gitignore-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for occam_gitignore-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b03d7e86fce77f40c8f10366b7a68b7e4e8b3ea9f28377f18711072b23993b3f
MD5 12ba0b4415bf1059d914878e7a651608
BLAKE2b-256 49c0fbf1df9d361e4d329f1d87b614efea088cac43d19479999e1a79911d5b0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore-0.1.2.tar.gz:

Publisher: release.yml on fabriziosalmi/gitignore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file occam_gitignore-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: occam_gitignore-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for occam_gitignore-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 737e3a2e4449a45ab872c0724de1c0f2d38ef5a3c1468a33accb90ff0e686850
MD5 07bc1ac5fc3e0734d54d5a7d73ae7563
BLAKE2b-256 a46445926ebbfaa43f86a8eebe0eec92de5b41d91235db3dc736dadbcdacf5ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore-0.1.2-py3-none-any.whl:

Publisher: release.yml on fabriziosalmi/gitignore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page