Skip to main content

datasette-secret-santa

PyPI Changelog Tests License

Run a secret santa using Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-secret-santa

Running this on Glitch

https://glitch.com/ is a great way to host this application.

You can remix this project on Glitch to get your own copy.

Or you can create a new application and paste the following into your glitch.json file:

{
  "install": "pip3 install --user datasette datasette-secret-santa -U",
  "start": "datasette --create .data/santa.db -p 3000"
}

Then visit your new app's homepage and click the link to create a new secret santa group.

Usage

Animated GIF showing the plugin in action - the user adds three names, then gets the password for their account - then hits the assign button and uses their password to find out who they have been assigned.

This plugin requires a database called santa.db. You can run it and create such a database like this:

datasette santa.db --create

It expects to be the only plugin installed, and will take over the / homepage.

To create a new Secret Santa, visit /santa/create_secret_santa (linked from the homepage).

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-secret-santa
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Release files for datasette-secret-santa 0.1

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

Source distribution (sdist)

Source distribution for datasette-secret-santa 0.1
File Size Uploaded
datasette-secret-santa-0.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-secret-santa 0.1
File Interpreter ABI Platform
datasette_secret_santa-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / datasette-secret-santa-0.1.tar.gz

Download URL datasette-secret-santa-0.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
211b0c6e98efceda77ba4d97878dfc0754ae3213c4c2924bdbc19d65c6076ea0
BLAKE2b-256 checksum
How to use checksums
3893471d541ca795b319f61afcced0389898dbbdbd885f0c7efc9fc81a43cd1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / datasette_secret_santa-0.1-py3-none-any.whl

Download URL datasette_secret_santa-0.1-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14ad2fb4480f3de71cab34d9a93454197a4d65eebcc49dcd42bb4f166b7bf239
BLAKE2b-256 checksum
How to use checksums
66f58d86a7d45efb15d877741dedece8e9f4fb44453488db05c8919938c0753a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1 This release

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