Skip to main content

Ecommerce Payment Optimizer

The Payment Optimizer package provides tools for analyzing and optimizing payment methods in e-commerce to maximize revenue generation. It includes A/B testing capabilities using t-tests to compare different payment options' effectiveness.

Features

  • A/B testing (t-test) functionality to evaluate the performance of different payment methods.
  • Analysis tools to understand which payment options are more beneficial for e-commerce revenue.
  • Integration with Power BI for visualization of test results through a dashboard.
  • API for managing user registration, updating user information, adding transactions, and more.

Subpackages

The payment_optimizer package consists of three essential subpackages:

  • db: This subpackage facilitates various database operations, including generating fake data, writing data to CSV files, creating schemas, and generating the e_commerce.db file. Additionally, it provides functionalities for populating tables with generated data. The sql_interactions.py module serves as a bridge between SQL and Python, enabling seamless interactions between the two.
  • models: In this subpackage, the necessary data is prepared, model metrics are created, and A/B testing is conducted for three payment options: only pre-payment is available, both pre and post-payment are available, and only post-payment is available. The results of the model are stored in a dictionary for further use.
  • api: The API serves as the backend for the PayOpt application, providing endpoints for user authentication, product search, and additional functionalities for users with granted access and special permissions. It includes features such as user login, product search based on various criteria (product name, brand, price), and routers for handling endpoints specific to granted users and authentication requirements.

Required Inputs

To utilize the package effectively, ensure that the schema adheres to the following format: Alt Text

Installation

You can install Payment Optimizer using pip:

pip install pay_opt

Usage

Below is a basic example demonstrating how to utilize certain functions from the package:

from pay_opt.models import ABTesting

ab_test = ABTesting(data_connect)
ab_test.preprocess_data()
model_result = ab_test.perform_ab_test(start_date, end_date)

API Calls

Default Endpoints

Denied View Endpoints

Granted View Endpoints

Documentation

For detailed documentation and usage examples, refer to the official documentation. Link to our Project in PyPi: PyPi package:

License

Payment Optimizer is distributed under the MIT License.

Release files for PayOpt 1.0.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 PayOpt 1.0.2
File Size Uploaded
payopt-1.0.2.tar.gz 23.9 kB Details

Built distribution (wheel)

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

Total release size: 51.0 kB

Release files / payopt-1.0.2.tar.gz

Download URL payopt-1.0.2.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
232ef449c4419017116848f978c415c606d75699380960c54c52aa91f8be4a3f
BLAKE2b-256 checksum
How to use checksums
574e3c5fd277cb41e5a42efb1c076059dfc7842dc7226d031ec3ea4cd46d5179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Release files / PayOpt-1.0.2-py3-none-any.whl

Download URL PayOpt-1.0.2-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57157221d78bf1c06390466e1a45811d6732fdc9b1e4c4e0fa5a2782dcc5c299
BLAKE2b-256 checksum
How to use checksums
f07fcd553cdabbe8d46772956b2ab930697bd9cda72b4b197976be20612db8ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

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