ics-fixer


Nameics-fixer JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryFix slightly broken iCalendar files
upload_time2025-09-08 22:39:05
maintainerNone
docs_urlNone
authornateify
requires_python>=3.13
licenseNone
keywords icalendar ical ics data-wrangling sanitizer datacleaning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://docs.astral.sh/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 `ORGANIZER` or `ATTENDEE`
  * I would need real world sample data



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ics-fixer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.13",
    "maintainer_email": null,
    "keywords": "icalendar, ical, ics, data-wrangling, sanitizer, datacleaning",
    "author": "nateify",
    "author_email": "nateify <nateify@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/2e/a9/81337bc4297d4e818cf2d2235baade0b247b62d642b5f8dcea167e7acf53/ics_fixer-1.0.2.tar.gz",
    "platform": null,
    "description": "# ics-fixer\r\nThis program will fix common issues with ICS files that prevent programs such as Mozilla Thunderbird from parsing them.\r\n\r\n```\r\nUsage: ics-fixer [OPTIONS] INPUT_FILE [OUTPUT_FILE]\r\n\r\nArguments:\r\n  INPUT_FILE     Path to the input ICS file.  [required]\r\n  [OUTPUT_FILE]  Path for the output file. If omitted, the input file is\r\n                 overwritten.\r\n\r\nOptions:\r\n  --skip-mojibake-fix             Do not run the mojibake (garbled text)\r\n                                  fixer.\r\n  --debug                         Enable debug logging.\r\n  --help                          Show this message and exit.\r\n```\r\n\r\n## Installation\r\n\r\n[uv](https://docs.astral.sh/uv/) is recommended to install the package in a managed environment:\r\n\r\n    uv tool install ics-fixer\r\n\r\n## Dependencies\r\n\r\n* Python >= 3.13\r\n* dateparser\r\n* ftfy\r\n* icalendar\r\n* typer\r\n\r\n## Notes\r\n\r\nThese fields may contain desired data but will be discarded if it is incorrectly formatted:\r\n\r\n* Event orgainizer\r\n* Event attendee list\r\n\r\nIn my use case, this is acceptable as I have only encountered ICS files where malformed `ORGANIZER` or `ATTENDEE` values were useless.\r\n\r\nIf 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.\r\n\r\nIf 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.\r\n\r\n## Potential Implementations\r\n\r\n* Unit tests\r\n* Support for older Python versions\r\n* Timezone shifter for source files with incorrect times\r\n* Better fixes for malformed `ORGANIZER` or `ATTENDEE`\r\n  * I would need real world sample data\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Fix slightly broken iCalendar files",
    "version": "1.0.2",
    "project_urls": {
        "Documentation": "https://github.com/nateify/ics-fixer#readme",
        "Homepage": "https://github.com/nateify/ics-fixer"
    },
    "split_keywords": [
        "icalendar",
        " ical",
        " ics",
        " data-wrangling",
        " sanitizer",
        " datacleaning"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b597e46717db56dd8aeaeb5d58493125a4d339d6af8926253927fe6b1b956171",
                "md5": "6ad1a23a8e233c42615f3a994835f04c",
                "sha256": "3f30448f01ed9dee4f0376ebb6966ed9e9caa23a6a1e375db2ff14dc3cf33ddb"
            },
            "downloads": -1,
            "filename": "ics_fixer-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ad1a23a8e233c42615f3a994835f04c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.13",
            "size": 6379,
            "upload_time": "2025-09-08T22:39:03",
            "upload_time_iso_8601": "2025-09-08T22:39:03.880258Z",
            "url": "https://files.pythonhosted.org/packages/b5/97/e46717db56dd8aeaeb5d58493125a4d339d6af8926253927fe6b1b956171/ics_fixer-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2ea981337bc4297d4e818cf2d2235baade0b247b62d642b5f8dcea167e7acf53",
                "md5": "a642f23606f16e9724c6be99f60e2f98",
                "sha256": "8d419dcce5359f5c4d0b1591974ca139b7b5e939aac2651a5d3bc70c03da4bae"
            },
            "downloads": -1,
            "filename": "ics_fixer-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a642f23606f16e9724c6be99f60e2f98",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.13",
            "size": 5081,
            "upload_time": "2025-09-08T22:39:05",
            "upload_time_iso_8601": "2025-09-08T22:39:05.014679Z",
            "url": "https://files.pythonhosted.org/packages/2e/a9/81337bc4297d4e818cf2d2235baade0b247b62d642b5f8dcea167e7acf53/ics_fixer-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 22:39:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nateify",
    "github_project": "ics-fixer#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ics-fixer"
}
        
Elapsed time: 1.00068s