https://github.com/moralcode/stresstest-opening-hours
a script and some real-world data to stress test the parse-opening-hours library
https://github.com/moralcode/stresstest-opening-hours
Last synced: 3 months ago
JSON representation
a script and some real-world data to stress test the parse-opening-hours library
- Host: GitHub
- URL: https://github.com/moralcode/stresstest-opening-hours
- Owner: MoralCode
- Created: 2021-05-06T21:23:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-29T01:39:00.000Z (over 3 years ago)
- Last Synced: 2025-02-13T08:19:48.563Z (12 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Opening Hours Stress Test
Because the [parse-opening-hours](https://github.com/MoralCode/parse-opening-hours) library was created to parse large datasets of scraped COVID vaccination site opening hours for the [vaccinatethestates ingest pipeline](https://github.com/caVaccineInventory/vaccine-feed-ingest/), there was plenty of sample data available to test with.
this repository serves as a basica usage example and stress-test for this library by feeding it with large amounts of data from the massive GISCorps database of covid vaccination sites.
This is real world data with real-world quirks that parse-opening-hours hopes to take care of so more variations of opening hours can be supported.
## Usage
Just `pipenv install` and `pipenv run python3 ./stress.py`. you can also pass an optional path to a file containing dates to parse, one per line. The default is to use the file at `data/giscorps.txt`
there is also a `--results` flag that can be used to passa filepath to a csv file in which to store the results.