I was bored, Sunday evening. I decided to make this auto-updating twitter banner using python (I've already done it.)
But you see, I'm lazy. Really lazy. I didn't even want to make the main.py file and get straight to the coding.
If you have to do the same thing more than 5 times, automate it.
And that's what I ended up doing. as I'm learning Rust, this could also be a nice Rust project that helps me with my everyday small projects.
Here's what create-python-program does:
- Initialises virtual environment
- Makes source directory and main.py file
- Makes README.md, .gitignore
- Initialises git repository
- Makes requirements.txt file
- Creates .env file
Installation and Usage
The project is available at crates.io, and you can install it easily by this command:
cargo install create-python-project
Usage:
create-python-project
And yes, that's it!
Let me know what you think in the comments below! I know this project isn't THAT useful but as long as it saves one second of my time, it's worth it lol
Latest comments (10)
This is pretty cool.
Thank you so much!
A link to git repo would have been nice.
github.com/Dhravya/create-python-p...
Nice implementation. Any plans to modularize it, so that it can be extended to support more templates, something like cookiecutter.
I used to use cookiecutter but then implemented my own bash scripts. Rust alternative to cookiecutter sound intriguing.
That's actually an amazing idea. What should I name it 👀
Hi there! A basic implementation has been done here : github.com/Dhravya/Cakecutter not sure what else to add though haha
It's so cool!
thanks!
You might also find this inspirational:
Blog
Github