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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for git_config-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e44e747cb9a7abd8614ced6a6723fd5d8b3981db0e70f0a527d36dfd63b5be8 |
|
MD5 | 974867d3453a94e01484e3cd9a884780 |
|
BLAKE2b-256 | 55b16f0e26fd808600ed63b802c3983c627559abcac279e357dfc39840c8449c |