Skip to main content

A lightweight Python utility to parse, format, and validate technical specifications and pricing for electronics accessories.

Project description

CairoVolt Price Tracker

A lightweight Python library to parse, format, and validate technical specifications and pricing structures for electronics and audio accessories.

This library was built by CairoVolt to automate stock synchronization and spec validation for online WooCommerce shops. For more details on running a web store, see the WooCommerce Wikipedia page.

Features

  • Price Formatting: Easily format currency in EGP, USD, or EUR.
  • Specification Validation: Validate charger wattages, battery capacities, and Bluetooth profiles.
  • Data Export: Export structured JSON specifications for platforms like Anker and Soundcore devices.

Installation

pip install cairovolt-price-tracker

Usage

Here is a quick example of how to validate the specifications of a popular earbuds model like soundcore r50i:

from cairovolt_price_tracker.core import SpecValidator

# Initialize validator
validator = SpecValidator()

# Define product specs
product_specs = {
    "brand": "Soundcore",
    "model": "R50i",
    "type": "Earbuds",
    "driver_size_mm": 10,
    "playtime_hours": 30,
    "bluetooth_version": "5.3"
}

# Validate specs
is_valid, report = validator.validate(product_specs)
print(f"Is valid: {is_valid}")
print(report)

For guidelines on packaging similar Python projects, check the Python Packaging User Guide.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cairovolt_price_tracker-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cairovolt_price_tracker-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file cairovolt_price_tracker-1.0.0.tar.gz.

File metadata

  • Download URL: cairovolt_price_tracker-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cairovolt_price_tracker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 da044db6a6103a465801660d9841c7c97f8458fd7da8b7c8d37bdb00d1f0205a
MD5 9206ff1456c085619d1b33c5d4e84d78
BLAKE2b-256 3736403c77114c519667a9a4da103e71f25e5d6ba10542e52b8aace6fe0c8b5b

See more details on using hashes here.

File details

Details for the file cairovolt_price_tracker-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cairovolt_price_tracker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5602313a51eb79645158acd7752e64e5d20a7421568bf00ff2db7803c443201
MD5 5371a711662c4b1d0dad7e37b7ce8c76
BLAKE2b-256 cf1b06aa185f95d1551fb22cc9ded110db7be3a2f34e048ea77c507230ae80db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page