{"id":24847560,"url":"https://github.com/stefantaubert/iterable-serialization","last_synced_at":"2025-03-26T10:20:45.870Z","repository":{"id":57674452,"uuid":"475942810","full_name":"stefantaubert/iterable-serialization","owner":"stefantaubert","description":"Serialization and deserialization of iterables with elements of type `str` from and to a string; similar to `str.join(...)`.","archived":false,"fork":false,"pushed_at":"2022-04-19T15:44:51.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:34:38.504Z","etag":null,"topics":["iterable","serialization","str"],"latest_commit_sha":null,"homepage":"","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/stefantaubert.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-03-30T15:33:42.000Z","updated_at":"2022-04-19T12:11:16.000Z","dependencies_parsed_at":"2022-08-29T14:12:15.656Z","dependency_job_id":null,"html_url":"https://github.com/stefantaubert/iterable-serialization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefantaubert%2Fiterable-serialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefantaubert%2Fiterable-serialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefantaubert%2Fiterable-serialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefantaubert%2Fiterable-serialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefantaubert","download_url":"https://codeload.github.com/stefantaubert/iterable-serialization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632351,"owners_count":20647194,"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":["iterable","serialization","str"],"created_at":"2025-01-31T11:29:59.274Z","updated_at":"2025-03-26T10:20:45.839Z","avatar_url":"https://github.com/stefantaubert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iterable-serialization\n\n[![PyPI](https://img.shields.io/pypi/v/iterable-serialization.svg)](https://pypi.python.org/pypi/iterable-serialization)\n[![PyPI](https://img.shields.io/pypi/pyversions/iterable-serialization.svg)](https://pypi.python.org/pypi/iterable-serialization)\n[![MIT](https://img.shields.io/github/license/stefantaubert/iterable-serialization.svg)](LICENSE)\n\nSerialization and deserialization of iterables with elements of type `str` from and to a string; similar to `str.join(...)`.\n\nThis package aims to be an improved version of:\n\n```python\n# serialization\n\u003e\u003e\u003e serialized = \"|\".join((\"a\", \"b\", \"c\"))\n\u003e\u003e\u003e serialized\n'a|b|c'\n\n# deserialization\n\u003e\u003e\u003e deserialized = serialized.split(\"|\")\n\u003e\u003e\u003e deserialized\n['a', 'b', 'c']\n```\n\nIt makes it possible to serialize/deserialize an iterable with occurring symbols as separator:\n\n```python\n\u003e\u003e\u003e from iterable_serialization import deserialize_iterable, serialize_iterable\n\n# serialization\n\u003e\u003e\u003e serialized = serialize_iterable((\"a\", \"b\", \"c\"), \"a\")\n\u003e\u003e\u003e serialized\n'aabac'\n\n# deserialization\n\u003e\u003e\u003e deserialized = deserialize_iterable(serialized, \"a\")\n\u003e\u003e\u003e tuple(deserialized)\n('a', 'b', 'c')\n```\n\nWith the version above, it would result in a wrong deserialization result:\n\n```python\n# serialization\n\u003e\u003e\u003e serialized = \"a\".join((\"a\", \"b\", \"c\"))\n\u003e\u003e\u003e serialized\n'aabac'\n\n# deserialization\n\u003e\u003e\u003e deserialized = serialized.split(\"a\")\n\u003e\u003e\u003e deserialized\n['', '', 'b', 'c']\n```\n\n## Installation\n\n```sh\npip install iterable-serialization\n```\n\n## Usage\n\n```python\n\u003e\u003e\u003e from iterable_serialization import deserialize_iterable, serialize_iterable\n\n# serialization\n\u003e\u003e\u003e serialized = serialize_iterable((\"a\", \"b\", \"c\"), \"a\")\n\u003e\u003e\u003e serialized\n'aabac'\n\n# deserialization\n\u003e\u003e\u003e deserialized = deserialize_iterable(serialized, \"a\")\n\u003e\u003e\u003e tuple(deserialized)\n('a', 'b', 'c')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefantaubert%2Fiterable-serialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefantaubert%2Fiterable-serialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefantaubert%2Fiterable-serialization/lists"}