Skip to main content

icalreporting

PyPI version Python versions Coverage

icalreporting converts iCalendar (.ics) files into pandas-based activity reports and Excel workbooks. It expands recurring events and treats each ICS filename stem as a project member.

Installation

Requires Python 3.9 or later.

pip install --upgrade icalreporting

Project report

Place one ICS file per member in a directory. Work-package tags such as WP2 are read from event summaries.

from icalreporting.reporting import Project

project = Project(
    name="Big Project",
    folder="calendars",
    start="2023-01-01",
    end="2023-12-31",
)
project.load_ics()
project.workbook().save("report.xlsx")

The workbook contains a global summary, member details, and monthly work-package totals. All-day events are reported as 8-hour working days starting at 09:00.

Hyperplanning provides the same workflow for course calendars, grouped by course and teaching type.

Individual weekly report

IndividualReporting expects one calendar whose summaries follow SECTOR/SUBSECTOR optional comment.

from icalreporting.reporting import IndividualReporting

report = IndividualReporting("My activity", "examples/indiv-reporting")
report.load_ics()  # overlaps are corrected by shortening the first event
report.workbook().save("individual-report.xlsx")

Weeks run Sunday–Saturday. The workbook puts totals first, groups detail columns by sector then subsector, and lists excluded malformed summaries in an Unclassified tab. It also reports hours outside Monday–Friday 07:00–19:00.

Miscellaneous tools available through Command line

icalcheck calendar.ics
icalclean calendar.ics  # writes calendar.cleaned.ics

# One ICS file per project member
icalproject calendars project-report.xlsx --start 2023-01-01 --end 2023-12-31

# Exactly one ICS file, with SECTOR/SUBSECTOR summaries
icalindividual my-calendar individual-report.xlsx

Development

pip install -e ".[dev]"
pytest

Released under the MIT License.

Metadata

Release files for icalreporting 0.4.0

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

Source distribution (sdist)

Source distribution for icalreporting 0.4.0
File Size Uploaded Provenance Actions
icalreporting-0.4.0.tar.gz 20.3 kB Without provenance Details for icalreporting-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icalreporting 0.4.0
File Interpreter ABI Platform Actions
icalreporting-0.4.0-py3-none-any.whl Python 3 none any Details for icalreporting-0.4.0-py3-none-any.whl

Total release size: 35.2 kB

Release files / icalreporting-0.4.0.tar.gz

Download URL icalreporting-0.4.0.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
541900af0fe39576d417e09a775da079ac9052a2b76d2b0103f8add65d797ad7
BLAKE2b-256 checksum
How to use checksums
65fd1acfa17ccdd5d6866d82cc41d01d696ad5c0fb81e34069bd712db4d0390d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / icalreporting-0.4.0-py3-none-any.whl

Download URL icalreporting-0.4.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f868af42764ac5d04009645766de8f08ab5e70b64532ea3cc9ad96dfebb86f46
BLAKE2b-256 checksum
How to use checksums
ff4165b0ae33720d1b75e4a90ffb2b6ba4d72f20ed10a2ae509298ee7916989b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for icalreporting 0.4.0

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