pyAuto is a simple CLI tool that automates the tedious process of starting a new project. It creates a local project folder, initializes a Git repo, creates a remote GitHub repository, and opens the project in VS Code β all with a single command.
- β Creates a local project folder
- β Creates a GitHub repository using your personal access token
- β Initializes Git in the local folder and connects it to the remote repo
- β
Makes an initial commit with a
README.md - β Pushes to GitHub
- β Opens the project in VS Code
- β All in one go.
pyAuto/
βββ pyauto.py # Main Python script that handles repo creation
βββ create.sh # Bash script that ties everything together
βββ .env # Environment variables (not included in repo)
-
Clone the repo
git clone https://github.com/J0na555/pyAuto.git cd pyAuto -
Install Dependencies You need Python,
python-dotenv, andPyGithub:pip install python-dotenv PyGithub
-
Create your
.envfile Inside thepyAutodirectory:FILEPATH=/your/local/projects/directory/ GITHUB_TOKEN=ghp_YourPersonalAccessTokenHere USERNAME=yourGitHubUsername
-
Make the Bash script executable
chmod +x create.sh
From your terminal:
./create.sh my-cool-projectThis will:
- Create a local directory:
$FILEPATH/my-cool-project - Create a remote GitHub repo:
https://github.com/<USERNAME>/my-cool-project - Initialize Git, make an initial commit, and push to main
- Open the project in VS Code
Tired of repeating the same steps every time you start a project? pyAuto was built to cut setup time to seconds and let you focus on building.