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.2.0.tar.gz (2.1 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.2.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dirtygit-0.2.0.tar.gz
  • Upload date:
  • Size: 2.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 6f66848d44c096c9c1b9c4c4ad5c834d2cc55c29d33fe33a8363afb0b28c5247
MD5 2709eea4bf3d8162adc57cc98aa84221
BLAKE2b-256 aab322578bc34cd92cb80e521770305f23026449b8a53ec6171da1e65e7565af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dirtygit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09cc503c4971f8eba911198a57c01258b15649d8ce7259621b2693071bd2b8b1
MD5 b292e67637369623c7226c0c80c4d9eb
BLAKE2b-256 12db6d193170cd8a9166d8ce9b743197323ba9b29f60de5b895ea0452cd92a36

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