Catalog PyPI
PACKAGE EXPLORERView in registry

acme_project_create

PyPI

Sets up a new (python) project using a template

Versions collected1
Direct dependencies11From release 0.0.7
Last observed20 Oct, 18:18 UTC

README

Version 0.0.7 documentation

acme-project-create

Sets up a new (python) project using a template.

Uses a three-step process:

  1. Template files are copied to the -target-dir location from a --template-dir-path directory. Default template for a python project is included in the package.
  2. Directory names in the template following the pattern {{<variable>}} are substituted with value provided by the user.
  3. Filenames in the template directory that end with j2template (e.g. pyproject.toml.j2template) are assumed to be Jinja2 templates 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 venv for virtual environments and .venv dir to store built environment (and uv to build it)
  • Uses .env file for setting up environment variables
  • Uses setuptools for packaging
  • Uses pytest for testing
  • Uses mkdocs for 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

Example usage

apc -target-dir . -project-name hello-world -desc "Say hello to the world" -package-name hello_world -command hello -owner-email hello@example.com

Project template

This project has been setup with acme-project-create, a python code template library.

Required setup post use

  • Enable GitHub Pages to be published via GitHub Actions
  • Create release environment for GitHub Actions
  • Setup auth to PyPI for the GitHub Action implemented in release.yml: Link & uv publish doc
  • Once you create the python environment for the first time add the uv.lock file that will be created in project directory to the source control and update it each time environment is rebuilt
  • Run pre-commit install to install the pre-commit hooks.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.721 Feb 202511

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
blackwhitehere/acme-project-create

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d5375c4f504fe9f72eafbd506912b192f88c949a80e4a3e1f8a5ccdb3c5cdf82