{"id":15445246,"url":"https://github.com/anubhav-narayan/dill-o","last_synced_at":"2026-05-18T10:36:22.394Z","repository":{"id":46627524,"uuid":"366479237","full_name":"anubhav-narayan/dill-O","owner":"anubhav-narayan","description":"Small dill Wrapper with Metadata","archived":false,"fork":false,"pushed_at":"2022-04-02T09:58:19.000Z","size":32,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T19:36:11.545Z","etag":null,"topics":["dill","json","object-marshalling","object-serialization","python-dill","python3"],"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/anubhav-narayan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-05-11T18:32:38.000Z","updated_at":"2022-06-28T12:26:42.000Z","dependencies_parsed_at":"2022-09-11T14:12:20.861Z","dependency_job_id":null,"html_url":"https://github.com/anubhav-narayan/dill-O","commit_stats":null,"previous_names":["anubhav-narayan/dillo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anubhav-narayan/dill-O","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anubhav-narayan%2Fdill-O","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anubhav-narayan%2Fdill-O/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anubhav-narayan%2Fdill-O/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anubhav-narayan%2Fdill-O/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anubhav-narayan","download_url":"https://codeload.github.com/anubhav-narayan/dill-O/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anubhav-narayan%2Fdill-O/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dill","json","object-marshalling","object-serialization","python-dill","python3"],"created_at":"2024-10-01T19:44:26.864Z","updated_at":"2026-05-18T10:36:22.375Z","avatar_url":"https://github.com/anubhav-narayan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dillO\n\nA small dill wrapper with Metadata and Verification Hash\n\n[![GitHub version](https://badge.fury.io/gh/anubhav-narayan%2FdillO.svg)](https://badge.fury.io/gh/anubhav-narayan%2FdillO)\n[![PyPI version](https://badge.fury.io/py/dill-O.svg)](https://badge.fury.io/py/dill-O)\n[![Made with dill](https://img.shields.io/badge/Made%20with-dill-blue)](https://github.com/anubhav-narayan/dillO)\n\n# Installation\n\n## From Source\n```bash\n$ python3 setup.py install\n```\n\n## From `pip`\n```bash\n$ pip3 install dill-O\n```\n\n# In-memory Storage\n```python\nfrom dillo import Dillo\n\nfile = Dillo('My dillO')\n# some object instances as obj\nfile.store(obj)\n# Read back from Memory\nobj = file.read()\n```\n# On File Storage\n```python\nfrom dillo import Dillo\n\nfile = Dillo('My dillO')\n# some object instances as obj\nfile.store(obj)  # store the object `before` you write\nfile.write_file('./filename.dillO')  # write dillO files\n``` \nRead back from Files\n```python\nfrom dillo import Dillo\n\nfile = Dillo.read_file('./filename.dillO')  # Read to memory\nobj = file.read()  # Read object\n```\n# JSON\nJSON Files\n```python\nfrom dillo import Dillo\n\nfile = Dillo('My dillO', type='json')\n# some object instances as obj\nfile.store(obj)  # store the object `before` you write\nfile.write_file('./filename.json')  # write JSON files\n```\nJSON Strings\n```python\nfrom dillo import Dillo\n\nfile = Dillo('My dillO', type='json')\n# some object instances as obj\nfile.store(obj)  # store the object `before` you write\nfile.json_string()  # get JSON string\n```\nJSON Objects\n```python\nfrom dillo import Dillo\n\nfile = Dillo('My dillO', type='json')\n# some object instances as obj\nfile.store(obj)  # store the object `before` you write\nfile.json()  # get JSON Object\n```\n# Interpreter Sessions\n## On Memory\n```python\n\u003e\u003e\u003e a = 10\n\u003e\u003e\u003e b = a + 20\n\u003e\u003e\u003e  # Save a Session\n\u003e\u003e\u003e from dillo import Dillo_Session\n\u003e\u003e\u003e session = Dillo_Session.store_session('This Session')\n\u003e\u003e\u003e  # Load a On Memory Session\n\u003e\u003e\u003e session.load_session()\n```\n## On File\n```python\n\u003e\u003e\u003e a = 10\n\u003e\u003e\u003e b = a + 20\n\u003e\u003e\u003e  # Save a Session\n\u003e\u003e\u003e from dillo import Dillo_Session\n\u003e\u003e\u003e session = Dillo_Session.store_session('This Session')\n\u003e\u003e\u003e  # Load on a File\n\u003e\u003e\u003e session.write_file('./filename.sdillo')\n```\nRead Back\n```python\n\u003e\u003e\u003e from dillo import Dillo_Session\n\u003e\u003e\u003e session = Dillo_Session.read_file('./filename.sdillo')\n\u003e\u003e\u003e session.load_session()\n\u003e\u003e\u003e a\n10\n\u003e\u003e\u003e b\n30\n```\n# Sample Files\ndillO\n```plaintext\n-----METADATA-----\nName   : Array JSON\ndillO  : pickle\nSign   : SHA256\nTags   : \nLength : 271 Bytes\n-----DILLO-----\ngASVBAEAAAAAAACMCmRpbGwuX2RpbGyUjA1fY3JlYXRlX2FycmF5lJOUKGgAjAlfZ2V0X2F0dHKUk5R\noAIwOX2ltcG9ydF9tb2R1bGWUk5SMHG51bXB5LmNvcmUuX211bHRpYXJyYXlfdW1hdGiUhZRSlIwMX3\nJlY29uc3RydWN0lIaUUpSMBW51bXB5lIwHbmRhcnJheZSTlEsAhZRDAWKUh5QoSwFLBYWUaA2MBWR0e\nXBllJOUjAJpOJSJiIeUUpQoSwOMATyUTk5OSv____9K_____0sAdJRiiUMoAQAAAAAAAAACAAAAAAAA\nAAMAAAAAAAAABAAAAAAAAAAFAAAAAAAAAJR0lE50lFKULg==\n-----SIGN-----\n1ac33161cd72c5ce8ec286ea322a02372e1d759a6724f64d33417ac8274d2808\n```\nJSON\n```json\n{\n  \"py/object\": \"dillo.dillo.Dillo\",\n  \"name\": \"Array JSON\",\n  \"type\": \"json\",\n  \"sign\": \"SHA256\",\n  \"protocol\": null,\n  \"byref\": false,\n  \"fmode\": 2,\n  \"recurse\": false,\n  \"_stream\": {\n    \"py/b64\": \"gASVBAEAAAAAAACMCmRpbGwuX2RpbGyUjA1fY3JlYXRlX2FycmF5lJOUKGgAjAlfZ2V0X2F0dHKUk5RoAIwOX2ltcG9ydF9tb2R1bGWUk5SMHG51bXB5LmNvcmUuX211bHRpYXJyYXlfdW1hdGiUhZRSlIwMX3JlY29uc3RydWN0lIaUUpSMBW51bXB5lIwHbmRhcnJheZSTlEsAhZRDAWKUh5QoSwFLBYWUaA2MBWR0eXBllJOUjAJpOJSJiIeUUpQoSwOMATyUTk5OSv////9K/////0sAdJRiiUMoAQAAAAAAAAACAAAAAAAAAAMAAAAAAAAABAAAAAAAAAAFAAAAAAAAAJR0lE50lFKULg==\"\n  },\n  \"ignore\": false,\n  \"tags\": {\n    \"py/set\": []\n   },\n   \"hash\": {\n    \"py/b64\": \"MWFjMzMxNjFjZDcyYzVjZThlYzI4NmVhMzIyYTAyMzcyZTFkNzU5YTY3MjRmNjRkMzM0MTdhYzgyNzRkMjgwOA==\"\n   }\n}\n```\n# License [MIT](https://choosealicense.com/licenses/mit/)\nCopyright (c) 2021 Anubhav Mattoo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanubhav-narayan%2Fdill-o","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanubhav-narayan%2Fdill-o","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanubhav-narayan%2Fdill-o/lists"}