Will atleast I have felt so, Creating a GitHub repo, setting up the local directory, initializing git, connecting remotes... it adds up!
ProjectInitTool automates all of this in one simple command, so you can start coding faster.
git clone https://github.com/kevo-1/ProjectInitTool
cd ProjectInitTool
pip install -e .
# Then run this command to set it up
project-configs- Python 3.6+
- Git
- GitHub Personal Access Token (How to create one)
projectinit cool-project# Use your saved defaults
projectinit cool-project
# Add description
projectinit cool-project --description "Cooler description😂"
# Make it private
projectinit cool-private-project -p# Different directory/
projectinit cool-project -d ~/SomewhereCool
# Github Token
projectinit cool-project -t ghp_token
# Make the repo public (default: private)
projectinit cool-project --publicprojectinit < project-name > [OPTIONS]
Options:
-d, --directory #Base directory (overrides config)
-t, --token #GitHub token (overrides config)
-p, --private #Make repository private
--public #Make repository public
--description "TEXT" #Repository description
--help #Show help messageRun the configuration setup anytime to update your defaults:
project-configThis saves:
- GitHub Token: Never type it again
- Base Directory: Your default project location (e.g.,
~/projects) - Privacy Default: Whether repos should be private by default
Configuration is stored in ~/.github_repo_creator.json
Want different command names? Edit setup.py:
entry_points={
'console_scripts': [
'your-command-name=create_repo:main',
'your-config-name=create_repo:configure',
],
}Then reinstall:
pip install -e ."Error: GitHub token required"
- Run
project-configto save your token - Or set
GITHUB_TOKENenvironment variable - Or pass
-tflag with token
"Error: git is not installed"
- Install git: git
Command not found
- Try:
pip install --user -e .
# One-time setup
git clone https://github.com/kevo-1/ProjectInitTool
cd ProjectInitTool
pip install -e .
project-config # setup your configurations
# Daily usage
cd ~/projects
projectinit cool-app-finalfinalfinal --description "The coolest app of them all"
cd cool-app-finalfinalfinal
# Now start coding!Since this is an open source project Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
- GitHub: @kevo-1
Made with ❤️ to save your time