Skip to main content

Get local or global git config as a dictionary

Project description

git_config

Get git config as a dictionary

Installation

pip install git_config

Usage

from git_config import get_config

# Global git config
config = get_config()
config["user"]["name"] # Roshan Acharya
config["user"]["email"] # acharyaroshan2357@gmail.com

# Local git config
config = get_config("local")
config['remote "origin"']["url"] # git@github.com:coderosh/git_config.git

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_config-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

git_config-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file git_config-1.0.0.tar.gz.

File metadata

  • Download URL: git_config-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for git_config-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bb97193ba25c0bc47d1243d77aa6ac30116056c60ecf84b5f6aee4e2044a4dcb
MD5 cc9c030bd1df1f67fa2744c113fd918e
BLAKE2b-256 94f4594e7013090cfe08a8abb162ea30e2c7958fac4c7ef43580e396f3ad5e9e

See more details on using hashes here.

File details

Details for the file git_config-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: git_config-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for git_config-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e44e747cb9a7abd8614ced6a6723fd5d8b3981db0e70f0a527d36dfd63b5be8
MD5 974867d3453a94e01484e3cd9a884780
BLAKE2b-256 55b16f0e26fd808600ed63b802c3983c627559abcac279e357dfc39840c8449c

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