Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 6.09 KB

README.md

File metadata and controls

33 lines (26 loc) · 6.09 KB

Project Template Base

This project uses copier to provide Python and JavaScript project templates. See our homepage for more information.

Homepage Copier License

pip install copier
copier copy https://github.com/python-project-templates/base.git path/to/new/project

Note

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 / Pure generates a pure Python package from python/pure/.
  • Python / Cython generates a Python package with compiled .py and .pyx modules from python/cython/.
  • Python / C++ generates a Python/C++ package with Python bindings or standalone C++ code from python/cpp/. With add_c_abi, it also builds a C ABI library that the extension links against and wheels ship with its header.
  • Python / JavaScript generates a Python package with a self-contained JavaScript frontend from python/js/.
  • Python / Rust generates a Python package with Rust bindings via PyO3 from python/rust/. With add_c_abi, it also builds a C ABI library that the extension links against and wheels ship with its header.
  • Python / Jupyter Widget generates a Python package with a Jupyter extension from python/jupyter/.
  • Python / Rust + JavaScript + WebAssembly generates a Rust package with Python and WebAssembly bindings from python/rustjswasm/.
  • Python / C++ + JavaScript + WebAssembly generates a C++ package with Python and WebAssembly bindings from python/cppjswasm/. add_c_abi adds the same C ABI library for the Python extension.
  • JavaScript / UI Toolkit / Svelte generates a Svelte package with shared design tokens, components, and a demo app from javascript/uitk-svelte/.
  • JavaScript / UI Toolkit / Lit + Web Awesome generates Lit custom elements with Web Awesome, shared design tokens, and a demo app from javascript/uitk-webawesome/.
  • JavaScript / Site / React generates a React site with Vite, Vitest, and Playwright from javascript/site-react/.
  • JavaScript / Site / SvelteKit generates a SvelteKit site with static or Node deployment from javascript/site-sveltekit/.
  • JavaScript / Site / Web Awesome generates a Vite and TypeScript site using Web Awesome components from javascript/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.