Module to interact with marketplaces
Project description
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file attributes_serializer-1.0.0.tar.gz.
File metadata
- Download URL: attributes_serializer-1.0.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a40b2abce6fbfedd352a11c5ea5c5f0c9494f5eefbe87fdbfb059c072afdbdd
|
|
| MD5 |
32498240a847839c2fe2bf17c7b38f0c
|
|
| BLAKE2b-256 |
1e387423c3f0cacc46251e7a522be6ac95953785c615c84c4aa40555b3067182
|
File details
Details for the file attributes_serializer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: attributes_serializer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758355d9fc0602e59c18f480dd1229d09b765ee0915313924ffd4c33cda5e038
|
|
| MD5 |
187516d11c6ddc82530a84ecdf1eaec4
|
|
| BLAKE2b-256 |
3bdba5b3cc681d2de94fe408f7a593b5b92a7f83e779601e6d8a7b10b012acce
|