Skip to main content

PyPI - Python Version PyPI

Discord PyPI - Downloads YouTube Channel Subscribers

Logo

This tool generates help you start a new Python project by generating its starting code. In the current stage it only generates very simple project, but more is planned to be added in the future (including a Flask project with features selection).

To install this tool run:

pip install python-project-creator

After installing you will have access to the ppc tool on your terminal. To know more about the tool and its commands run:

ppc --help

You can use the command create to create a new project. It follows the syntax:

ppc create --template <template> <output>

Where:

  • template: The template to use for the project. If no template is informed the basic template will be used (check more below).
  • output: The output directory where the project will be created.

Currently it support the folloging templates:

Basic

This is a very simple template to use when starting a new project. It only creates a blank main.py file.

To use this template run:

ppc create --template basic <output>

CP

This template can be used when solving programming exercises in Online Judges (OJs) using the Python language. Some examples of OJs are Neps Academy, Codeforces, Kattis and Beecrowd.

This template will create the following structure:

  • main.py
  • input.txt
  • output.txt

Where main.py can be used to solve the problem. The input and output files are used to test the solution.

To use this template run:

ppc create --template cp <output>

PIP

This template creates the structure that is needed when creating a package that will be uploaded to PiPy.

It will create:

  • module folder: where you will write your module's code.
  • main.py: to showcase a concrete example using your module.
  • setup.py: contains the configuration of your project and creates the wheel needed when uploading your module to PiPy.
  • README.md: where you will describe what is and how to use your module.

To use this template run:

ppc create --template pip <output>

This template will ask for some additional information during the creating. The information you provide will be filled in some parts of your project's files.

Build and Upload

To build new this project run:

python setup.py sdist
python setup.py bdist_wheel

To upload a new version use (don't forget to update the version number in setup.py):

twine upload dist/*

Metadata

Release files for python-project-creator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-project-creator 0.1.0
File Size Uploaded Provenance Actions
python-project-creator-0.1.0.tar.gz 20.0 kB Without provenance Details for python-project-creator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-project-creator 0.1.0
File Interpreter ABI Platform Actions
python_project_creator-0.1.0-py3-none-any.whl Python 3 none any Details for python_project_creator-0.1.0-py3-none-any.whl

Total release size: 40.7 kB

Release files / python-project-creator-0.1.0.tar.gz

Download URL python-project-creator-0.1.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3922471d76c842895f3d0498326d92d2ab3f01bf011b24304011b8fc3080ba21
BLAKE2b-256 checksum
How to use checksums
3fb2664bd6335a0da6e6400e8393c1bbb8a16f1f97a7fa0cd7a74e12260bc9a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / python_project_creator-0.1.0-py3-none-any.whl

Download URL python_project_creator-0.1.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dac499a0d4b93cdbc1239dd9364e7c7a96948998b43c8a26462ac4f20fa3ff97
BLAKE2b-256 checksum
How to use checksums
2499eb1931fe06dc5453893156cc93a444e48dc4dbfb9aa7e9f24582e18ed738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for python-project-creator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page