Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karllevik/db-reports
Generates spreadsheet (xlsx) from a RockMaker database, attaches it to an email
https://github.com/karllevik/db-reports
email python sql-server xlsx
Last synced: about 1 month ago
JSON representation
Generates spreadsheet (xlsx) from a RockMaker database, attaches it to an email
- Host: GitHub
- URL: https://github.com/karllevik/db-reports
- Owner: KarlLevik
- License: apache-2.0
- Created: 2019-02-23T17:13:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T17:20:35.000Z (over 2 years ago)
- Last Synced: 2024-11-08T13:24:50.561Z (3 months ago)
- Topics: email, python, sql-server, xlsx
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate RockMaker plate reports
## Features
- Reads config file
- Reads command-line arguments
- Queries the database to get the plates registered per month (or year), the number of times each has been imaged, plus more
- Writes the query result to a spreadsheet (.xlsx)
- Emails the spreadsheet as an attachment to the recipient email addresses defined in the config file## Installing dependencies
```bash
pip install --user XlsxWriter
pip install --user python-tds
```## Configuration
Copy the file config.example.cfg to config.cfg and customise it to use your own database credentials and email settings.
## Running
```bash
python rmaker_plates_to_xlsx.py month 2018 01
```