Skip to main content

🍵 smith-tea-calendar

This program creates an iCal file containing upcoming Smith Tea subscription renewals by scraping your account details. I wrote this program because I wanted a better way to track when my orders would renew by tracking that information in my calendar.

Usage

All arguments can be specified as environment variables with the SMITH_TEA_ prefix. It's generally safer to specify credentials this way as environmment variables aren't generally visible to other programs and users.

If at any point the website is updated and the built-in CSS selectors used to navigate the site break, you can use any of the --selector-* flags to change them. For a full listing of options, including all selector flags, use the --help flag.

With uv

This program uses Playwright to scrape you orders. You will need to first run Playwright to install a headless Chromium browser before using the tool the first time.

$ uvx playwright install chromium

Once chromium has been installed, you can run the program as follows:

$ uvx smith-tea-calendar --email "..." --password "..."

With docker

Alternatively, you can run the tool inside a Docker image. This may be useful if you want to run this as periodic job in a container-native environment.

# Or clone the repository and use that copy of the script.
$ mkdir -p scripts/; curl -o scripts/entrypoint.sh \
    https://raw.githubusercontent.com/mrflynn/smith-tea-calendar/refs/heads/main/scripts/entrypoint.sh

$ docker run --entrypoint /entrypoint.sh \
    -v ./scripts/entrypoint.sh:/entrypoint.sh:ro \
    -v $(pwd):/data \
    -e SMITH_TEA_EMAIL="..." -e SMITH_TEA_PASSWORD="..." \
    --ipc host \
    mcr.microsoft.com/playwright/python:v1.57.0 /data/orders.ics

Microsoft has some additional recommendations for running Playwright in a Docker container, the docs for which can be found here.

Metadata

Release files for smith-tea-calendar 0.1.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 smith-tea-calendar 0.1.3
File Size Uploaded Provenance Actions
smith_tea_calendar-0.1.3.tar.gz 4.7 kB With provenance Details for smith_tea_calendar-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smith-tea-calendar 0.1.3
File Interpreter ABI Platform Actions
smith_tea_calendar-0.1.3-py3-none-any.whl Python 3 none any Details for smith_tea_calendar-0.1.3-py3-none-any.whl

Total release size: 11.2 kB

Release files / smith_tea_calendar-0.1.3.tar.gz

Download URL smith_tea_calendar-0.1.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
768e20b7fe212ae19b643d0bb87def25c395f2d8f7b2fb9342afaa3a7953f4ba
BLAKE2b-256 checksum
How to use checksums
cf46ec8f39ef56c5a57f04eea827b1caf5f676cabf2d5f6f19b69feb9f562283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 19, 2026.

Transparency log

Release files / smith_tea_calendar-0.1.3-py3-none-any.whl

Download URL smith_tea_calendar-0.1.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9630192a53f867d6c725ccdda6cd0da5cade3bf529d55d7aec246e72e96556f
BLAKE2b-256 checksum
How to use checksums
dd38ff2f52a96690820ade499172c2d173de139e6e5be1e3a4f0518fe4d2e6b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 19, 2026.

Transparency log

Security for smith-tea-calendar 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smith_tea_calendar-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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