Skip to main content

A library for managing product warranties, documents, and expiry reminders

Project description

warranty-tracker-nci

A Python library for managing product warranties, documents, and expiry reminders. Built for the Digital Warranty & Product Tracker cloud application.

Features

  • WarrantyManager - Warranty expiry calculation, status classification (active/expiring/expired), and enrichment of warranty data.
  • ProductManager - Product validation and categorization with support for multiple product categories.
  • DocumentProcessor - File type validation, file size validation, and S3 key generation for warranty documents.
  • ReminderScheduler - Finds expiring warranties within a configurable threshold and generates notification data.
  • Validators - Utility functions for validating dates, required fields, file extensions, and file sizes.

Installation

pip install warranty-tracker-nci

Usage

from warranty_tracker import WarrantyManager, ProductManager, DocumentProcessor, ReminderScheduler

# Check warranty status
wm = WarrantyManager()
status = wm.calculate_status("2024-01-01", "2025-12-31")

# Validate a product
pm = ProductManager()
is_valid = pm.validate_product({"name": "MacBook", "brand": "Apple", "category": "Electronics", "purchase_date": "2024-01-01"})

# Generate S3 key for document
dp = DocumentProcessor()
key = dp.generate_s3_key("user123", "warranty456", "receipt.pdf")

# Find expiring warranties
rs = ReminderScheduler(threshold_days=30)
expiring = rs.find_expiring_warranties(warranties_list)

Author

Rasool Basha Durbesula (24205478) - NCI Cloud Platform Programming

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

warranty_tracker_nci-1.0.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

warranty_tracker_nci-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for warranty_tracker_nci-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4802a9828ad9950263821be5fec98c1614563d32306669fe4be0223f476e2868
MD5 cfb5902b82fb3e8ac165ffb77d2a077b
BLAKE2b-256 50ed8c5e5fd238f064eeb31dd612fe4ce927b3a150af7e7c75bb0ab900a7aa40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for warranty_tracker_nci-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa534336b65010cf359baae78462ef781d0e51846b6438af3ab75cd05a7f1ff2
MD5 3f05e4cb01753903608650f720a3819c
BLAKE2b-256 59189e4412131fbfe6c4755113603490ca1e6a6ca8af6f6e2ed02399cbafc1dd

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