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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb97193ba25c0bc47d1243d77aa6ac30116056c60ecf84b5f6aee4e2044a4dcb
|
|
| MD5 |
cc9c030bd1df1f67fa2744c113fd918e
|
|
| BLAKE2b-256 |
94f4594e7013090cfe08a8abb162ea30e2c7958fac4c7ef43580e396f3ad5e9e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e44e747cb9a7abd8614ced6a6723fd5d8b3981db0e70f0a527d36dfd63b5be8
|
|
| MD5 |
974867d3453a94e01484e3cd9a884780
|
|
| BLAKE2b-256 |
55b16f0e26fd808600ed63b802c3983c627559abcac279e357dfc39840c8449c
|