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)
| File | Size | Uploaded | |
|---|---|---|---|
| attributes_serializer-1.0.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|