{"id":23344480,"url":"https://github.com/rec/fil","last_synced_at":"2025-04-10T02:33:06.694Z","repository":{"id":158695576,"uuid":"634169457","full_name":"rec/fil","owner":"rec","description":"🏺 Read/write JSON/TOMLYaml/txt/ 🏺","archived":false,"fork":false,"pushed_at":"2024-02-14T14:42:33.000Z","size":645,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T19:20:47.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rec.github.io/fil/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-04-29T09:10:44.000Z","updated_at":"2024-06-21T04:17:13.865Z","dependencies_parsed_at":null,"dependency_job_id":"b5c0e253-a3b8-4ca0-8df6-96a0f37f96bf","html_url":"https://github.com/rec/fil","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Ffil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Ffil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Ffil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Ffil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rec","download_url":"https://codeload.github.com/rec/fil/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144305,"owners_count":21054905,"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":[],"created_at":"2024-12-21T06:26:45.478Z","updated_at":"2025-04-10T02:33:06.670Z","avatar_url":"https://github.com/rec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Example 1: read a file\n\n    d1 = fil.read('file.json')   # Any Json\n    d2 = fil.read('file.toml')   # A dict\n    d3 = fil.read('file.yaml')   # Any JSON\n    d4 = fil.read('file.txt')    # A string\n\n    # Reading a JSON Line file returns an interator:\n    for record in fil.read('file.jsonl'):\n        print(record)  # A sequence of JSON\n\n## Example 2: write to a file\n\n    fil.write(d1, 'file.json')  # d1 can be any JSON\n    fil.write(d2, 'file.toml')  # d2 must be a dict\n    fil.write(d3, 'file.yaml')  # d3 can be any JSON\n    fil.write(d4, 'file.txt')   # d4 most be a str\n\n    # Write an iterator to a JSON Line file\n    dicts = ({'key': i} for i in range(10))\n    fil.write(dicts, 'file.jsonl')\n\n\n### [API Documentation](https://rec.github.io/fil#fil--api-documentation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Ffil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frec%2Ffil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Ffil/lists"}