{ "info": { "author": "Jacob Oscarson", "author_email": "jacob@plexical.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Multimedia :: Graphics :: Graphics Conversion" ], "description": "==========\r\npy-rfc2397\r\n==========\r\n\r\n:Author: Jacob Oscarson\r\n:Contact email: jacob@plexical.com\r\n\r\nQuick implementation of RFC2397_ in Python, `MIT Licenced`_. RFC2397\r\nis also known as the 'data url' format used to embed image data\r\ndirectly into CSS stylesheets among other things.\r\n\r\nThe rationale behind this package is described in `this blogpost`_.\r\n\r\n.. _RFC2397: http://tools.ietf.org/html/rfc2397\r\n.. _`MIT Licenced`: http://www.opensource.org/licenses/mit-license.php\r\n.. _dataurl: http://pypi.python.org/pypi/dataurl\r\n.. _`this blogpost`: http://bit.ly/kwUnQL\r\n\r\nRequirements\r\n------------\r\n\r\nPython 2.6 and 2.7, not tested on Python 3+ (yet).\r\n\r\nInstallation\r\n------------\r\n\r\nThe latest version can be found on PyPI_. The recommended way to\r\ninstall is via `pip`_::\r\n\r\n $ pip install rfc2397\r\n\r\nAn executable named `rfc2397` is then placed in the python environment\r\nthat `pip` installs to.\r\n\r\nAs an alternate method, it's also possible to copy the `rfc2397.py`_\r\nfile to any location and run the script stand-alone.\r\n\r\n.. _`rfc2397.py`: https://github.com/JacobOscarson/py-rfc2397/blob/master/rfc2397.py\r\n\r\nUsage\r\n-----\r\n\r\nJust give `rfc2397` a path to an image file. `rfc2397` uses Python's\r\nmimetypes_ module to determine what MIME-type a file has (**N.B**:\r\nthe program won't stop you from encoding something too large/an\r\nunsupported mime-type).\r\n\r\n $ rfc2397 dot.png # <- your image path\r\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWP4o8oAAANCASIYayeeAAAAAElFTkSuQmCC\r\n\r\n.. _pip: http://www.pip-installer.org/\r\n.. _PyPI: http://pypi.python.org/pypi\r\n\r\nChanges\r\n-------\r\n\r\n1.0b2 (2012-01-03)\r\n++++++++++++++++++\r\n\r\n* Uses mimetypes_ module instead of primitive ad-hoc file name\r\n extension guessing.\r\n* `rfc2397` is now a single-file module, simplifies package and makes\r\n it possible to just copy the `rfc2397.py`_ file to an arbitrary\r\n location as an alternate installation method.\r\n* Better QA by using tox_.\r\n\r\n.. _mimetypes: http://docs.python.org/library/mimetypes.html\r\n.. _`rfc2397.py`: https://github.com/JacobOscarson/py-rfc2397/blob/master/rfc2397.py\r\n.. _tox: http://tox.testrun.org/\r\n\r\n1.0b1 (2011-06-16)\r\n++++++++++++++++++\r\n\r\nConcept and initial coding.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rfc2397", "package_url": "https://pypi.org/project/rfc2397/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rfc2397/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/rfc2397/1.0b2/", "requires_dist": null, "requires_python": null, "summary": "A Python RFC2397 (\"data url\") implementation", "version": "1.0b2" }, "last_serial": 704305, "releases": { "1.0b1": [ { "comment_text": "", "digests": { "md5": "213a68999e8319a28b16f275e95ab49b", "sha256": "e06ec5d90b6035140cd2c02b8e5d697a3102b1bb6bc136f1452ea8050db17eb9" }, "downloads": -1, "filename": "rfc2397-1.0b1.tar.gz", "has_sig": false, "md5_digest": "213a68999e8319a28b16f275e95ab49b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2079, "upload_time": "2011-06-16T12:24:04", "url": "https://files.pythonhosted.org/packages/70/8f/99147e6e0ebe0df64f8605301aa56da313fd4cf979e21b0cf7def43280ec/rfc2397-1.0b1.tar.gz" } ], "1.0b2": [ { "comment_text": "", "digests": { "md5": "51e52231c417a18323446660d721c6e4", "sha256": "e321ae83b6c7d0a9ecd13aafa7cad75c5d30e3d51e325a4c22ee1a283ad5edc4" }, "downloads": -1, "filename": "rfc2397-1.0b2.tar.gz", "has_sig": false, "md5_digest": "51e52231c417a18323446660d721c6e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2861, "upload_time": "2012-01-03T13:54:46", "url": "https://files.pythonhosted.org/packages/27/e7/7ab5fb4bd190fcdcae2573c5c7d566085530dee6f5c9ad03eb13fc07e080/rfc2397-1.0b2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "51e52231c417a18323446660d721c6e4", "sha256": "e321ae83b6c7d0a9ecd13aafa7cad75c5d30e3d51e325a4c22ee1a283ad5edc4" }, "downloads": -1, "filename": "rfc2397-1.0b2.tar.gz", "has_sig": false, "md5_digest": "51e52231c417a18323446660d721c6e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2861, "upload_time": "2012-01-03T13:54:46", "url": "https://files.pythonhosted.org/packages/27/e7/7ab5fb4bd190fcdcae2573c5c7d566085530dee6f5c9ad03eb13fc07e080/rfc2397-1.0b2.tar.gz" } ] }