Bart Simulator (CLI)
Send event views to Google Analytics and Generator customers or products
Install
$ pip install bart-simulator
Usage
usage: simulator [-h] [--loglevel LOGLEVEL] [--version] ...
Send event views to Google Analytics and Generator customers or products data-
set (bart-recs CLI)
optional arguments:
-h, --help show this help message and exit
--loglevel LOGLEVEL
--version show program's version number and exit
Commands:
generation Gera os data set simulados para as recomendações
send-data-ga Envia dados simulados para o Google Analytics
Generate DataSets
# Generation customers csv
$ simulator generation customers -f csv
# Generation customers json
$ simulator generation customers -f json
# Generation products csv
$ simulator generation products -f csv
# Generation products json
$ simulator generation products -f json
Full Options
usage: simulator generation [-h] [--desc-path DESC_PATH] [--rows ROWS]
--format {csv,json} [{csv,json} ...]
{customers,products}
positional arguments:
{customers,products} Arquivo que sera gerado pelo processo
optional arguments:
-h, --help show this help message and exit
--desc-path DESC_PATH, -d DESC_PATH
Pasta onde sera salvo os dataset gerados
--rows ROWS, -r ROWS Quantidades de Linhas geradas
--format {csv,json} [{csv,json} ...], -f {csv,json} [{csv,json} ...]
Formato do arquivo de saida que sera salvo,pode ser
adiciona mais de um tipo ao mesmo tempo
Send events to GA
$ simulator send-data-ga pageview \
-c https://github.com/cesarbruschetta/bart-recs/datasets/customers.csv \
-p https://github.com/cesarbruschetta/bart-recs/datasets/products.csv \
-i 10 \
-gaId "ga:123456789"
Full Options
usage: simulator send-data-ga [-h] --customers CUSTOMERS --products PRODUCTS
[--interactions INTERACTIONS]
{pageview}
positional arguments:
{pageview} Tipo de evento que sera enviado ao GA
optional arguments:
-h, --help show this help message and exit
--ga-track-id GA_TRACK_ID, -gaId GA_TRACK_ID
Id de acompanhamento para o sua conta do GA
--customers CUSTOMERS, -c CUSTOMERS
Caminho para o dataset de customers, em csv
--products PRODUCTS, -p PRODUCTS
Caminho para o dataset de products, em csv
--interactions INTERACTIONS, -i INTERACTIONS
Quantidades de interações geradas
--random-interactions
Gerar uma quantidades de interações randomicas
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bart-simulator-0.2.1.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bart-simulator-0.2.1.tar.gz.
File metadata
- Download URL: bart-simulator-0.2.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.0.5 CPython/2.7.13 Linux/4.15.0-30deepin-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5434d04ee244d1246efc2571f85238beaadad2a194f789963f8ad680afdb4640
|
|
| MD5 |
38412b0201147fc583578240f47dd150
|
|
| BLAKE2b-256 |
18540db85f2fe373174ee9fd173a169dd197bce9339b662b331dc4a5cde95141
|
File details
Details for the file bart_simulator-0.2.1-py3-none-any.whl.
File metadata
- Download URL: bart_simulator-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.0.5 CPython/2.7.13 Linux/4.15.0-30deepin-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c0da0e6ab01132aa16df9eb10d2e20418d6a1c6223cbcb906fa6dcf0517e7bf
|
|
| MD5 |
ce889d41130d6d5b4a9bd866c969d560
|
|
| BLAKE2b-256 |
e71e42243c389ec91a59d381f26fe01199c49c3348873bfcf7bc93642e450256
|