{"id":19523100,"url":"https://github.com/jacob414/py-rfc2397","last_synced_at":"2025-10-07T01:00:02.515Z","repository":{"id":139182015,"uuid":"1899816","full_name":"jacob414/py-rfc2397","owner":"jacob414","description":"A Python RFC2397 (\"data url\") implementation","archived":false,"fork":false,"pushed_at":"2012-01-03T12:43:42.000Z","size":104,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T22:53:55.770Z","etag":null,"topics":["css","images","python","rfc-2397"],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/rfc2397","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacob414.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-15T11:47:35.000Z","updated_at":"2019-08-13T14:46:39.000Z","dependencies_parsed_at":"2023-03-11T13:11:26.439Z","dependency_job_id":null,"html_url":"https://github.com/jacob414/py-rfc2397","commit_stats":null,"previous_names":["jacoboscarson/py-rfc2397"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jacob414/py-rfc2397","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob414%2Fpy-rfc2397","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob414%2Fpy-rfc2397/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob414%2Fpy-rfc2397/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob414%2Fpy-rfc2397/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacob414","download_url":"https://codeload.github.com/jacob414/py-rfc2397/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob414%2Fpy-rfc2397/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278703572,"owners_count":26031205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","images","python","rfc-2397"],"created_at":"2024-11-11T00:42:19.454Z","updated_at":"2025-10-07T01:00:02.498Z","avatar_url":"https://github.com/jacob414.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========\npy-rfc2397\n==========\n\n:Author: Jacob Oscarson\n:Contact email: jacob@plexical.com\n\nQuick implementation of RFC2397_ in Python, `MIT Licenced`_. RFC2397\nis also known as the 'data url' format used to embed image data\ndirectly into CSS stylesheets among other things.\n\nThe rationale behind this package is described in `this blogpost`_.\n\n.. _RFC2397: http://tools.ietf.org/html/rfc2397\n.. _`MIT Licenced`: http://www.opensource.org/licenses/mit-license.php\n.. _dataurl: http://pypi.python.org/pypi/dataurl\n.. _`this blogpost`: http://bit.ly/kwUnQL\n\nRequirements\n------------\n\nPython 2.6 and 2.7, not tested on Python 3+ (yet).\n\nInstallation\n------------\n\nThe latest version can be found on PyPI_. The recommended way to\ninstall is via `pip`_::\n\n    $ pip install rfc2397\n\nAn executable named `rfc2397` is then placed in the python environment\nthat `pip` installs to.\n\nAs an alternate method, it's also possible to copy the `rfc2397.py`_\nfile to any location and run the script stand-alone.\n\n.. _`rfc2397.py`: https://github.com/JacobOscarson/py-rfc2397/blob/master/rfc2397.py\n\nUsage\n-----\n\nJust give `rfc2397` a path to an image file. `rfc2397` uses Python's\nmimetypes_ module to determine what MIME-type a file has (**N.B**:\nthe program won't stop you from encoding something too large/an\nunsupported mime-type).\n\n    $ rfc2397 dot.png # \u003c- your image path\n    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWP4o8oAAANCASIYayeeAAAAAElFTkSuQmCC\n\n.. _pip: http://www.pip-installer.org/\n.. _PyPI: http://pypi.python.org/pypi\n\nChanges\n-------\n\n1.0b2 (2012-01-03)\n++++++++++++++++++\n\n* Uses mimetypes_ module instead of primitive ad-hoc file name\n  extension guessing.\n* `rfc2397` is now a single-file module, simplifies package and makes\n  it possible to just copy the `rfc2397.py`_ file to an arbitrary\n  location as an alternate installation method.\n* Better QA by using tox_.\n\n.. _mimetypes: http://docs.python.org/library/mimetypes.html\n.. _`rfc2397.py`: https://github.com/JacobOscarson/py-rfc2397/blob/master/rfc2397.py\n.. _tox: http://tox.testrun.org/\n\n1.0b1 (2011-06-16)\n++++++++++++++++++\n\nConcept and initial coding.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob414%2Fpy-rfc2397","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacob414%2Fpy-rfc2397","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob414%2Fpy-rfc2397/lists"}