Skip to main content

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


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.1.2.tar.gz (13.1 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.1.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for occam_gitignore_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9ad0e1dc7a3b7d32384fda9ff404682422751700e5819eb84bc1d0feef3a265
MD5 267cd0d0e163d4990cd5da88d7a91518
BLAKE2b-256 2fd8522fb22acf2e584a2fe0aa331e03890d8a01c2bd50033a158fcde141a5ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for occam_gitignore_core-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_core-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for occam_gitignore_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c63af425bf8c9274ac43f5a6db6715949a46f66f878cc9a39fabaf080b00f8
MD5 4d90f8d683e0e719a3c08fe1fdf15a2e
BLAKE2b-256 da6c80cfa8d0d1f8b99d0a8490e1bc139e031595501cca1a28c5f3b69e4fb235

See more details on using hashes here.

Provenance

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