{"id":20840190,"url":"https://github.com/davidsantana06/flex-object","last_synced_at":"2025-05-12T01:30:26.635Z","repository":{"id":189575993,"uuid":"675428854","full_name":"davidsantana06/flex-object","owner":"davidsantana06","description":"A Python class for dynamic attributes, JSON serialization, and parsing.","archived":true,"fork":false,"pushed_at":"2024-01-06T17:42:40.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T10:11:54.909Z","etag":null,"topics":["json","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/flex-object/","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/davidsantana06.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}},"created_at":"2023-08-06T22:05:53.000Z","updated_at":"2024-11-20T22:15:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5221cf55-476d-4a82-8181-3c519ba826fd","html_url":"https://github.com/davidsantana06/flex-object","commit_stats":null,"previous_names":["davidsantana06/flex-object"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsantana06%2Fflex-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsantana06%2Fflex-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsantana06%2Fflex-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidsantana06%2Fflex-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidsantana06","download_url":"https://codeload.github.com/davidsantana06/flex-object/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253659139,"owners_count":21943605,"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":["json","python"],"created_at":"2024-11-18T01:15:33.164Z","updated_at":"2025-05-12T01:30:26.346Z","avatar_url":"https://github.com/davidsantana06.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlexObject\n\nThe FlexObject redefines your Python programming experience with its versatile base class, offering an array of dynamic attribute management capabilities, seamless runtime attribute manipulation, effortless JSON serialization, and streamlined JSON file/string handling. This library serves as a cornerstone for simplified data interaction, catering to a wide spectrum of scenarios.\n\n\u003e **Note**\n\u003e This project has been developed based on Python 3.6 or above.\n\n\u003cbr /\u003e\n\n\n\n## :rocket: Features\n\n1. **Dynamic Attribute Management**: Enjoy the freedom to effortlessly manage object attributes on-the-fly, enhancing adaptability to evolving requirements.\n2. **Runtime Attribute Addition/Removal**: Streamline your workflow by dynamically adding or removing attributes during execution, minimizing disruptions.\n3. **JSON Serialization**: Seamlessly transform object attributes into the JSON format, facilitating convenient storage, sharing, or communication with external systems.\n4. **JSON File/String Reading**: Effortlessly load object attributes from JSON files or strings, expediting data retrieval and utilization.\n\n\u003cbr /\u003e\n\n\n\n## :coffee: Usage\n\nAfter incorporating FlexObject into your project, the usage will follow the steps outlined below.\n\n```Python\nfrom flex_object import FlexObject\n\n# Create a FlexObject instance\nflex_obj = FlexObject()\n\n# Set attributes dynamically\nflex_obj.set(name='David Santana', github='davidsantana06', age=21)\n\n# Serialize attributes to JSON string\njson_str = flex_obj.dumps_json()\n\n# Deserialize attributes from JSON string\nflex_obj.loads_json(json_str)\n\n# Store attributes in a JSON file\nflex_obj.dump_json('data.json')\n\n# Load attributes from a JSON file\nflex_obj.load_json('data.json')\n```\n\n\u003cbr /\u003e\n\n\n\n## :balance_scale: License\n\nThis project adopts the **MIT License**, which allows you to use and make modifications to the code as you wish. The only thing I ask is that proper credit is given, acknowledging the effort and time I invested in building it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidsantana06%2Fflex-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidsantana06%2Fflex-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidsantana06%2Fflex-object/lists"}