Skip to main content

Yandex Market Language for Python provides user-friendly interface for parsing or creating XML files.

Project description

Yandex Market Language (YML) for Python

https://img.shields.io/pypi/v/yandex_market_language.svg https://travis-ci.com/stefanitsky/yandex_market_language.svg?branch=master https://codecov.io/gh/stefanitsky/yandex_market_language/branch/master/graph/badge.svg Documentation Status Updates

Yandex Market Language for Python provides user-friendly interface for parsing or creating XML files.

Features

  • The ability to convert from XML to dictionary and vice versa using models.

  • Parse XML file into the ready-to-use Feed model.

  • Convert dict-like objects into the ready-to-use XML file.

  • Validation for in-out data.

TODO

  • [ ] Full models validation support as in the Yandex.Market.

  • [ ] Simplify models (code refactoring + DRY).

  • [ ] Add custom exceptions on parse / convert to get more information.

  • [ ] Documentation in Russian.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.6.1 (2020-07-28)

  • Add __slots__ for all models to reduce RAM usage.

0.6.0 (2020-04-06)

  • Added all missed models: Gifts & Promos.

  • Added cbid warning message on set (field is deprecated).

  • Added creation of an XML file from the Feed model.

0.5.0 (2020-04-02)

  • Added missed offers of types: audiobook, artist.title, medicine, event-ticket & alco.

  • Some fixes for fields.

0.4.0 (2020-04-01)

  • Added xml parsing for all models, except: Gifts, Promos and another types of offers like audiobooks, medicine etc.

  • Fixed fields parsing for datetime fields & fields that can be None.

  • Added new field for offer: supplier.

0.3.0 (2020-03-30)

  • All missing fields and models were added for the BaseOffer.

  • SimplifiedOffer is now fully supported for xml / dict.

  • Custom exception classes removed and replaced with ValidationError.

0.2.0 (2020-03-29)

  • Added models for xml to dict and backward support: Category, Currency, Feed, Option (delivery / pickup), Price.

  • Added basic models implementation (WIP): Shop, Offers.

  • Added basic validation support (WIP, will be improved after finishing of models).

0.1.0 (2020-03-28)

  • First release on PyPI.

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

yandex_market_language-0.6.1.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

yandex_market_language-0.6.1-py2.py3-none-any.whl (26.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yandex_market_language-0.6.1.tar.gz.

File metadata

  • Download URL: yandex_market_language-0.6.1.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0

File hashes

Hashes for yandex_market_language-0.6.1.tar.gz
Algorithm Hash digest
SHA256 a5532b9fd5b83b9131dcce65e690e57da7e895ec3a558b3a5d665cb523084f48
MD5 e7479305ad59c8f9cc47885afd479c72
BLAKE2b-256 341cbc881a3e4892815c6859afef2e2a628fc20fe8d1cf5d6e0aa701b8dbd9e5

See more details on using hashes here.

File details

Details for the file yandex_market_language-0.6.1-py2.py3-none-any.whl.

File metadata

  • Download URL: yandex_market_language-0.6.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0

File hashes

Hashes for yandex_market_language-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0dce4f2e818d539e17fb67df9a56f46b2fd401b842caec5098ac860e2ad52aeb
MD5 fddd78f61ce4f5c51088498630e0f3fc
BLAKE2b-256 75c47bf000d86b8b5bbf587265dbd365f454bb00864a6611621dcaa4149515c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page