Skip to main content

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

Metadata

Release files for dirtygit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dirtygit 0.2.0
File Size Uploaded Provenance Actions
dirtygit-0.2.0.tar.gz 2.1 kB Without provenance Details for dirtygit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dirtygit 0.2.0
File Interpreter ABI Platform Actions
dirtygit-0.2.0-py3-none-any.whl Python 3 none any Details for dirtygit-0.2.0-py3-none-any.whl

Total release size: 4.7 kB

Release files / dirtygit-0.2.0.tar.gz

Download URL dirtygit-0.2.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6f66848d44c096c9c1b9c4c4ad5c834d2cc55c29d33fe33a8363afb0b28c5247
BLAKE2b-256 checksum
How to use checksums
aab322578bc34cd92cb80e521770305f23026449b8a53ec6171da1e65e7565af
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / dirtygit-0.2.0-py3-none-any.whl

Download URL dirtygit-0.2.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09cc503c4971f8eba911198a57c01258b15649d8ce7259621b2693071bd2b8b1
BLAKE2b-256 checksum
How to use checksums
12db6d193170cd8a9166d8ce9b743197323ba9b29f60de5b895ea0452cd92a36
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for dirtygit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page