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.1.2

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.1.2
File Size Uploaded Provenance Actions
pyretailscience-0.1.2.tar.gz 11.5 kB Without provenance Details for pyretailscience-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 23.4 kB

Release files / pyretailscience-0.1.2.tar.gz

Download URL pyretailscience-0.1.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
56975d04def989789e40a978315a8b36613b341ac04dac123cef8853e1d47f5b
BLAKE2b-256 checksum
How to use checksums
e70a144b6dc1310311fa3fec399fefca0f4faa78f5801a0e140024d1e55a6943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

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

Download URL pyretailscience-0.1.2-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d94037bbebe36c49a4dc183a59a68acc9abef2a74744b32498c1c09fca44ab90
BLAKE2b-256 checksum
How to use checksums
e19ed18980fd06cced2554241849790296f15942bd4a20cb94b2c5fcfb0b525f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Security for pyretailscience 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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