{ "info": { "author": "Pragmatic Mates", "author_email": "info@pragmaticmates.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "python-pragmatic\n================\n\nPragmatic tools and utilities for Python projects.\n\nTested on Python 2.7.\n\n\nRequirements\n------------\nSome utilities require additional libraries as:\n\n- Pillow/PIL\n- pyBarcode\n\n\nInstallation\n------------\n\nUsing pip: pip install python-pragmatic\n\n\nUsage\n-----\n\nClasses\n'''''''\n``get_subclasses(classes, level=0)``\n Return the list of all subclasses for given class (or list of classes).\n\n``get_parent_classes(class)``\n Return the list of all parent classes for given class.\n\nDates\n'''''''\n``diff_month(date_from, date_to)``\n Returns number of months between dates 'date_from' and 'date_to'\n\n``diff_days(date_from, date_to)``\n Returns number of days between dates 'date_from' and 'date_to'\n\n``week_range(date)``\n Returns a tuple of '(start_date, end_date)' of week range by given date.\n\nOS\n''''\n``base64_to_file(content, file_path)``\n Stores base64 encoded content to file.\n\nStrings\n'''''''\n``generate_hash(length=5)``\n Returns random generated string\n\n``barcode(code, args=None)``\n Returns barcode as string encoded in base64 format.\n\n``remove_accents(input)``\n Returns input string without accent characters.\n\n\nThirdparty\n''''''''''\n``class BarcodeImageWriter(ImageWriter)``\n Fixed version of barcode.writer.ImageWriter.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PragmaticMates/python-pragmatic", "keywords": "pragmatic tools utils", "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "python-pragmatic", "package_url": "https://pypi.org/project/python-pragmatic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-pragmatic/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/PragmaticMates/python-pragmatic" }, "release_url": "https://pypi.org/project/python-pragmatic/0.4.2/", "requires_dist": null, "requires_python": null, "summary": "Pragmatic tools and utilities for Python projects", "version": "0.4.2" }, "last_serial": 1320073, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c4b36fe166a73dfb23d0b90df2e54158", "sha256": "4b386c196061deba48a71bb48272a8f20275ffa51ed21f61d1f2075c5031f422" }, "downloads": -1, "filename": "python-pragmatic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c4b36fe166a73dfb23d0b90df2e54158", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3290, "upload_time": "2014-06-18T16:11:00", "url": "https://files.pythonhosted.org/packages/a6/cd/13021eaf3c0258e547b8960c62965186cbf29881a5e9523d284853146a14/python-pragmatic-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d259498ef7629835288df48def872116", "sha256": "9e2a5a279f0dcc4a0c6834c2d51ec9820e04e9d821b4b92d0bef0471581622d7" }, "downloads": -1, "filename": "python-pragmatic-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d259498ef7629835288df48def872116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3389, "upload_time": "2014-06-19T14:35:42", "url": "https://files.pythonhosted.org/packages/c5/f2/5c5b9dc8c7884c944e8d3f4e943984204813067c564c4464a512fbf0b5ff/python-pragmatic-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7306e28efbec71b5677f8bed204e1836", "sha256": "8ac5a726c577c902d1122deefd1b9984e381dcc3626f8a65d3b120b4b87ebc45" }, "downloads": -1, "filename": "python-pragmatic-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7306e28efbec71b5677f8bed204e1836", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3755, "upload_time": "2014-08-27T09:42:03", "url": "https://files.pythonhosted.org/packages/44/e1/2ff1842d033f594352848df0ec37fa99e0a328dee244b36b50d67bb78115/python-pragmatic-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "8b774ad394a701ac9f65716e3450ffaa", "sha256": "000a79b2c7813c3afcaf45f531e517fe96931a6cab5f9f51d71623c6d544fe6a" }, "downloads": -1, "filename": "python-pragmatic-0.4.0.tar.gz", "has_sig": false, "md5_digest": "8b774ad394a701ac9f65716e3450ffaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780, "upload_time": "2014-08-28T11:57:55", "url": "https://files.pythonhosted.org/packages/c3/8a/ab96e82e2d3ff7f06f2ed9ab10990b7aac2f0768eac1205e391ee7ae01d4/python-pragmatic-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "2150d1da3c1c593fdb783cb3f0c91d3e", "sha256": "49aeae58de8e0a8e9ac22ec94c1b2e45943d4957c8622b961ca3c2ca22ea2fd0" }, "downloads": -1, "filename": "python-pragmatic-0.4.1.tar.gz", "has_sig": false, "md5_digest": "2150d1da3c1c593fdb783cb3f0c91d3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3839, "upload_time": "2014-09-11T17:18:05", "url": "https://files.pythonhosted.org/packages/5c/00/e2199532235d9e0e68079225c0a166046ab522129065ce58b547d5c8e555/python-pragmatic-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "381189dc25d531e80334c1991cd500a8", "sha256": "06adc5a8e69afd4e60d2a64e894bcb02a7ab88a323d66fd9fae519879c65f6e1" }, "downloads": -1, "filename": "python-pragmatic-0.4.2.tar.gz", "has_sig": false, "md5_digest": "381189dc25d531e80334c1991cd500a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3724, "upload_time": "2014-11-25T11:15:36", "url": "https://files.pythonhosted.org/packages/d1/35/0309016e6427c37f3eeca13a5c699e7f0feeadf2cc4a2a0b0ad779637f6f/python-pragmatic-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "381189dc25d531e80334c1991cd500a8", "sha256": "06adc5a8e69afd4e60d2a64e894bcb02a7ab88a323d66fd9fae519879c65f6e1" }, "downloads": -1, "filename": "python-pragmatic-0.4.2.tar.gz", "has_sig": false, "md5_digest": "381189dc25d531e80334c1991cd500a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3724, "upload_time": "2014-11-25T11:15:36", "url": "https://files.pythonhosted.org/packages/d1/35/0309016e6427c37f3eeca13a5c699e7f0feeadf2cc4a2a0b0ad779637f6f/python-pragmatic-0.4.2.tar.gz" } ] }