{ "info": { "author": "Most Wanted", "author_email": "bmwant@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Duc\n===\n.. image:: https://badge.fury.io/py/duc.svg\n :target: http://badge.fury.io/py/duc\n.. image:: https://travis-ci.org/bmwant21/duc.svg?branch=master\n :target: https://travis-ci.org/bmwant21/duc\n.. image:: https://coveralls.io/repos/bmwant21/duc/badge.svg?branch=master\n :target: https://coveralls.io/r/bmwant21/duc?branch=master\n\nDuc (trans\\ *duc*\\ er) is a data transformation tool for Python.\n\n.. code-block:: pycon\n\n >>> d = Duc({'name': {'validator': {'type': 'string'}, 'transform': {'name': 'number_name', 'type': 'integer'}})\n >>> v.validate({'name': '518'})\n True\n >>> v.transform()\n True\n >>> v.result\n {'number_name': 518}\n\nAbout\n-----\nSometimes your application receives data from one place and then (after some\ntransformation) sends it to other place. Often you cannot change the format of\ndata you receive because source dictates its own requirements. But with Duc you\ncan validate input (using `Cerberus `_)\nand make transformations on it (using similar syntax).\nParticular example is when you get data from a client and save it to database.\nYou want to validate it or leave it *as-is* (if you trust client) but select\nspecific fields or transform data to other format is required. Slightly like\nforms in web-application.\nIt was tested under Python 3.4. Compatibility with other versions is not\nguaranteed.\n\nDocumentation\n-------------\nComplete documentation is missed by you can check *examples.py* for code snippets\nand usage illustration\n\nInstallation\n------------\nDuc is on PyPI so all you need is:\n\n.. code-block:: console\n\n $ pip install duc\n\nAlso you can install it from Github directly (to use latest version)\n\n.. code-block:: console\n\n $ pip install git+https://github.com/bmwant21/duc.git\n\nTesting\n-------\nJust run (with `Pytest `_):\n\n.. code-block:: console\n\n $ py.test tests\n\nCopyright\n---------\nDuc is an open source project by `Most Wanted\n`_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bmwlog.pp.ua", "keywords": "dictionary,validation,json", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "duc", "package_url": "https://pypi.org/project/duc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/duc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bmwlog.pp.ua" }, "release_url": "https://pypi.org/project/duc/1.2/", "requires_dist": null, "requires_python": null, "summary": "Module for validating and transforming data", "version": "1.2" }, "last_serial": 1578098, "releases": { "0.8": [ { "comment_text": "", "digests": { "md5": "d9162c7b007b1b6921800a0f0e8d9a62", "sha256": "5e8892cc1861ff5457444c45ab292a1129507c07a0ae1d2f6e57c72c321fd186" }, "downloads": -1, "filename": "duc-0.8.zip", "has_sig": false, "md5_digest": "d9162c7b007b1b6921800a0f0e8d9a62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3962, "upload_time": "2015-05-21T13:06:20", "url": "https://files.pythonhosted.org/packages/3a/9e/3c828ed4656aa2e667f0681532d6f8a3f2bde96c02e3a696f4f8e8baa048/duc-0.8.zip" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "5f65d082b912719be7aafdf0c18e7aae", "sha256": "88e9dacc2977c94decabdd0cbe22085402e37dd4bb37407a313a12281cc58a55" }, "downloads": -1, "filename": "duc-0.9.zip", "has_sig": false, "md5_digest": "5f65d082b912719be7aafdf0c18e7aae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4178, "upload_time": "2015-05-21T13:39:06", "url": "https://files.pythonhosted.org/packages/9e/b8/47a24b0bf7ab1e1485dbf3c7cef09464c64c64c8e2616e1992fad16f5df3/duc-0.9.zip" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "3bed17b912bde63097e8bc830fe2971e", "sha256": "548f552482efd07ccab577c09528728ea5201b9b433b2feed13efb941e86b7ef" }, "downloads": -1, "filename": "duc-1.0.zip", "has_sig": false, "md5_digest": "3bed17b912bde63097e8bc830fe2971e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4595, "upload_time": "2015-05-22T11:51:44", "url": "https://files.pythonhosted.org/packages/e5/05/b9058bfc6990950dfcf6bbd6a3b24b34a2de0b62b6212e55ece2cec5a52b/duc-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1c2ea671d4a596a0a51ee2454b8c9fb2", "sha256": "484764159e32e99c94274d2cbeb7251f8306f89b4748b501450030f9501c62d3" }, "downloads": -1, "filename": "duc-1.1.zip", "has_sig": false, "md5_digest": "1c2ea671d4a596a0a51ee2454b8c9fb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5543, "upload_time": "2015-06-02T07:34:57", "url": "https://files.pythonhosted.org/packages/f8/3d/d962e4c6850cb86ef674f67c03b889eabe67f2ebacebf83551851729208c/duc-1.1.zip" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "32f77d1a9f465fd6dc66f9f2e70acb00", "sha256": "1d3393ca4ad677316099d3714e31663236a317fb2999f6871ec936d0569df203" }, "downloads": -1, "filename": "duc-1.2.zip", "has_sig": false, "md5_digest": "32f77d1a9f465fd6dc66f9f2e70acb00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5648, "upload_time": "2015-06-04T12:08:05", "url": "https://files.pythonhosted.org/packages/80/52/4215aa683c0d4746f2dbf9d3aabe38d5e2216da1db5affca863374099033/duc-1.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32f77d1a9f465fd6dc66f9f2e70acb00", "sha256": "1d3393ca4ad677316099d3714e31663236a317fb2999f6871ec936d0569df203" }, "downloads": -1, "filename": "duc-1.2.zip", "has_sig": false, "md5_digest": "32f77d1a9f465fd6dc66f9f2e70acb00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5648, "upload_time": "2015-06-04T12:08:05", "url": "https://files.pythonhosted.org/packages/80/52/4215aa683c0d4746f2dbf9d3aabe38d5e2216da1db5affca863374099033/duc-1.2.zip" } ] }