Skip to main content

tungsten-calendar

A calendar for your Tungsten admin panel: month, week, day and list views, meetings, calls, tasks and reminders, and the dates from your other Tungsten plugins in one place.

  • Four views: month, week, day and list, with arrow-key navigation.
  • Events: all-day, multi-day and timed, with type, color, location and notes.
  • Repeat: every day, week, month or year, every N times, until a date. Month ends and 29 February are handled.
  • Drag and drop: drag an event to another day to move it.
  • Private events: "Only me" events are hidden from everyone else.
  • Phone sync: a private link for Google Calendar, Outlook or an iPhone, plus .ics download.
  • Linked with your plugins: approved leave, holidays and birthdays (HR), lead follow-ups (Leads), ticket due times (Help desk), unpaid invoices and bills (Finance) and blog posts (Blog). Each person only sees what they may see.
  • Tags and Quick Create: with those plugins, events get tags, and "+ New → Event" works from any page.
  • Hooks: any plugin can add its own dates with add_source.
  • Dashboard card: what is coming up in the next 7 days.

Install

pip install tungsten-calendar
from tungsten_calendar import CalendarPlugin

panel.plugin(CalendarPlugin(timezone="Asia/Kolkata"))
panel.create_tables(engine)

Open Calendar in the menu.

Add your own dates

from tungsten_calendar import CalendarItem

def site_visits(ctx, start, end):
    return [CalendarItem(title=f"Visit: {v.client}", start=v.starts_at, end=v.ends_at, url=ctx.url("visits", v.id))
            for v in visits_between(ctx.db, start, end)]

class VisitsPlugin(Plugin):
    id = "visits"

    def boot(self, panel):
        calendar = panel.get_plugin("calendar")
        if calendar is not None:
            calendar.add_source("visits", "Site visits", site_visits, color="teal", icon="map-pin")

Options

Option Default What it does
timezone server's Your team's time zone, like "Asia/Kolkata"
first_day "monday" First day of the week ("sunday" or 0-6 also work)
default_view "month" month, week, day or list
kinds Meeting, Call, Task, Reminder, Other Event types: key -> (label, color, icon)
links True Dates from other plugins: True, False or a list of keys
feeds True Private subscribe links for phone calendars
dashboard_widget True The "Coming up" card, for upcoming_days days

Full guide: https://tungsten.prisminfoways.com/docs/calendar

Try it

pip install -e . -e plugins/calendar -e plugins/hr -e plugins/leads -e plugins/tickets uvicorn
uvicorn plugins.calendar.example:app --reload

Open http://127.0.0.1:8000/admin/calendar and sign in with admin@example.com / password.

Metadata

Release files for tungsten-calendar 0.1.2

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

Source distribution (sdist)

Source distribution for tungsten-calendar 0.1.2
File Size Uploaded Provenance Actions
tungsten_calendar-0.1.2.tar.gz 37.1 kB Without provenance Details for tungsten_calendar-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tungsten-calendar 0.1.2
File Interpreter ABI Platform Actions
tungsten_calendar-0.1.2-py3-none-any.whl Python 3 none any Details for tungsten_calendar-0.1.2-py3-none-any.whl

Total release size: 71.0 kB

Release files / tungsten_calendar-0.1.2.tar.gz

Download URL tungsten_calendar-0.1.2.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
493c5cdcafe076b0ac953dee1d885a296ffa47bc437d959e01e6e4a6bfdc14d9
BLAKE2b-256 checksum
How to use checksums
010109b8de2b01f244d85fe3eae56803760e1af33602b4fcbb78a037a646e2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / tungsten_calendar-0.1.2-py3-none-any.whl

Download URL tungsten_calendar-0.1.2-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c943a5854bb9d451b09c96a88924ec5ff8e93be4609dbcd1f625b3f44c7fb86
BLAKE2b-256 checksum
How to use checksums
a2af979f27ecff52d782c0e0575508c9b9fd0479bcee93baa8043b0b755bc013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for tungsten-calendar 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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