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.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 tungsten-calendar 0.1.1
File Size Uploaded Provenance Actions
tungsten_calendar-0.1.1.tar.gz 37.1 kB Without provenance Details for tungsten_calendar-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 70.9 kB

Release files / tungsten_calendar-0.1.1.tar.gz

Download URL tungsten_calendar-0.1.1.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6ac4666ba7901bf1f70dd0405279ebc91b872ee8c7fc1606685a7a1a51a96af6
BLAKE2b-256 checksum
How to use checksums
3fa401990b8c21947561a92ae6c29079b6b3575851fb5f349ee90392064662e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

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

Download URL tungsten_calendar-0.1.1-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98708ff30354b4eff156969db31f717aa155f9bc6f7a2763cbc98826cd042f34
BLAKE2b-256 checksum
How to use checksums
5311e9d118c98393b697dec1153e8aacc5df36f77d4c084d880a7d8ae136972a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for tungsten-calendar 0.1.1

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