Skip to main content

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


Download files

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

Source Distribution

attributes_serializer-1.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

attributes_serializer-1.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file attributes_serializer-1.0.1.tar.gz.

File metadata

  • Download URL: attributes_serializer-1.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for attributes_serializer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 09d8b65be05159b1947c722c8df955f55eafb000605a53971454d896196f26d9
MD5 270d8d54d12930a359e46d6a6954cc2b
BLAKE2b-256 2a47cf5d231c7642b2799ef4a827a2a7dc6c7efdab2b2c386de6f240decdb1f8

See more details on using hashes here.

File details

Details for the file attributes_serializer-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for attributes_serializer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe092a124e65408e82bfce209e6f118fac52d64d7e2cea0a91778ded0c43588
MD5 51866e9af12eb436edff296c274b064c
BLAKE2b-256 3bee965f490386928587906f5723635e88685a345a4845f648e219eccf621b72

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