Sets up a new (python) project using a template
Project description
acme-project-create
Sets up a new (python) project using a template.
Uses a three-step process:
- Template files are copied to the
-target-dirlocation from a--template-dir-pathdirectory. Default template for a python project is included in the package. - Directory names in the template following the pattern
{{<variable>}}are substituted with value provided by the user. - Filenames in the template directory that end with
j2template(e.g.pyproject.toml.j2template) are assumed to beJinja2templates and a file is generated in the target location with variable substitutions provided by the user i.e.pyproject.toml.
And that's it.
Note: to provide all values to compile the template
the template dir needs to contain a template_manifest.py file that must implement a function:
def configure_parser(parser: argparse.ArgumentParser) -> argparse.ArgumentParser
which takes an existing instance of ArgumentParser, adds arguments specific to the template and returns the parser object.
Default template
The default template makes several notable choices:
- Uses
venvfor virtual environments and.venvdir to store built environment - Uses
.envfile for setting up environment variables - Uses
setuptoolsfor packaging - Uses
pytestfor testing - Uses
mkdocsfor documentation
Problem
Setting up all files to create a new project is time consuming and involves lots of small technical choices.
Why use this project?
You are probably better off using Cookiecutter
Project template
This project has been setup with acme-project-create, a python code template library.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acme_project_create-0.0.1.tar.gz.
File metadata
- Download URL: acme_project_create-0.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17d7da4c9b53b312efac27dc6ccc25723ad240fcac7604bd794932e2ace8aa1
|
|
| MD5 |
b2b79e9e79ffd7df4e0540fe2761eeeb
|
|
| BLAKE2b-256 |
5952fdc6be05505a52fb0c0de5cfdde89a2d97eb2e31699b81c5b291411657b5
|
File details
Details for the file acme_project_create-0.0.1-py3-none-any.whl.
File metadata
- Download URL: acme_project_create-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bd924dddf2de8ad89be4ac45d6a7a88f04d57c9eb0f74a8e716fb3e9bde18a8
|
|
| MD5 |
d3d35990cfa4e1c9fe13c08b665af56b
|
|
| BLAKE2b-256 |
f9591bc1dbc8189135beb3388dab1a21cd55a51a0f9c0a58301463f2735f5a41
|