Skip to main content

snickerdoodle

snickerdoodle cookie logo

Status PyPI Latest Release GitHub Latest Release Project Stability
Documentation Hosted By
Compatibility Compatible Python Versions

What is snickerdoodle?

snickerdoodle is an easy-to-use, general-purpose cookiecutter template for Python projects utilizing modern tools and best practices. To see an demo repository using this template, check out snickerdoodle_demo.

Why use snickerdoodle?

In contrast to highly-opinated templates, snickerdoodle has limited requirements with powerful options that users can opt into in the cookiecutter questionnaire. If you want snickerdoodle to support other options, please make a feature request or contribute.

  • Built-in:
    • Dependency Management: Dependency Manager
    • Linting: Ruff
    • Testing: Testing
    • Templater: cookiecutter
  • Options Supported:
    • Automated Hooks: Pre-commit
    • CI/CD: CI
    • Code Coverage: Coverage (must have Coverage installed on the named GitHub account)
    • Dependency Updater: Dependency Maintainer
    • Different Badge Styles:
      • flat style
      • flat square
      • for-the-badge style
      • plastic style
      • social style
    • Documentation: Documentation Tool on Documentation Host automatically built and deployed with every commit
    • Publishing:
      • PyPI with GitHub Actions using publish.yml
      • Repo Host automatically with any commit beginning with a version number (e.g., "0.2.3")
    • Repository Initialization: Repo Host with an initial commit (must have Repo Host installed with token access)
    • Virtual Environment Creation: Virtural Environment Manager

Getting started

Setup

If you are new to cookiecutter or simply want to guarantee that the created repository works as intended, follow the instructions in the snickerdoodle tutorial.

If you are familiar with cookiecutter templates, you can go about the normal construction process. However, if you do not select the optional automatic setup features in the questionnaire, you should follow the instructions for manually setting up your virtual environment and deploying your documentation in the snickerdoodle tutorial. It is especially important to follow the document deployment process for your initial deployment - after that GitHub Actions will automatically update and redeploy the documentation (and you need not use the manual process again).

Usage

After your repository is created, you can start coding right away. Every push to GitHub will run any tests in the "tests" folder, deploy documentation to GitHub Pages, and apply ruff for linting and formatting. For more information about the following topics, just click on the corresponding hyperlink.

Contributing

Contributors are always welcome and should find snickerdoodle easy to work with. The template is highly documented so that users and developers can adapt or extend snickerdoodle to work with their projects. So, forking and creating different template spins is encouraged. If you want to contribute directly, feel free to grab an issue to work on or make a suggested improvement. If you wish to contribute, please read the Contribution Guide and Code of Conduct.

Similar Projects

These are other cookiecutter templates using uv as their dependency manager:

  • cookiecutter-uv-hypermodern-python: an opinionated template that uses, among other tools, sphinx, GitHub Actions, nox, mypy, typeguard, Prettier, Click, and ruff. If you do not mind those choices and wanted a modern, maintained template, this is the one to use.
  • cookiecutter-uv: uses ruff, mypy, tox, mkdocs, and deptry.
  • ultraviolet: a basic template that requires Homebrew.

Acknowledgements

I'd also like to extend a special thanks to pawamoy whose excellent mkdocs extensions and utlities are incorporated into snickerdoodle. Some of the scripts, documentation, configuration files, and other CI code were all adapted from pawamoy's repositories.

I would also like to thank the University of Kansas School of Law for tolerating and supporting this law professor's coding efforts, an endeavor which is well outside the typical scholarly activities in the discipline.

License

License

Metadata

Release files for snickerdoodle 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snickerdoodle 0.3.3
File Size Uploaded
snickerdoodle-0.3.3.tar.gz 825.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snickerdoodle 0.3.3
File Interpreter ABI Platform
snickerdoodle-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 830.5 kB

Release files / snickerdoodle-0.3.3.tar.gz

Download URL snickerdoodle-0.3.3.tar.gz
Size 825.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dfb236256cae7a039623c168ffc72026b5f121448b28a0812e9edc24d626e2ee
BLAKE2b-256 checksum
How to use checksums
119553a00d259096eee6e108f17a0e66eab57d686904e9d29d04d3496995e01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / snickerdoodle-0.3.3-py3-none-any.whl

Download URL snickerdoodle-0.3.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4351336c783add4ebcffcc1abd642e3b345af8a1c1088da032ae12697e8b52c3
BLAKE2b-256 checksum
How to use checksums
64ac57ce66844362418dfa875239d5d0779b4d83541dae8b6e8a4bb582eba241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.3 This release

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page