Skip to main content
Basic hCalendar Parser
======================

Dependencies
------------
- isodate [http://pypi.python.org/pypi/isodate/]
- Beautiful Soup 4 [http://www.crummy.com/software/BeautifulSoup/]

Installation
-------------
Install the latest version from pypi.python.org:

pip install python-hcalendar

Install the development version by cloning the source from github.com:

pip install git+https://github.com/mback2k/python-hcalendar.git

Basic Example
-------------
The hCalendar class accepts file-like objects and strings, basically anything supported by BeautifulSoup

from hcalendar import hCalendar

html = """<div class="vcalendar"><div class="vevent">
<a class="url" href="http://conferences.oreillynet.com/pub/w/40/program.html">
http://conferences.oreillynet.com/pub/w/40/program.html
</a>
<span class="summary">Web 2.0 Conference</span>:
<abbr class="dtstart" title="2005-10-05">October 5</abbr>-
<abbr class="dtend" title="2005-10-07">7</abbr>,
at the <span class="location">Argent Hotel, San Francisco, CA</span>
</div></div>"""

hcal = hCalendar(html)
for cal in hcal:
for event in cal:
print event.url
print event.summary
print event.dtstart
print event.dtend
print event.location

HTML source code taken from [microformats.org](http://microformats.org/wiki/hcalendar). Output will look like this:

http://conferences.oreillynet.com/pub/w/40/program.html
Web 2.0 Conference
2005-10-05 00:00:00
2005-10-07 00:00:00
Argent Hotel, San Francisco, CA

TODO
====
- Implement support for hCard contacts and attendees
- Implement support for geo locations
- Maybe support for other microformats?

License
-------
* Released under MIT License
* Copyright (c) 2012-2016 Marc Hoersken <info@marc-hoersken.de>


Metadata

Release files for python-hcalendar 0.2.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 python-hcalendar 0.2.2
File Size Uploaded Provenance Actions
python-hcalendar-0.2.2.tar.gz 4.7 kB Without provenance Details for python-hcalendar-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-hcalendar 0.2.2
File Interpreter ABI Platform Actions
python_hcalendar-0.2.2-py3-none-any.whl Python 3 none any Details for python_hcalendar-0.2.2-py3-none-any.whl

Total release size: 11.5 kB

Release files / python-hcalendar-0.2.2.tar.gz

Download URL python-hcalendar-0.2.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d26422436b4985c04f396a75b96a25aa0662bd233c6607cbfaceadfdf9ded990
BLAKE2b-256 checksum
How to use checksums
643e2c20a7488426703cfe699130c6d81a37d67c00647789ad519d2743e5c551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

Release files / python_hcalendar-0.2.2-py3-none-any.whl

Download URL python_hcalendar-0.2.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad262cf799369a7044400e86129cc90bb13ed23fe58cb2d4212cf003fb18efb2
BLAKE2b-256 checksum
How to use checksums
09973ae1d82b09e512c761b6fa60865793bf15d51ea5231c94aa0705c910d3d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

Security for python-hcalendar 0.2.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