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 source files with incorrect times
- Better fixes for malformed
ORGANIZERorATTENDEE- I would need real world sample data
Metadata
Release files for ics-fixer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ics_fixer-1.0.2.tar.gz | 5.1 kB | Without provenance | Details for ics_fixer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ics_fixer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for ics_fixer-1.0.2-py3-none-any.whl |
Total release size: 11.5 kB
Release files / ics_fixer-1.0.2.tar.gz
| Download URL | ics_fixer-1.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d419dcce5359f5c4d0b1591974ca139b7b5e939aac2651a5d3bc70c03da4bae
|
|
BLAKE2b-256 checksum How to use checksums |
2ea981337bc4297d4e818cf2d2235baade0b247b62d642b5f8dcea167e7acf53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Release files / ics_fixer-1.0.2-py3-none-any.whl
| Download URL | ics_fixer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f30448f01ed9dee4f0376ebb6966ed9e9caa23a6a1e375db2ff14dc3cf33ddb
|
|
BLAKE2b-256 checksum How to use checksums |
b597e46717db56dd8aeaeb5d58493125a4d339d6af8926253927fe6b1b956171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Security for ics-fixer 1.0.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.