{"id":18552950,"url":"https://github.com/cryptosense/streamcat","last_synced_at":"2025-04-09T22:32:06.474Z","repository":{"id":57471725,"uuid":"87802780","full_name":"cryptosense/streamcat","owner":"cryptosense","description":"Encode and decode concatenated objects as streams","archived":false,"fork":false,"pushed_at":"2019-06-06T07:45:49.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T13:21:21.084Z","etag":null,"topics":["codec","concatenation","file-like","json","python-library","streaming"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptosense.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2017-04-10T11:24:39.000Z","updated_at":"2019-06-06T07:38:55.000Z","dependencies_parsed_at":"2022-08-30T13:50:34.227Z","dependency_job_id":null,"html_url":"https://github.com/cryptosense/streamcat","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fstreamcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fstreamcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fstreamcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fstreamcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptosense","download_url":"https://codeload.github.com/cryptosense/streamcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123805,"owners_count":21051537,"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":["codec","concatenation","file-like","json","python-library","streaming"],"created_at":"2024-11-06T21:15:37.230Z","updated_at":"2025-04-09T22:32:06.129Z","avatar_url":"https://github.com/cryptosense.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"streamcat\n=========\n\nExamples\n--------\n\nEncoding a JSON iterator into a stream:\n\n.. code-block:: python\n\n    def gen_records():\n        yield b'{\"foo\": \"bar\"}'\n        yield b'{\"baz\": [1, 2, 3]}'\n\n    stream = streamcat.iterator_to_stream(gen_records())\n\n    # `stream` can then be used just like any other `io.RawIOBase`\n    with open('/tmp/jsoncat', 'wb') as destination:\n        shutil.copyfileobj(stream, destination)\n\nDecoding a stream into a generator:\n\n.. code-block:: python\n\n    decoder = json.JSONDecoder()\n    with open('/tmp/jsoncat', 'rb') as source:\n        records = streamcat.stream_to_iterator(source, decoder)\n        for record in records:\n            print(record)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fstreamcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptosense%2Fstreamcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fstreamcat/lists"}