Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/biozal/analytics-data-generator
Couchbase Analytics Data Generator
https://github.com/biozal/analytics-data-generator
ch2 data data-generator python3
Last synced: about 2 months ago
JSON representation
Couchbase Analytics Data Generator
- Host: GitHub
- URL: https://github.com/biozal/analytics-data-generator
- Owner: biozal
- License: mit
- Created: 2022-06-28T01:52:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T16:27:59.000Z (over 2 years ago)
- Last Synced: 2024-10-21T00:52:57.020Z (3 months ago)
- Topics: ch2, data, data-generator, python3
- Language: Python
- Homepage:
- Size: 14.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Couchbase Analytics Data Generator
This repo contains the item.gen.py script that is used to generate items that will be stored in the beer_item.json file. The data format and rules are loosely based on CH3 which you can find more information about here (see page 65): https://www.tpc.org/tpc_documents_current_versions/pdf/tpc-c_v5.11.0.pdf### Usage:
```python
python3 item_gen.py
```## Warehouses
The data found in the warehouse.json file was scrapped from Wikipedia's list of states and cities based on population:
https://en.wikipedia.org/wiki/List_of_largest_cities_of_U.S._states_and_territories_by_population## Districts
Districts were mostly populated using two APIs:
https://www.zipcodeapi.com/APIZip Code API was used with a distance of 20 miles to generate the 10 districts per warehouse. To generate the geo locations, Google's API was used for this:
https://developers.google.com/maps/documentation/geocoding/start
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.