Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/questionlp/wwdtm_database_export
Python program to export contents from each of the tables in a copy of the Wait Wait Stats Database
https://github.com/questionlp/wwdtm_database_export
database mariadb-database mysql-database python wwdtm
Last synced: about 1 month ago
JSON representation
Python program to export contents from each of the tables in a copy of the Wait Wait Stats Database
- Host: GitHub
- URL: https://github.com/questionlp/wwdtm_database_export
- Owner: questionlp
- License: apache-2.0
- Created: 2022-03-27T23:42:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T03:47:38.000Z (10 months ago)
- Last Synced: 2024-10-27T17:51:06.523Z (3 months ago)
- Topics: database, mariadb-database, mysql-database, python, wwdtm
- Language: Python
- Homepage: https://stats.wwdt.me
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Wait Wait Don't Tell Me! Stats Page Database Export
## Overview
Python application that exports each of the tables in an instance of the [Wait Wait Don't Tell Me Stats Page Database](https://github.com/questionlp/wwdtm_database) as individual JSON files. Each of the JSON files is named after the database table.
## Requirements
- Python 3.10 or newer (Any earlier version of Python is not supported)
- Wait Wait Stats Database v4.6 or higher (Earlier versions are no longer supported) running on MySQL 8.0 or newer## Setup
Before the application can be used, a copy of the `config.json.dist` file needs to be created and named `config.json`. The `config.json` file contains the required database connection information to connect and log into a MySQL server.
It is highly recommended to use Python virtual environments to install the required packages and isolate the application from other Python programs. All of the package requirements are stored in `requirements.txt`.
In case you are working on developing or troubleshooting the program, the development environment requirements are stored in `requirements-dev.txt`.
## Usage
```text
usage: database_export.py [-h] [--date] [output]Export Wait Wait Stats database tables in JSON format.
positional arguments:
output Output directoryoptional arguments:
-h, --help show this help message and exit
--date Create a subdirectory under the output directory with date/timestamp
```## Code of Conduct
This projects follows version 2.1 of the [Contributor Covenant's](https://www.contributor-covenant.org/). A copy of the [Code of Conduct](https://github.com/questionlp/wwdtm_database_export/blob/main/CODE_OF_CONDUCT.md) document is included in this repository.
## License
This library is licensed under the terms of the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).