{"id":18051776,"url":"https://github.com/joegasewicz/birman","last_synced_at":"2025-04-10T18:15:09.482Z","repository":{"id":64107825,"uuid":"568815887","full_name":"joegasewicz/birman","owner":"joegasewicz","description":"Multipart formdata decoder","archived":false,"fork":false,"pushed_at":"2022-12-02T12:55:57.000Z","size":189,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T13:34:12.445Z","etag":null,"topics":["form","formdata","multipart","multipart-formdata"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/birman/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joegasewicz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-21T13:21:50.000Z","updated_at":"2022-12-18T02:24:04.000Z","dependencies_parsed_at":"2022-12-05T06:07:10.545Z","dependency_job_id":null,"html_url":"https://github.com/joegasewicz/birman","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fbirman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fbirman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fbirman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fbirman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joegasewicz","download_url":"https://codeload.github.com/joegasewicz/birman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248269602,"owners_count":21075783,"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","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":["form","formdata","multipart","multipart-formdata"],"created_at":"2024-10-30T22:55:52.629Z","updated_at":"2025-04-10T18:15:09.464Z","avatar_url":"https://github.com/joegasewicz.png","language":"Python","readme":"[![Python package](https://github.com/joegasewicz/birman/actions/workflows/python-package.yml/badge.svg)](https://github.com/joegasewicz/birman/actions/workflows/python-package.yml)\n[![Upload Python Package](https://github.com/joegasewicz/birman/actions/workflows/python-publish.yml/badge.svg)](https://github.com/joegasewicz/birman/actions/workflows/python-publish.yml)\n\n# Birman\nMultipart formdata decoder library.\n\n### Install\n```\npip install birman\n```\n\n### Get started\n\nDecode multipart form data\n```python\nfrom birman import Decoder\n# multipart_data = b'---- ...etc'\n\ndecoder = Decoder(multipart_data)\nresult = decoder.decode()\n```\nThis would return a normalized dict\n```python\n# example from params - ?email=test@test.com\u0026password=wizard\n# result -\n{\n    \"email\": {\n        \"name\": \"email\",\n        \"value\": \"test@test.com\",\n    },\n    \"password\": {\n        \"name\": \"password\",\n        \"value\": \"wizard\",\n    },\n}\n```\n\nParse URI form params\n```python\nfrom birman import Encoder\n\narg = \"?email=test@test.com\u0026password=wizard\"\nresult = Encoder.parse_params(arg)\n```\nThis would return a normalized dict\n```python\n# result -\n{\n    \"email\": {\n        \"name\": \"email\",\n        \"value\": \"test@test.com\",\n    },\n    \"password\": {\n        \"name\": \"password\",\n        \"value\": \"wizard\",\n    },\n}\n```\n\n### Multipart Formdata\nThe decoder method will return file data extracted from the multipart formdata as a dict.\n\n```python\n{\n    'name': 'logo',\n    'type': 'file',\n    'value': {\n        'filename': 'bobtail.png',\n        'mimetype': 'image/png', \n        'file_data': b'...',\n        'type': 'file',\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoegasewicz%2Fbirman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoegasewicz%2Fbirman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoegasewicz%2Fbirman/lists"}