{"id":23718,"library":"fastgit","title":"fastgit","description":"A fast and convenient Python library for running git commands programmatically. It wraps git CLI calls with automatic flag conversion (e.g., --oneline for boolean options) and path separation via __ parameter. Version 0.0.4, active development on GitHub.","status":"active","version":"0.0.4","language":"python","source_language":"en","source_url":"https://github.com/AnswerDotAI/fastgit","tags":["git","wrapper","automation","cli"],"install":[{"cmd":"pip install fastgit","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Primary class to interact with git.","wrong":"","symbol":"Git","correct":"from fastgit import Git"},{"note":"Pre-instantiated Git() instance for quick use.","wrong":"from fastgit import Git; git = Git()","symbol":"git","correct":"from fastgit import git"}],"quickstart":{"code":"from fastgit import git\nprint(git.log('--oneline'))","lang":"python","description":"Run git log --oneline in the current directory."},"warnings":[{"fix":"Use git.log('--oneline') rather than git.log('--oneline', True).","message":"Boolean flags are automatically converted: pass True to enable a flag (e.g., git.log('--oneline', True) is wrong; use git.log('--oneline') instead).","severity":"gotcha","affected_versions":">=0.0.2"},{"fix":"Use git.log('--oneline', __=['path/to/file'])","message":"Path arguments must be passed via the __ parameter, not positional. e.g., git.log('--oneline', __=['file.py']) not git.log('--oneline', 'file.py').","severity":"gotcha","affected_versions":">=0.0.3"},{"fix":"N/A","message":"There are no known deprecations yet. This is a very early library (v0.0.4).","severity":"deprecated","affected_versions":"0.0.4"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you import correctly: from fastgit import git","cause":"Using the module name as an attribute before importing the class or the pre-instantiated instance.","error":"AttributeError: module 'fastgit' has no attribute 'git'"},{"fix":"Use git.log('--oneline') to pass boolean flags.","cause":"Trying to call git.log(oneline=True) instead of using the CLI-style flag.","error":"TypeError: Git.log() got an unexpected keyword argument 'oneline'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}