Skip to main content

tarrotsimplified

Offline tarot card interpretations as a Python library. No server, no API — the card data ships inside the package.

Status: early release. Only a handful of sample cards are included so far (The Fool, The Magician, Ace of Cups, Two of Wands) — the full 78-card deck is coming in a follow-up release.

Install

pip install tarrotsimplified

Use

import tarrotsimplified as tw

# look up a card
card = tw.get_card("The Fool")
print(card.upright)
print(card.keywords)

# draw random cards (some may be reversed)
for item in tw.draw(3):
    c = item["card"]
    print(c.name, "(reversed)" if item["reversed"] else "", "-", c.meaning(item["reversed"]))

# do a named spread
for item in tw.spread("three_card"):
    print(item["position"], "->", item["card"].name)

# search meanings
print([c.name for c in tw.search("new beginnings")])

Spreads available: single, three_card, celtic_cross.

Publish to PyPI (one time)

pip install build twine
python -m build          # creates dist/*.whl and *.tar.gz
twine upload dist/*      # asks for your PyPI token

After that, anyone can pip install tarrotsimplified. Bump version in pyproject.toml and __init__.py for each new release.

Metadata

Release files for tarrotsimplified 0.1.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 tarrotsimplified 0.1.0
File Size Uploaded
tarrotsimplified-0.1.0.tar.gz 3.8 kB Details

Built distribution (wheel)

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

Total release size: 8.8 kB

Release files / tarrotsimplified-0.1.0.tar.gz

Download URL tarrotsimplified-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37ff47ad67c18d2ced67484a470b16433030aa759698be4e2a9c0eeeb6e21c2a
BLAKE2b-256 checksum
How to use checksums
afb0a75e3e19990d990e17122ccd24aa21c1c23887cba44ccdd784ecd6d178c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / tarrotsimplified-0.1.0-py3-none-any.whl

Download URL tarrotsimplified-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eee184bfee614e38a480a27b4763fa9968ef21dbb489f5e2f26d6633c1e8c643
BLAKE2b-256 checksum
How to use checksums
52eb287b178ee7fdd2171c000b8bedeb474a1c3cef1c3349de477d04d9698c08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 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