initpy
is a command-line tool designed to simplify the initialization of Python projects. With an interactive setup, it automates the creation of project directories, installation of dependencies, and the setup of environments for FastAPI and web scraping projects.
-
Clone the repository to your local
~/scripts
directory:git clone <repository-url> ~/scripts/initpy
(Replace
<repository-url>
with the actual URL of the repository.) -
Add the
initpy
alias to your.zshrc
,.bashrc
, or appropriate shell configuration file:echo "alias initpy='bash ~/scripts/initpy/initpy.sh'" >> ~/.zshrc
(Adjust the path according to where the script is stored and replace
.zshrc
with your shell’s configuration file if needed.) -
Apply the changes:
source ~/.zshrc
(Again, adjust with your shell’s configuration file if different.)
Navigate to the directory where you want to create your new project and run:
initpy
Make sure that Poetry is installed on your system. If it's not, install it.