Skip to main content

Generate git metadata JSON files

Project description

git-metainfo

Generate git metadata JSON

Output git metadata:

$ git-metainfo
{
  "hash": "40b71138b4ef89496645e377008e11eedbe207d6",
  "short_hash": "40b7113",
  "author_name": "John Doe",
  "author_email": "john@doe.com",
  "author_date": "2026-05-08 22:06:47 -0700",
  "author_date_iso": "2026-05-08T22:06:47-07:00",
  "committer_name": "John Doe",
  "committer_email": "john@doe.com",
  "committer_date": "2026-05-08 22:06:47 -0700",
  "committer_date_iso": "2026-05-08T22:06:47-07:00",
  "message": "Code",
  "branch": "master",
  "detached_head": false
}

Output to a file:

git-metainfo --output file.json

Use as library:

from git_metainfo.core import get_git_data

data = get_git_data()

Development

Install

poetry install

Install pre-commit

pre-commit install

Format

ruff format && isort .

See also:

Typescript version

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

git_metainfo_python-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

git_metainfo_python-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file git_metainfo_python-0.1.2.tar.gz.

File metadata

  • Download URL: git_metainfo_python-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.14 Darwin/24.6.0

File hashes

Hashes for git_metainfo_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cf9acc29b109d59b84d059bf451e48b43295de5f8b1cc30123e0472fadd24c30
MD5 deb855c307bdcb66ceb1e07b9d4eff7b
BLAKE2b-256 afe9fe3394430d7e7c0ce57460a6078d166fb086dc68c613fb96b3ef132bd537

See more details on using hashes here.

File details

Details for the file git_metainfo_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for git_metainfo_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad35babb52214d05db70bf00054de83a0d72018f17935f618dec17565e9266f
MD5 6cc9f92c164d844725647faadd56c89c
BLAKE2b-256 f3f47966697f49e34f14077ea12059cd050e9dc6a8eba0df2388abc2d8e74597

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