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.3.tar.gz (7.9 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.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: occam_gitignore-0.1.3.tar.gz
  • Upload date:
  • Size: 7.9 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.3.tar.gz
Algorithm Hash digest
SHA256 12343b35dac79bad13c5b3d9212948ec07636e26822fc0152f144984e4abfba7
MD5 db1b1131c8440a0895c18bf74b4794ac
BLAKE2b-256 566ab32f9b381dcf721f05a00bccee397dff8d2dd5af7c6655fa0b0864c1b526

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: occam_gitignore-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 056e09924a8912641091b6f27616e08fc3ff38fc175563f9612b453044781626
MD5 e72fb8f282d21a237a28e09dd868835a
BLAKE2b-256 d18d18965ccd4c0eca5112daa4c43c610152ec2430cd641fa062dad786b735ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore-0.1.3-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