{"id":15442084,"url":"https://github.com/lig/decoratorium","last_synced_at":"2025-10-15T23:56:31.964Z","repository":{"id":62567338,"uuid":"83673581","full_name":"lig/decoratorium","owner":"lig","description":"Decorator class implementation for Python","archived":false,"fork":false,"pushed_at":"2017-03-03T10:38:24.000Z","size":8,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-06T12:12:45.479Z","etag":null,"topics":["decorator","decorators","library","python","python3"],"latest_commit_sha":null,"homepage":null,"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/lig.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-02T12:08:29.000Z","updated_at":"2020-09-19T06:56:45.000Z","dependencies_parsed_at":"2022-11-03T16:30:23.523Z","dependency_job_id":null,"html_url":"https://github.com/lig/decoratorium","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lig%2Fdecoratorium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lig%2Fdecoratorium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lig%2Fdecoratorium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lig%2Fdecoratorium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lig","download_url":"https://codeload.github.com/lig/decoratorium/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239301,"owners_count":21235837,"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":["decorator","decorators","library","python","python3"],"created_at":"2024-10-01T19:25:03.753Z","updated_at":"2025-10-15T23:56:31.896Z","avatar_url":"https://github.com/lig.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# decoratorium\n\nDecorator class implementation for Python\n\n\n## Installation\n\n```shell\npip install decoratorium\n```\n\n\n## Usage\n\n```python\nfrom decoratorium import decoratorium\n\nclass my_decorator(decoratorium):\n\n    def __init__(self, arg1=100, arg2=200):\n        self.arg1 = arg1\n        self.arg2 = arg2\n          \n    def wrapper(self, func, *args, **kwargs):\n        result = func(*args, **kwargs)\n        return self.arg1 * self.arg2 / result\n\n@my_decorator\ndef f1():\n    pass\n\n@my_decorator()\ndef f2():\n    pass\n\n@my_decorator(arg2=500)\ndef f3():\n    pass\n```\n\nIt is safe to reuse the same once created decorator instance on a different\nfunctions. \n\n```python\nmy_decorator_500 = my_decorator(arg2=500)\n\n@my_decorator_500\ndef f1():\n    print('f1')\n\n@my_decorator_500\ndef f2():\n    print('f2')\n\nf1()\nf2()\n```\n\n\n## Authors\n\n* [Serge Matveenko](https://github.com/lig)\n\n\n## How to contribute\n\nUse [the decoratorium github page](https://github.com/lig/decoratorium) to post issues and questions and to send pull requests.\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flig%2Fdecoratorium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flig%2Fdecoratorium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flig%2Fdecoratorium/lists"}