Skip to main content

Secret Santa Generator

Project description

xsanta

Secret Santa sender / receiver generator

PyPI version Actions Status PyPI version PyPI - Downloads

Coffee

Installation

pip install xsanta

Example

In python:

>>> from secret import santa
>>> invited = [
...     'Iron Man', 'Captain America', 'Thanos', 'Hulk',
...     'Black Widow', 'Thor', 'Loki', 'Wanda Maximoff',
... ]
>>> excluded = [
...     ('Iron Man', 'Captain America'),
...     ('Thor', 'Loki'),
...     ('Black Widow', 'Hulk'),
... ]
>>> santa.run(invited, excluded)
Thor 🎁 >> Thanos 🎁 >> Loki 🎁 >> Hulk 🎁 >> Iron Man 🎁 >> Thor
Captain America 🎁 >> Black Widow 🎁 >> Wanda Maximoff 🎁 >> Captain America

In command line:

python santa.py "['Iron Man', 'Captain America', 'Thanos']" --emoji=False
Captain America >> Thanos >> Iron Man >> Captain America

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xsanta-0.1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

xsanta-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file xsanta-0.1.3.tar.gz.

File metadata

  • Download URL: xsanta-0.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

File hashes

Hashes for xsanta-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ecf59ca6ac4b16c18fb14d466fadc26601bfbdbf8d4b2fe9af70fc7c142e8d3e
MD5 804d74159de3f251658f73cc675be156
BLAKE2b-256 e2e642b497fb4616f55a8bd9ce9a566032054ace022c5353230315483833296e

See more details on using hashes here.

File details

Details for the file xsanta-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xsanta-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

File hashes

Hashes for xsanta-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1db996311bd24f73f7abc953f9b1f551482be2af87eff2467abaad77adb7a0b
MD5 80e4ce05bc9459af005346f1a5a5487b
BLAKE2b-256 1d975ba9468123fe3a4954b36799500e33b1f5441ef64ee7c967aec16f4f532b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page