Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epeios-q37/abs-python
https://github.com/epeios-q37/abs-python
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/epeios-q37/abs-python
- Owner: epeios-q37
- License: mit
- Created: 2020-08-28T16:01:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-02T17:33:09.000Z (almost 4 years ago)
- Last Synced: 2024-11-18T02:44:49.742Z (about 2 months ago)
- Language: Python
- Size: 2.64 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Automate boring stuff with Python programs with a GUI
[![Run on Repl.it](https://q37.info/s/kpm7xhfm.png)](https://q37.info/s/kk9xhnnf) [![About online demonstrations](https://img.shields.io/badge/about-online%20demonstrations-informational)](https://q37.info/s/sssznrb4)
This project is inspired by https://automatetheboringstuff.com/, a book by Al Sweigart, more precisely from its [chapter 13](https://automatetheboringstuff.com/2e/chapter13/), but with the addition of a graphical user interface with the help of the Python version of the [*Atlas* toolkit](https://atlastk.org).
The first example (in the `Excel-1` folder) displays an Excel spreadsheet of data from the 2010 US Census in a more conveniently way. By selecting a state in the left top frame, you have access to a summary of its counties in the right top frame, and by selecting one of these counties, you have access to the tracts in the bottom frame as they are stored in the Excel spreadsheet.
The second example (in the `Excel-3`folder) is very loosely based on the example of the book. It simulates a handwritten Excel spreadsheet containing produce sales, where error were made on the produce name. The spreadsheet does not contain such errors, which are added by the `scramble()` function once the spreadsheet is loaded. The displayed table is split in two part, based on how often the produce name does appear in the spreadsheet, the first containing the produce names with an error, the second the right produce names. You select one or more instance of the same product in the first part, by checking the corresponding checkbox, and the right produce name by checking the corresponding radio button. By clicking the `Coll./Exp.` button you switch between displaying only the selected produces, or all the produces. The `Apply` button corrects the selected produce names, and the `Jump` button allows to jump to the part of the table containing the right produce name.
To be complete, both examples lack of the save button, but you can easily implement it, as an exercise, by following the indications in the book.
To launch a demonstration, first install the needed modules with `pip install --user -r requirements.txt` and then simply launch `python Excel-1/main.py` or `python Excel-3/main.py` from the root folder of the repository.
For the [online demonstration](https://q37.info/s/kk9xhnnf), once on *Repl.it*, click on the green `run` button, choose the demonstration you want to launch, and click the then displayed URL (or copy/paste it in a web browser).