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. 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.4.0

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.4.0
File Size Uploaded
snickerdoodle-0.4.0.tar.gz 818.6 kB Details

Built distribution (wheel)

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

Total release size: 823.3 kB

Release files / snickerdoodle-0.4.0.tar.gz

Download URL snickerdoodle-0.4.0.tar.gz
Size 818.6 kB
Tags Source
SHA-256 checksum
How to use checksums
876577d111fd042a51c08b46904ab576765d6536f2b86a71303cf5d75b4ad571
BLAKE2b-256 checksum
How to use checksums
390a8eab18b10411eda3a0055bb083e687f95f35a06527689f35e930ceb5212d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.4.0-py3-none-any.whl

Download URL snickerdoodle-0.4.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22db831355548947416c022523a3cff3cb7502f72c7cc5d7f0915af63b5dae70
BLAKE2b-256 checksum
How to use checksums
57363ce796f602594931c36c30be6ff4bd68f018fb277cc7e80404a6d5c5fdbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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

This release

0.4.0 This release

2 release files

0.3.3

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