Aircal
Aircal is a library that exports future DAG runs as events to Google Calendar.
Having DAG run as events in the calendar may help you:
- visualize the utilization of your airflow workers to better spread your jobs
- determine when a certain DAG should be finished to monitor the service.
The library will also observe the changes to your DAGs and synchronize it with the calendar:
- add runs for the freshly added DAGs
- change start and/or end time when an existing DAG changes the schedule (or the execution time changes significantly)
- delete run events when a DAG is removed (or paused)
Tip: run the sync script regularly, perhaps, with you know, Airflow :)
The library only support DAG schedules that use the standard cron syntax. The rest will be ignored (with a warning).
Warning: This is an beta stage software. Expect occassional bugs and rough edges (PR welcome).
Installation & setup
pip install aircal
Alternatively you can clone the repo and install it from there:
pip install -e .
Google API credentials are required to create events in the calendar. You can obtain them here. Store credentials.json into a directory accessible by your code.
The library is modifying and deleting calendar events. I highly recommend creating a new calendar to be used by this software: "add calendar" -> "create new calendar" in Google calendar settings.
Usage
See example.py for an example of the potential pipeline that can be run on the regular intervals.
Metadata
Release files for aircal 0.1.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 |
|---|---|---|---|---|
| aircal-0.1.2.tar.gz | 5.4 kB | Without provenance | Details for aircal-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aircal-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for aircal-0.1.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / aircal-0.1.2.tar.gz
| Download URL | aircal-0.1.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71c0f5202097ab5a3d0a72fdbd47d241da823fb8fbae3f698ef619c75d5388d4
|
|
BLAKE2b-256 checksum How to use checksums |
5b980342c4a0fa5b7496b0564cee36d5fa6407e8bec3a278f219013f4918da33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|
Release files / aircal-0.1.2-py3-none-any.whl
| Download URL | aircal-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6f72ddc5ea8a8d31f828fc987608e067afa404df73abda83bb15152ef610684
|
|
BLAKE2b-256 checksum How to use checksums |
089f8d70887d2d858ee60da62f327818937a36e285006c56b7525e0890aab76a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|
Security for aircal 0.1.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.