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.0.tar.gz (2.0 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.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for attributes_serializer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a40b2abce6fbfedd352a11c5ea5c5f0c9494f5eefbe87fdbfb059c072afdbdd
MD5 32498240a847839c2fe2bf17c7b38f0c
BLAKE2b-256 1e387423c3f0cacc46251e7a522be6ac95953785c615c84c4aa40555b3067182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for attributes_serializer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 758355d9fc0602e59c18f480dd1229d09b765ee0915313924ffd4c33cda5e038
MD5 187516d11c6ddc82530a84ecdf1eaec4
BLAKE2b-256 3bdba5b3cc681d2de94fe408f7a593b5b92a7f83e779601e6d8a7b10b012acce

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