Skip to main content

A simple Python library for detecting unclean git states.

Project description

dirtygit

Assert your git repo is clean and get the current commit hash. Useful for ensuring experiment reproducibility.

Install

pip install dirtygit

Usage

import dirtygit

commit = dirtygit.check()  # returns commit hash if clean, asserts if dirty

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

dirtygit-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dirtygit-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dirtygit-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dirtygit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9f6b62c3e92078ecfb2037a5331c6beb3d17fefbae8f366f80ef3739dbfc78b9
MD5 17b2515c09864243937dfbd3fc5f803b
BLAKE2b-256 79e9ae50ad47ce92821932a195155a1eb38199e6ead28225700ceceb58b4149b

See more details on using hashes here.

File details

Details for the file dirtygit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dirtygit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dirtygit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 655d421b977887a2ca02f294166a71547a37f517f9af41194c17e1a1c75cb984
MD5 40d07a44925d8facdf341c2bb61ad8ad
BLAKE2b-256 238cd80af4eaffde779f4905a3f7cdfd81cd16bdcc5111f176a1cfec6ed14bb5

See more details on using hashes here.

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