Skip to main content

marketplace_handler

Package to interact with marketplaces.

Installation

pip

pip install attributes_serializer

poetry

poetry add attributes_serializer

Usage

Serialize sale_prices for collector entity

from attributes_serializer import SalePrices

sale_prices = SalePrices(colletor_product['sale_prices'])

# get all attributes' names as list of strings
print(sale_prices.attributes)

entry = sale_prices.manualMinPriceOzon
print(entry.name)
print(entry.value)
print(entry.id)

for attribute in sale_prices.attributes:
    print(getattr(sale_prices, attribute))

    
entry = sale_prices.get("manualMinPriceOzon")
print(entry.name)
print(entry.value)
print(entry.id)

for attribute in sale_prices.attributes:
    print(sale_prices.get(attribute))

Metadata

Release files for attributes-serializer 1.0.1

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

Source distribution (sdist)

Source distribution for attributes-serializer 1.0.1
File Size Uploaded
attributes_serializer-1.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for attributes-serializer 1.0.1
File Interpreter ABI Platform
attributes_serializer-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 kB

Release files / attributes_serializer-1.0.1.tar.gz

Download URL attributes_serializer-1.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
09d8b65be05159b1947c722c8df955f55eafb000605a53971454d896196f26d9
BLAKE2b-256 checksum
How to use checksums
2a47cf5d231c7642b2799ef4a827a2a7dc6c7efdab2b2c386de6f240decdb1f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / attributes_serializer-1.0.1-py3-none-any.whl

Download URL attributes_serializer-1.0.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbe092a124e65408e82bfce209e6f118fac52d64d7e2cea0a91778ded0c43588
BLAKE2b-256 checksum
How to use checksums
3bee965f490386928587906f5723635e88685a345a4845f648e219eccf621b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

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