DEV Community

Dhravya
Dhravya

Posted on

create-react-app but for Python 🐍⚡

I was bored, Sunday evening. I decided to make this auto-updating twitter banner using python (I've already done it.)
Image description

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

It's cross platform too!
demo image

Installation and Usage

The project is available at crates.io, and you can install it easily by this command:

cargo install create-python-project
Enter fullscreen mode Exit fullscreen mode

Usage:

create-python-project
Enter fullscreen mode Exit fullscreen mode

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

Top comments (10)

Collapse
 
abhinav1217 profile image
Abhinav Kulshreshtha • Edited

A link to git repo would have been nice.

Collapse
 
dhravya profile image
Dhravya
Collapse
 
abhinav1217 profile image
Abhinav Kulshreshtha

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.

Thread Thread
 
dhravya profile image
Dhravya

That's actually an amazing idea. What should I name it 👀

Thread Thread
 
dhravya profile image
Dhravya

Hi there! A basic implementation has been done here : github.com/Dhravya/Cakecutter not sure what else to add though haha

Collapse
 
oricohen profile image
OriCohen05

It's so cool!

Collapse
 
dhravya profile image
Dhravya

thanks!

Collapse
 
yassineldeeb profile image
Yassin Eldeeb 🦀 • Edited

You might also find this inspirational:

Blog

Github

Collapse
 
i701 profile image
iDhaan

This is pretty cool.

Collapse
 
dhravya profile image
Dhravya

Thank you so much!