A CLI tool to create empty Python projects
Project description
Quick Python Project
Description
This project is initially meant to be a learning process for how to build and deploy a python project on PyPI. I chose a project I have used to personally to creating quick python projects that can be installed with pips editable install and run by a command in a terminal in order to quickly test code. I figured this might be usefull for others and I have done my best attempts to make it more user friendly. I will work on improving this as time allows with more features.
By default the projects use setuptools and a pyproject.toml. But I have provided defaults for Hatchling and Poetry. Since I use neither of these, my defaults have relied on reaserch and not experience. Please feel free to propose any improvements.
Installation
pip install quick_python_project
Usage
Here's how you can use Quick Python Project:
qpp --name MyProject --path ./my_project --user-name "Your Name" --user-email "your.email@example.com" --command myproject --package-type setuptools --min-python-version 3.9
Here's what each option does:
--name
: The name of your project.--path
: The directory where your project will be created.--user-name
: Your name, which will be used in the project metadata.--user-email
: Your email, which will be used in the project metadata.--command
: The command that will be used to run your project.--package-type
: The type of Python package to create. Can besetuptools
,hatchling
, orpoetry
.--min-python-version
: The minimum Python version required for your project. Can be3.9
,3.10
, or3.11
.
You can also save your preferences so you don't have to enter them every time:
qpp --save-prefs --name MyProject --path ./my_project --user-name "Your Name" --user-email "your.email@example.com" --command myproject --package-type setuptools --min-python-version 3.9
And you can delete your saved preferences with the --delete-prefs option:
qpp --delete-prefs
Once your project is created, you can navigate to the project directory and run your project with the command you specified:
cd my_project
# Install prefered virtual environment
python3 -m venv .venv
# Activate the virtual environment
source ./.venv/bin/activate
# Perform editable install of project
pip install -e .
# Run command
myproject
#This will print "Hello, world!" to the console.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for quick_python_project-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfc5ae811b9f2129576832d3fd30523a8015cb4be0b117e7628f1e6213ff9537 |
|
MD5 | 107bcf02d6a0c471fba9f6328ebaf3f0 |
|
BLAKE2b-256 | c66a0d0238ac3be6e653b6f9d77d65c5dded6a693a533670c6e619ce7c926bdf |
Hashes for quick_python_project-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35e436df29da87dca17283090b503e9f6f798ecd7d3d14476884f9fd5307991a |
|
MD5 | c52633b709304aaf8a442c11c86b20a1 |
|
BLAKE2b-256 | 68554c1827ed2209e96b7c80e50663323d99a5564e0aef33f901fa20fae5434f |