https://github.com/bendog/pyconau-ical
Quick little hack to build an ical file from the json schedule
https://github.com/bendog/pyconau-ical
Last synced: 9 months ago
JSON representation
Quick little hack to build an ical file from the json schedule
- Host: GitHub
- URL: https://github.com/bendog/pyconau-ical
- Owner: bendog
- License: gpl-2.0
- Created: 2024-11-22T03:52:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-12T05:40:56.000Z (9 months ago)
- Last Synced: 2025-09-12T05:46:44.650Z (9 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyConAU calendar converter
A cli tool which will take a .json agenda file or url (based on the schema https://c3voc.de/schedule/schema.json)
and convert it to an .ics calendar file.
As used by https://pretalx.com/
## Installation
install via pip
$ pip install json-to-ical
## Usage
#### With a URL
$ json-to-ical https://pretalx.com/pycon-au-2025/schedule/export/schedule.json
#### With a local file
$ json-to-ical schedule.json
#### Specifying an output file
By default the output file will be named after the input file, swapping the filename with the extension .ics.
If you want to change the output file name, you can use the `-o` flag.
This will work with either file or url based input.
$ json-to-ical schedule.json -o 2025_schedule.ics
## Local environment setup
$ uv sync --all-groups
## Testing
$ uv run pytest
### Testing with specific python versions
$ uv run --python 3.9 pytest
$ uv run --python 3.10 pytest
$ uv run --python 3.11 pytest
$ uv run --python 3.12 pytest
$ uv run --python 3.13 pytest
### Tested dependencies
| Python version | ical | pydantic |
|----------------|--------|----------|
| 3.9 | 4.5.4 | 1.10.22 |
| 3.10 | 8.2.0 | 2.11.7 |
| 3.11 | 11.0.0 | 2.11.7 |
| 3.12 | 11.0.0 | 2.11.7 |
| 3.13 | 11.0.0 | 2.11.7 |