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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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