New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pical

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pical

icalendar parser,builder library with query function

  • 0.3
  • PyPI
  • Socket score

Maintainers
1

pical

pical is a python icalendar library.

Supported features:

  • parsing, building an ics file (icalendar version 2.0/rfc5545,rfc2445)
  • querying for component with time-range (caldav/rfc4791)
  • values will be accessible as python native types

Unsupported features:

  • leap second support
  • floating values with precision higher than double

Simple usage::

from datetime import datetime import pical cals = pical.parse(open("tests/google_calendar_ex1.ics")) cal = cals[0]

subcomponents are stored in children

for c in cal.children: if c.name == "VEVENT": print c["DTSTART"]

Time-range query example::

from datetime import datetime import pical cals = pical.parse(open("tests/google_calendar_ex1.ics")) expcal = cals[0].time_range(expand=[datetime(2010,1,1,tzinfo=pical.utc), datetime.now(pical.utc)]) for line in expcal.clone(in_utc=True).serialize(): print line

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc