Fix slightly broken iCalendar files
Reason this release was yanked:
Incorrectly packaged
Project description
ics-fixer
This program will fix common issues with ICS files that prevent programs such as Mozilla Thunderbird from parsing them.
Usage: ics-fixer [OPTIONS] INPUT_FILE [OUTPUT_FILE]
Arguments:
INPUT_FILE Path to the input ICS file. [required]
[OUTPUT_FILE] Path for the output file. If omitted, the input file is
overwritten.
Options:
--skip-mojibake-fix Do not run the mojibake (garbled text)
fixer.
--debug Enable debug logging.
--help Show this message and exit.
Installation
uv is recommended to install the package in a managed environment:
uv tool install ics-fixer
Dependencies
- Python >= 3.13
- dateparser
- ftfy
- icalendar
- typer
Notes
These fields may contain desired data but will be discarded if it is incorrectly formatted:
- Event orgainizer
- Event attendee list
In my use case, this is acceptable as I have only encountered ICS files where malformed ORGANIZER or ATTENDEE values were useless.
If start or end time is in the wrong format and can't be parsed, the current time at the program's execution will be substituted.
If the start and end time are equal and contain the time, the end time will be shifted one hour, as some programs do not work properly with 0-length events. If the intention is an all-day event, the end time should be 24 hours after the start time.
Potential Implementations
- Unit tests
- Support for older Python versions
- Timezone shifter for dates incorrectly assumed as UTC
- Force all-day mode for events with same start and end time
- Better fixes for malformed
ORGANIZERorATTENDEE- I would need real world sample data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ics_fixer-1.0.tar.gz.
File metadata
- Download URL: ics_fixer-1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac6f3bdde143c1f2d2c6a06f7c4e9fc5ae8d99de0ee251adfe0ddf67505cdfa8
|
|
| MD5 |
d640a61e03affab440392994c7ec8504
|
|
| BLAKE2b-256 |
879211b230e2a0f0fe01e33d8d9138b5ad02b3bda2201173af9d2a7bdefa4e91
|
File details
Details for the file ics_fixer-1.0-py3-none-any.whl.
File metadata
- Download URL: ics_fixer-1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df52b7855a7cc227fb0b23343cff4d69b8d40565d7805a9d10c29bd1e29545a6
|
|
| MD5 |
14c7d22466ff6126ea13addc94b02fb0
|
|
| BLAKE2b-256 |
300d9815f3bd52c5f8e85414cc1c5c942f35a134bdfb7e329163e727e1f3275a
|