This project uses copier to provide Python and JavaScript project templates. See our homepage for more information.
pip install copier
copier copy https://github.com/python-project-templates/base.git path/to/new/projectNote
Install the Python Templates Copier Update GitHub App on repositories generated from this template to receive weekly template update pull requests.
One selector chooses a template:
Python / Puregenerates a pure Python package frompython/pure/.Python / Cythongenerates a Python package with compiled.pyand.pyxmodules frompython/cython/.Python / C++generates a Python/C++ package with Python bindings or standalone C++ code frompython/cpp/. Withadd_c_abi, it also builds a C ABI library that the extension links against and wheels ship with its header.Python / JavaScriptgenerates a Python package with a self-contained JavaScript frontend frompython/js/.Python / Rustgenerates a Python package with Rust bindings via PyO3 frompython/rust/. Withadd_c_abi, it also builds a C ABI library that the extension links against and wheels ship with its header.Python / Jupyter Widgetgenerates a Python package with a Jupyter extension frompython/jupyter/.Python / Rust + JavaScript + WebAssemblygenerates a Rust package with Python and WebAssembly bindings frompython/rustjswasm/.Python / C++ + JavaScript + WebAssemblygenerates a C++ package with Python and WebAssembly bindings frompython/cppjswasm/.add_c_abiadds the same C ABI library for the Python extension.JavaScript / UI Toolkit / Sveltegenerates a Svelte package with shared design tokens, components, and a demo app fromjavascript/uitk-svelte/.JavaScript / UI Toolkit / Lit + Web Awesomegenerates Lit custom elements with Web Awesome, shared design tokens, and a demo app fromjavascript/uitk-webawesome/.JavaScript / Site / Reactgenerates a React site with Vite, Vitest, and Playwright fromjavascript/site-react/.JavaScript / Site / SvelteKitgenerates a SvelteKit site with static or Node deployment fromjavascript/site-sveltekit/.JavaScript / Site / Web Awesomegenerates a Vite and TypeScript site using Web Awesome components fromjavascript/site-webawesome/.
For the Rust and C++ templates, including their WebAssembly variants, use_abi3 selects the native Python wheel ABI. Rust defaults to ABI3. C++ defaults to version-specific pybind11 wheels and uses nanobind for ABI3 (Python 3.12+). ABI3 builds one wheel per platform at python_version_primary. Version-specific builds produce a wheel for each CPython minor from that version through 3.14. Pyodide builds target their own runtime.