Skip to main content

pyretailscience logo

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 to True to see debug messages. Default is False.
  • --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/0.1.1/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:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with clear messages.
  4. Push your changes to your fork.
  5. Open a pull request to the main repository's main branch.

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.

Metadata

Release files for pyretailscience 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyretailscience 0.2.0
File Size Uploaded
pyretailscience-0.2.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyretailscience 0.2.0
File Interpreter ABI Platform
pyretailscience-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / pyretailscience-0.2.0.tar.gz

Download URL pyretailscience-0.2.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65b5ef9f56f809d93f331a4db7b79f744c414d77acd13a65f3d2a3a8d489734c
BLAKE2b-256 checksum
How to use checksums
c4ccc6b8bff2a1be9e7be14e94ba1b83f9be1d50b3bd8fbdc5981f4f856e466c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / pyretailscience-0.2.0-py3-none-any.whl

Download URL pyretailscience-0.2.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57d52b00870b2ab288a6608b07e6522e22d8d158f43edf81da1270ee435387c1
BLAKE2b-256 checksum
How to use checksums
2dd38deb44478a8040fd4d7c5d42a23de1fbe40bf3d0c888008ff760656f0e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

0.45.0

2 release files

0.44.0

2 release files

0.43.0

2 release files

0.42.0

2 release files

0.41.0

2 release files

0.40.0

2 release files

0.39.0

2 release files

0.37.0

2 release files

0.36.0

2 release files

0.35.0

2 release files

0.34.0

2 release files

0.33.0

2 release files

0.32.0

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page