{"id":15837561,"url":"https://github.com/muhammad-fiaz/ason","last_synced_at":"2026-02-02T13:37:47.037Z","repository":{"id":216691000,"uuid":"741983522","full_name":"muhammad-fiaz/ason","owner":"muhammad-fiaz","description":"ASON: Adaptive Structured Object Notation - Python library for dynamic data serialization, providing flexibility and simplicity.","archived":false,"fork":false,"pushed_at":"2024-07-22T15:41:28.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T10:52:46.585Z","etag":null,"topics":["adaptive-structure-object-notation","api","ason","cli","client","data","file","file-format","file-sharing","file-upload","json","json-data","json-parser","open-source","opensource","parser","parsing","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ason/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muhammad-fiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["muhammad-fiaz"],"patreon":"muhammad_fiaz","ko_fi":"muhammadfiaz","open_collective":"muhammadfiaz"}},"created_at":"2024-01-11T14:17:39.000Z","updated_at":"2024-07-22T15:41:33.000Z","dependencies_parsed_at":"2024-01-12T02:44:52.931Z","dependency_job_id":"34c7944e-b599-4d9a-9a87-fff8cce93ad2","html_url":"https://github.com/muhammad-fiaz/ason","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"b7be3da7d858c03802a9afff8922d96cff5a741f"},"previous_names":["muhammad-fiaz/ason"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/muhammad-fiaz/ason","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fason","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fason/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fason/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fason/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammad-fiaz","download_url":"https://codeload.github.com/muhammad-fiaz/ason/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fason/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276064222,"owners_count":25578997,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["adaptive-structure-object-notation","api","ason","cli","client","data","file","file-format","file-sharing","file-upload","json","json-data","json-parser","open-source","opensource","parser","parsing","python","python3"],"created_at":"2024-10-05T15:40:41.149Z","updated_at":"2025-09-20T07:31:52.783Z","avatar_url":"https://github.com/muhammad-fiaz.png","language":"Python","funding_links":["https://github.com/sponsors/muhammad-fiaz","https://patreon.com/muhammad_fiaz","https://ko-fi.com/muhammadfiaz","https://opencollective.com/muhammadfiaz","https://buymeacoffee.com/muhammadfiaz","https://patreon.com/muhammadfiaz"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n  \r\n#  ASON: Adaptive Structure Object Notation\r\n\r\n\u003cbr\u003e\r\n\r\n[![Run Tests](https://github.com/muhammad-fiaz/ason/actions/workflows/package-tests.yaml/badge.svg)](https://github.com/muhammad-fiaz/ason/actions/workflows/package-tests.yaml)\r\n[![PyPI Version](https://img.shields.io/pypi/v/ason)](https://pypi.org/project/ason/)\r\n[![Python Versions](https://img.shields.io/pypi/pyversions/ason)](https://pypi.org/project/ason/)\r\n[![Downloads](https://img.shields.io/pypi/dm/ason)](https://pypi.org/project/ason/)\r\n[![Last Commit](https://img.shields.io/github/last-commit/muhammad-fiaz/ason)](https://github.com/muhammad-fiaz/ason)\r\n[![GitHub Issues](https://img.shields.io/github/issues/muhammad-fiaz/ason)](https://github.com/muhammad-fiaz/ason/issues)\r\n[![GitHub Stars](https://img.shields.io/github/stars/muhammad-fiaz/ason)](https://github.com/muhammad-fiaz/ason/stargazers)\r\n[![GitHub Forks](https://img.shields.io/github/forks/muhammad-fiaz/ason)](https://github.com/muhammad-fiaz/ason/network)\r\n\r\n[![Maintainer](https://img.shields.io/badge/Maintainer-muhammad--fiaz-blue)](https://github.com/muhammad-fiaz)\r\n[![Sponsor on GitHub](https://img.shields.io/badge/Sponsor%20on%20GitHub-Become%20a%20Sponsor-blue)](https://github.com/sponsors/muhammad-fiaz)\r\n[![License](https://img.shields.io/github/license/muhammad-fiaz/ason)](https://github.com/muhammad-fiaz/ason/blob/main/LICENSE)\r\n[![Stability](https://img.shields.io/badge/Stability-Stable-green)](https://github.com/muhammad-fiaz/ason)\r\n\r\nASON is a Python library designed for adaptive data serialization. It seamlessly handles various data structures, offering flexibility and simplicity inspired by JSON.\r\n\r\n\r\n\u003c/div\u003e\r\n\r\n\u003e This Project is Still in active Development so not ready for production yet\r\n\r\n## Installation\r\n\r\n```bash\r\npip install ason\r\n```\r\n\r\n## Usage\r\n\r\n```python3\r\nfrom ason import ason\r\n\r\n# Create an Ason object\r\ndata = '{\"name\": \"${name}\", \"age\": ${age}, \"city\": \"${city}\", \"hobbies\": [\"${hobby1}\", \"${hobby2}\"]}'\r\nason_data = ason.loads(data)\r\n\r\n# Set values for variables\r\nason_data.set(\"name\", \"John\")\r\nason_data.set(\"age\", 30)\r\nason_data.set(\"city\", \"New York\")\r\nason_data.set(\"hobby1\", \"Reading\")\r\nason_data.set(\"hobby2\", \"Coding\")\r\n\r\n# Print the result after setting variables\r\nresult_after_set = ason_data.dumps()\r\nprint(\"Result after setting variables:\")\r\nprint(result_after_set)\r\nprint()\r\n\r\n# Replace a key dynamically\r\nason_data.replace(\"age\", \"new_age\", 25)\r\n\r\n# Append a value to the 'hobbies' list\r\nason_data.append(\"hobbies\", \"Gardening\")\r\n\r\n# Print the result after replacing and appending\r\nresult_after_modify = ason_data.dumps()\r\nprint(\"Result after replacing and appending:\")\r\nprint(result_after_modify)\r\nprint()\r\n\r\n# Get the value associated with a key\r\ncity_value = ason_data.get(\"city\")\r\nprint(\"Value for key 'city':\", city_value)\r\nprint()\r\n\r\n# Accessing values using square bracket notation\r\nname_value = ason_data[\"name\"]\r\nprint(\"Value for key 'name' using square bracket notation:\", name_value)\r\nprint()\r\n\r\n# Set a value using square bracket notation\r\nason_data[\"new_key\"] = \"new_value\"\r\nprint(\"Result after setting a value using square bracket notation:\")\r\nprint(ason_data.dumps())\r\n\r\n```\r\nThis example demonstrates how to create an Ason object, load data, set values for variables, and then dump the result. The output will be a dictionary with the replaced values:\r\n\r\nResult after setting variables:\r\n```json\r\n\r\n{\"name\": \"John\", \"age\": \"30\", \"city\": \"New York\", \"hobbies\": [\"${hobby1}\", \"${hobby2}\"]}\r\n```\r\nResult after replacing and appending:\r\n```json\r\n\r\n{\"name\": \"John\", \"new_age\": 25, \"city\": \"New York\", \"hobbies\": [\"${hobby1}\", \"${hobby2}\", \"Gardening\"]}\r\n```\r\nValue for key 'city': New York\r\n\r\nValue for key 'name' using square bracket notation: John\r\n\r\nResult after setting a value using square bracket notation:\r\n```json\r\n\r\n{\"name\": \"John\", \"new_age\": 25, \"city\": \"New York\", \"hobbies\": [\"${hobby1}\", \"${hobby2}\", \"Gardening\"], \"new_key\": \"new_value\"}\r\n```\r\n\r\n## Contributing\r\nContributions are welcome! Before contributing, please read our [Contributing Guidelines](CONTRIBUTING.md) to ensure a smooth and collaborative development process.\r\n\r\n## Code of Conduct\r\n\r\nPlease review our [Code of Conduct](CODE_OF_CONDUCT.md) to understand the standards of behavior we expect from contributors and users of this project.\r\n\r\n## License\r\nThis project is licensed under the [Apache 2.0 License](). See [LICENSE](LICENSE) for more details.\r\n\r\n## Support the Project\r\n\u003cbr\u003e\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n\u003ch5\u003e \u003cstrong\u003e 💰 You can help me improve more by offering a little support on any platform❤️\u003c/strong\u003e\u003c/h5\u003e\r\n\r\n[![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://buymeacoffee.com/muhammadfiaz) [![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge\u0026logo=patreon\u0026logoColor=white)](https://patreon.com/muhammadfiaz) [![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://ko-fi.com/muhammadfiaz)\r\n[![Sponsor muhammad-fiaz](https://img.shields.io/badge/Sponsor-%231EAEDB.svg?\u0026style=for-the-badge\u0026logo=GitHub-Sponsors\u0026logoColor=white)](https://github.com/sponsors/muhammad-fiaz)\r\n[![Open Collective Backer](https://img.shields.io/badge/Open%20Collective-Backer-%238CC84B?style=for-the-badge\u0026logo=open-collective\u0026logoColor=white)](https://opencollective.com/muhammadfiaz)\r\n\u003c/div\u003e\r\n\r\n\r\n\r\n## Happy Coding ❤️\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-fiaz%2Fason","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammad-fiaz%2Fason","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-fiaz%2Fason/lists"}