Skip to main content

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.

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_core-0.3.0.tar.gz (17.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_core-0.3.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file occam_gitignore_core-0.3.0.tar.gz.

File metadata

  • Download URL: occam_gitignore_core-0.3.0.tar.gz
  • Upload date:
  • Size: 17.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_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d8d8b50ddb3c52c4d5df2a02a55b57ecf43a0198df99747fe72e0b522f795c02
MD5 78de449b21c73e71e8a9c3ddbff4b246
BLAKE2b-256 cc1366b59649f2305997a3700a3cb217cdf9b92354db2a19e6bf11c3837cbc61

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore_core-0.3.0.tar.gz:

Publisher: release.yml on fabriziosalmi/occam-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_core-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for occam_gitignore_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e684aaa44a0e3b91132e757d864d951a686ef19c9e81ffd3cd33a7fcaae853db
MD5 0fcb99da12b2810b9c1dc6ab656e2a7a
BLAKE2b-256 87f3c99dadd0609d69ff72f6b94be646b47b31cab498dd34e47367fdd317fb0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore_core-0.3.0-py3-none-any.whl:

Publisher: release.yml on fabriziosalmi/occam-gitignore

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Supported by

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