https://github.com/rrthomas/new-python-project
A simple Python project template
https://github.com/rrthomas/new-python-project
Last synced: 3 months ago
JSON representation
A simple Python project template
- Host: GitHub
- URL: https://github.com/rrthomas/new-python-project
- Owner: rrthomas
- License: gpl-3.0
- Created: 2025-02-17T09:45:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-16T15:07:25.000Z (10 months ago)
- Last Synced: 2025-10-19T16:49:48.862Z (8 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Python project maker
https://github.com/rrthomas/new-python-project
© Reuben Thomas
This is a simple program which you can use to create a new Python project
from a built-in template. It uses the
[Nancy](https://github.com/rrthomas/nancy/) templating system.
## Installation
```
pip install new-python-project
```
## Creating a new project
Run `new-python-project DIRECTORY`. The program will prompt you for basic
information about the project, attempting to give sensible default values,
and then create the project in the given directory.
You can add the `--github` option to automatically create a GitHub project.
You can also store project information in a TOML file; see
[`sample.toml`](sample.toml) for a commented example.
See `new-python-project --help` for more information.
You can run your new program:
```
cd /path/to/new-project
make build
PYTHONPATH=. python -m project_name
```
The project is set up in a new git repository with a `pyproject.toml` and
Makefile to build, test and publish it, and basic command-line handling.
## Copyright and Disclaimer
new-python-project is copyright Reuben Thomas, and is free software,
licensed under the GNU Public License version 3, or, at your option, any
later version. See the file COPYING.