Haider ali
Haider ali's Blog

Haider ali's Blog

Setup your python package within seconds

Haider ali's photo
Haider ali
·Nov 19, 2021·

2 min read

Hello, today I'm going to tell you about a new project/package that I made related to python packages or pypi packages. Before we deep dive I really want y'all to drop a follow on Twitter Twitter Profile

So many of you while making a python package have suffered the pain of setting up the files and folders. Well not anymore I made a "Open Source" project called "create-pypi-project" what this does is makes creates a folder and creates all the file needed for a pypi package. Not only the files and folders, it also sets their content, no need to go to google and suffer the pain.

Lets get started

pip install create-pypi-project
createpypiproject --name helloworld --author Haider

--name will the name the folder and also name the package so its required

--author is also required because it is necessary who published the package.

Remember to change the details in setup.cfg, like the github repo, author_email and etc

Soon we will add option in which you can static or dynamic way of setup files

Now you will something like this in your terminal

Hey Pythoneer or Pythonista, are you sure you want to name your project helloworld [y/N]: y
Started creating a Pypi project helloworld
Made a directory named helloworld
Created project.toml
Created setup.cfg
Created README.md
Created LICENSE file with defualt license
You can choose a different license from https://choosealicense.com/
Sucessfully created Pypi project: helloworld

Done, this took like 2 or 3 seconds and your project is ready to be developed.

Now you use this anytime you're wanting create a new package :)

Here is the GitHub Repository

Here is the package link create-pypi-project

Make sure to follow me on Twitter :)

 
Share this