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

Uploaded Python 3

File details

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

File metadata

  • Download URL: occam_gitignore_core-0.1.3.tar.gz
  • Upload date:
  • Size: 13.3 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.3.tar.gz
Algorithm Hash digest
SHA256 c01109d5b3481763a29647a83e497cdb0b297e97a2fb30b65a2658ff189a2ca9
MD5 997615fd92cff14ca54f3ac67a3e6eee
BLAKE2b-256 282262f98ff412744150342cbda3cc628a1abb3123ffa4e8a6407dbcc8de8b11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for occam_gitignore_core-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 112100d405ae2e6d64dc90959dbabec319deb85d3a0c633639cf07c1607b0a8b
MD5 8d0d8a7b01c05157d47f41ed6635e31e
BLAKE2b-256 ba96e7bbdb82898b74fa1083ed95ce54b2c4a71c34d9188e165545f183f97599

See more details on using hashes here.

Provenance

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