{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/4"}],"enrichment":{"capability":"Parses and creates data URIs, extracting or encoding mimetype, charset, and base64 flags with minimal validation.","skillfed_tags":["data-uri","base64-encoding","web-utilities"],"use_cases":["Extract image data from a data URI embedded in HTML or JSON to save to disk or process","Encode a file as a data URI for embedding in web pages or API responses","Parse and validate data URIs in Pydantic models for REST APIs that accept inline uploads","Convert between string and binary representations of embedded data without external libraries","Build data URIs programmatically for testing or generating HTML with inline assets"],"what_it_does":"python-datauri is a lightweight class for parsing and creating data URIs\u2014the inline data scheme used to embed files, images, and text directly in URLs. It handles the common case of extracting or encoding a mimetype, charset, and base64 flag, then provides access to the decoded payload as bytes or text. The package is intentionally minimal and does not attempt to validate all edge cases; it focuses on the practical subset most developers need.\n\nYou use it to parse existing data URIs into their components (mimetype, charset, raw data) or to construct new ones from strings or files. It integrates with Pydantic for type validation in data models. The implementation depends only on cached-property and typing_extensions, making it a low-friction addition to any project that needs to work with embedded data URIs.","worth_installing":"Yes, if you work with data URIs regularly. The package is stable, permissively licensed, has no security vulnerabilities, and requires minimal dependencies. Dormant maintenance is not a concern for a focused utility that does one thing well. Install it when you need to parse or create data URIs; skip it if you only handle them occasionally or can use simpler string manipulation."},"id":"python-datauri","links":{"html":"https://skillfed.io/packages/python-datauri","md":"https://skillfed.io/packages/python-datauri.md","pypi":"https://pypi.org/project/python-datauri/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-03","license_spdx":null,"license_treatment":"permissive","name":"python-datauri","python_support":"unspecified","summary":"A li'l class for data URI manipulation in Python"},"popularity":{"monthly_downloads":328132,"position":7559,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.2"}
