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.0.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.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: occam_gitignore_core-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d5cdd684fb7ea4ab37140eb73aa0a4d50823b0f06f2f0ce45f898eaa81031401
MD5 3d29dafc6a5c46570241e412e4bf77c9
BLAKE2b-256 e3d1329024f077ba78085f3dd9e69665d300ef7bc8974716717f258ca5238cf2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for occam_gitignore_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d7f1ff73a9ff176b79e0d214d613be9f6626a88cdfda359091138565caeed1
MD5 c00fd79636d5cd4dc1fb145a176982de
BLAKE2b-256 1c0b214b245dab21e6c20cd0538f66c533bfb687e3c0a976e50d0b435fc40976

See more details on using hashes here.

Provenance

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