{"id":23540964,"url":"https://github.com/w13b3/abstract_base_decorator","last_synced_at":"2025-05-15T04:31:57.574Z","repository":{"id":57407763,"uuid":"380045261","full_name":"w13b3/abstract_base_decorator","owner":"w13b3","description":"Abstract base class for creating for both python classes and function decorators","archived":false,"fork":false,"pushed_at":"2021-07-01T06:47:07.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-20T16:03:56.173Z","etag":null,"topics":["abstract-factory-pattern","baseclass","class-decorator","decorator","decorator-pattern","inheritance","oop","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/w13b3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-24T20:40:02.000Z","updated_at":"2021-07-01T06:47:10.000Z","dependencies_parsed_at":"2022-09-26T17:10:38.368Z","dependency_job_id":null,"html_url":"https://github.com/w13b3/abstract_base_decorator","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w13b3%2Fabstract_base_decorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w13b3%2Fabstract_base_decorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w13b3%2Fabstract_base_decorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w13b3%2Fabstract_base_decorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w13b3","download_url":"https://codeload.github.com/w13b3/abstract_base_decorator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239262366,"owners_count":19609518,"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":["abstract-factory-pattern","baseclass","class-decorator","decorator","decorator-pattern","inheritance","oop","python"],"created_at":"2024-12-26T05:13:18.408Z","updated_at":"2025-02-17T08:41:16.591Z","avatar_url":"https://github.com/w13b3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"abd - Abstract Base Decorator\n---\n\nabd provides an `AbstractBaseDecorator` class which you can inherit from to create flexible decorators.\n\n## Example\n```Python3\n\u003e\u003e\u003e from abd import ABD\n\u003e\u003e\u003e class Decorator(ABD):\n...     def invoke(self, *args, **kwargs):\n...         \"\"\"Must write an invoke function\n...         invoke is called when the decorated function is called\n...         \"\"\"\n...         # catch, edit and pass on the (keyword) arguments\n...         #  that are given the the decorated function\n...         print('invoke is called')\n...         result = self.decorated_object(*args, **kwargs)\n...         # function has been called and result is available\n...         #   possible to edit the result here\n...         return result\n... \n\u003e\u003e\u003e @Decorator\n... def func(argument):\n...     # some function logic ...\n...     return argument\n... \n\u003e\u003e\u003e func('some text')\ninvoke is called\n'some text'\n\u003e\u003e\u003e \n```\n\n## PyPI\n[pip install abd](https://pypi.org/project/abd/ \"PyPI abd page\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw13b3%2Fabstract_base_decorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw13b3%2Fabstract_base_decorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw13b3%2Fabstract_base_decorator/lists"}