Skip to main content

A simple wrapper around the Git CLI.

Project description

Note: This package is in the dangerous land of 0.x.y versions and may be subject to breaking changes with minor version increments.

nr.utils.git

A simple wrapper around the Git CLI.

Example

from nr.utils.git import Git

repo = Git().clone('/Volumes/git/linux', 'https://github.com/torvalds/linux')
assert repo.get_current_branch_name()  == 'master'
print(repo.rev_parse('HEAD'))

Copyright © 2020 Niklas Rosenstein

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

nr.utils.git-0.4.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

nr.utils.git-0.4.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file nr.utils.git-0.4.1.tar.gz.

File metadata

  • Download URL: nr.utils.git-0.4.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for nr.utils.git-0.4.1.tar.gz
Algorithm Hash digest
SHA256 566dd69d2a99c2df47e692d6e8e844ef16be3270775731759867796e86bbcdd2
MD5 ce89a769397fea0a1f8a6783edc260e7
BLAKE2b-256 65de5007f6fce854cb64cd4efacbaf3fbb8b229e33b51a67efaeb54f28ed3074

See more details on using hashes here.

File details

Details for the file nr.utils.git-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: nr.utils.git-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for nr.utils.git-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dad64a6eb0a6eeba8bff8c8c301b29d2bef51cab00ba1df05d92862fd3aab4aa
MD5 20996e057d8fe7bc42e5fe2c8f0a2657
BLAKE2b-256 cdf447ac852c2a2b7dbc995dcfd71a7da8ba5d6de59b52ae4f65b154d372e6b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page