{"library":"renew","title":"renew","description":"A Python library for reproducible object serialization in a 100% Pythonic format. It provides a consistent way to represent Python objects, enabling easy reconstruction and debugging. Current version: 0.5.4. Release cadence: low, with no recent releases.","language":"python","status":"maintenance","last_verified":"Sat May 09","install":{"commands":["pip install renew"],"cli":null},"imports":["import renew","from renew import rebuild","from renew.handler import RenewHandler"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import renew\nfrom renew import rebuild\n\n# Define a simple class\nclass MyClass:\n    def __init__(self, x):\n        self.x = x\n    def __repr__(self):\n        return f\"MyClass({self.x})\"\n\n# Create an object\nobj = MyClass(42)\n\n# Renew the object (serialize to Python source code)\nrenewed_code = renew.renew(obj)\nprint(renewed_code)\n# Output: something like \"MyClass(42)\"\n\n# Rebuild from the code\nnew_obj = rebuild(renewed_code)\nprint(new_obj)\n# Output: MyClass(42)\n","lang":"python","description":"Basic usage: serialize an object with renew.renew() and reconstruct with rebuild().","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}