https://github.com/umd-lib/libcal-hours-export
Export LibCal Hours data to a CSV file
https://github.com/umd-lib/libcal-hours-export
Last synced: 12 months ago
JSON representation
Export LibCal Hours data to a CSV file
- Host: GitHub
- URL: https://github.com/umd-lib/libcal-hours-export
- Owner: umd-lib
- License: apache-2.0
- Created: 2022-04-08T17:49:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T15:05:11.000Z (about 4 years ago)
- Last Synced: 2025-02-27T12:42:03.799Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# libcal-hours-export
Python 3 application to export hours historical data using the LibCal API and export to a CSV file for import into a reporting database.
## Requires
* Python 3
## Running the application
```bash
# create a .env file (then manually update environment variables)
$ cp .env-template .env
# usage
$ python libcal-hours-export.py -h
usage: libcal-hours-export.py [-h] [-o OUTPUT_FILE] [-f FROM_DATE] [-t TO_DATE]
optional arguments:
-h, --help show this help message and exit
-o OUTPUT_FILE, --output-file OUTPUT_FILE
CSV output file; default is stdout
-f FROM_DATE, --from-date FROM_DATE
from date (YYYY-MM-DD), inclusive; default is yesterday
-t TO_DATE, --to-date TO_DATE
to date (YYYY-MM-DD), inclusive; default is yesterday
```
## License
See the [LICENSE](LICENSE.txt) file for license rights and limitations.