{"id":22614688,"url":"https://github.com/peachboy0/rsv","last_synced_at":"2025-12-30T18:50:50.845Z","repository":{"id":215821833,"uuid":"739861977","full_name":"romanin-rf/rsv","owner":"romanin-rf","description":"A module for reading and writing an RSV document file.","archived":false,"fork":false,"pushed_at":"2025-04-16T00:26:22.000Z","size":44,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T18:20:14.985Z","etag":null,"topics":["document","file","io","read","rsv","write"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rsv","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/romanin-rf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-06T19:12:06.000Z","updated_at":"2025-04-16T00:26:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"56674c8d-bef6-4bf1-a9b3-ec29d3bb8df3","html_url":"https://github.com/romanin-rf/rsv","commit_stats":null,"previous_names":["romanin-rf/rsv"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/romanin-rf/rsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Frsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Frsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Frsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Frsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romanin-rf","download_url":"https://codeload.github.com/romanin-rf/rsv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Frsv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265934208,"owners_count":23852089,"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":["document","file","io","read","rsv","write"],"created_at":"2024-12-08T18:11:37.519Z","updated_at":"2025-12-30T18:50:50.765Z","avatar_url":"https://github.com/romanin-rf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsv.py\n# Description\nA module for reading and writing an [RSV](https://github.com/Stenway/RSV-Challenge) document file.\n\n# Using\n```python\nimport rsv\n\nsample_data = [\n    [\"Name\", \"Description\", None],\n    [],\n    [None, \":)\"]\n]\n\nwith open(\"document.rsv\", \"wb\") as file:\n    rsv.dump(sample_data, file)\n\n# The first load method.\n# It is the most efficient and suitable for working even with large arrays.\n# Since it loads data from the file sequentially when loading.\nwith open(\"document.rsv\", \"rb\") as file:\n    data = rsv.load(file)\n\n# The second load method.\n# It is suitable for working with small arrays.\n# Since it loads the entire file into memory at once and only then parses it.\nwith open(\"document.rsv\", \"rb\") as file:\n    data = rsv.load_split(file)\n\n# The third load method.\n# This is the most efficient possible method suitable for working with any arrays of any size.\n# Loads the file line by line, the use of `for` is required.\nwith open(\"document.rsv\", \"rb\") as file:\n    lines = []\n    for line in file.load_generator():\n        # And here you can do whatever you want...\n        lines.append(line)\n```\n\n## Notes\nIt is also worth noting that no one forbids you to use the `Encoder`/`Decoder` directly:\n```python\nimport rsv\n\nrsv_encoder = rsv.Encoder(open(\"document.rsv\", \"wb\"))\nrsv_decoder = rsv.Decoder(open(\"document.rsv\", \"rb\"))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachboy0%2Frsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeachboy0%2Frsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachboy0%2Frsv/lists"}