معرفی شرکت ها


duc-1.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Module for validating and transforming data
ویژگی مقدار
سیستم عامل -
نام فایل duc-1.2
نام duc
نسخه کتابخانه 1.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Most Wanted
ایمیل نویسنده bmwant@gmail.com
آدرس صفحه اصلی http://bmwlog.pp.ua
آدرس اینترنتی https://pypi.org/project/duc/
مجوز UNKNOWN
Duc === .. image:: https://badge.fury.io/py/duc.svg :target: http://badge.fury.io/py/duc .. image:: https://travis-ci.org/bmwant21/duc.svg?branch=master :target: https://travis-ci.org/bmwant21/duc .. image:: https://coveralls.io/repos/bmwant21/duc/badge.svg?branch=master :target: https://coveralls.io/r/bmwant21/duc?branch=master Duc (trans\ *duc*\ er) is a data transformation tool for Python. .. code-block:: pycon >>> d = Duc({'name': {'validator': {'type': 'string'}, 'transform': {'name': 'number_name', 'type': 'integer'}}) >>> v.validate({'name': '518'}) True >>> v.transform() True >>> v.result {'number_name': 518} About ----- Sometimes your application receives data from one place and then (after some transformation) sends it to other place. Often you cannot change the format of data you receive because source dictates its own requirements. But with Duc you can validate input (using `Cerberus <https://github.com/nicolaiarocci/cerberus>`_) and make transformations on it (using similar syntax). Particular example is when you get data from a client and save it to database. You want to validate it or leave it *as-is* (if you trust client) but select specific fields or transform data to other format is required. Slightly like forms in web-application. It was tested under Python 3.4. Compatibility with other versions is not guaranteed. Documentation ------------- Complete documentation is missed by you can check *examples.py* for code snippets and usage illustration Installation ------------ Duc is on PyPI so all you need is: .. code-block:: console $ pip install duc Also you can install it from Github directly (to use latest version) .. code-block:: console $ pip install git+https://github.com/bmwant21/duc.git Testing ------- Just run (with `Pytest <http://pytest.org/latest/>`_): .. code-block:: console $ py.test tests Copyright --------- Duc is an open source project by `Most Wanted <http://bmwlog.pp.ua>`_.


نحوه نصب


نصب پکیج whl duc-1.2:

    pip install duc-1.2.whl


نصب پکیج tar.gz duc-1.2:

    pip install duc-1.2.tar.gz