Retail Data Science Tools
Project description
PyRetailScience
⚡ Democratizing retail data analytics for all retailers ⚡
🤔 What is PyRetailScience?
pyretailscience is a Python package designed for performing analytics on retail data. Additionally, the package includes functionality for generating test data to facilitate testing and development.
Installation
To install pyretailscience, use the following pip command:
pip install pyretailscience
Quick Start
Generating Simulated Data
The pyretailscience package provides a command-line interface for generating simulated transaction data.
Usage
pyretailscience --config_file=<config_file_path> [--verbose=<True|False>] [--seed=<seed_number>] [output]
Options and Arguments
--config_file=<config_file_path>: The path to the configuration file for the simulation. This is a required argument.--verbose=<True|False>: Optional. Set toTrueto see debug messages. Default isFalse.--seed=<seed_number>: Optional. Seed for the random number generator used in the simulation. If not provided, a random seed will be used.[output]: Optional. The path where the generated transactions will be saved in parquet format. If not provided, the transactions will be saved in the current directory.
Examples
# Get the default transaction config file
wget https://raw.githubusercontent.com/Data-Simply/pyretailscience/main/data/default_data_config.yaml
# Generate the data file
pyretailscience --config_file=default_data_config.yaml --seed=123 transactions.parquet
This command will generate a file named transactions.parquet with the simulated transaction data, using the configuration file at default data configuration file, and a seed of 123 for the random number generator.
Contributing
We welcome contributions from the community to enhance and improve pyretailscience. To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear messages.
- Push your changes to your fork.
- Open a pull request to the main repository's
mainbranch.
Please make sure to follow the existing coding style and provide unit tests for new features.
Contributors
Made with contrib.rocks.
License
This project is licensed under the Elastic License 2.0 - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pyretailscience-0.1.1.tar.gz.
File metadata
- Download URL: pyretailscience-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e0ea3bb22de816f0b7f9325fad33b1fbb63a77014f843875481bc3726e59c09
|
|
| MD5 |
31c1d468d9bf9e81db86db8981af99a4
|
|
| BLAKE2b-256 |
fd858d680aa619794995bb4500850c7a2b88764b182f5893219bef0231b327bc
|
File details
Details for the file pyretailscience-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyretailscience-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd14dd98c65e343e123f45d2c7ac8e78209ded58054b830dc7ede45e039ef808
|
|
| MD5 |
cd73f07ff28b06ab0538f4139ca9f12f
|
|
| BLAKE2b-256 |
73b786c203a75f0ac11cb362b8ce6f40fc8f9fd2036656deeaf4a9c2ceaff5af
|