Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```