{"id":16452574,"url":"https://github.com/agent-hellboy/pdeprecator","last_synced_at":"2025-07-27T07:41:21.001Z","repository":{"id":226179248,"uuid":"767970261","full_name":"Agent-Hellboy/pdeprecator","owner":"Agent-Hellboy","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T15:20:30.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T09:18:05.472Z","etag":null,"topics":[],"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/Agent-Hellboy.png","metadata":{"files":{"readme":"README.rst","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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-06T08:29:39.000Z","updated_at":"2024-03-06T09:30:32.000Z","dependencies_parsed_at":"2024-03-06T09:56:59.607Z","dependency_job_id":null,"html_url":"https://github.com/Agent-Hellboy/pdeprecator","commit_stats":null,"previous_names":["agent-hellboy/pdeprector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-Hellboy%2Fpdeprecator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-Hellboy%2Fpdeprecator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-Hellboy%2Fpdeprecator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-Hellboy%2Fpdeprecator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agent-Hellboy","download_url":"https://codeload.github.com/Agent-Hellboy/pdeprecator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240893855,"owners_count":19874696,"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":[],"created_at":"2024-10-11T10:13:12.347Z","updated_at":"2025-02-26T16:41:43.160Z","avatar_url":"https://github.com/Agent-Hellboy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pdeprecator\n===========\n\n-  This library provides a decorator deprecated_params that allows you\n   to deprecate certain parameters in your class methods or function.\n\n\n\n.. image:: https://img.shields.io/pypi/v/pdeprecator\n   :target: https://pypi.python.org/pypi/pdeprecator/\n\n.. image:: https://github.com/Agent-Hellboy/pdeprecator/actions/workflows/python-package.yml/badge.svg\n    :target: https://github.com/Agent-Hellboy/pdeprecator/\n    \n.. image:: https://img.shields.io/pypi/pyversions/pdeprecator.svg\n   :target: https://pypi.python.org/pypi/pdeprecator/\n\n.. image:: https://img.shields.io/pypi/l/pdeprecator.svg\n   :target: https://pypi.python.org/pypi/pdeprecator/\n\n.. image:: https://pepy.tech/badge/pdeprecator\n   :target: https://pepy.tech/project/pdeprecator\n\n.. image:: https://img.shields.io/pypi/format/pdeprecator.svg\n   :target: https://pypi.python.org/pypi/pdeprecator/\n\n.. image:: https://coveralls.io/repos/github/Agent-Hellboy/pdeprecator/badge.svg?branch=master\n   :target: https://coveralls.io/github/Agent-Hellboy/pdeprecator?branch=master\n\nInstallation\n------------\n\nFor stable version \n   - pip install pdeprector\n\nFor developement \n   - git clone https://github.com/Agent-Hellboy/pdeprector\n   - cd pdeprector \n   - python -m venv .venv \n   - source .venv/bin/activate\n\nExample\n-------\n\n.. code:: python\n\n   # Example usage\n   class MyClass:\n       @deprecated_params({\"old_param\": \"new_param\"})\n       def __init__(self, new_param):\n           self.new_param = new_param\n\n\n   # Usage\n   obj = MyClass(old_param=\"value\")\n   print(obj.new_param)\n\n   Warning: Deprecating a parameter name change contradicts the\n   open-closed principle of SOLID, although \n   it's not an inflexible rule.\n\nWarning\n-------\n\n::\n\n   - It's recommended to write new functions or classes with a v2 \n     suffix instead of using this deprecated library. \n\n   - If possible, migrate to the newer version with v2 suffix.    \n     However, if migration is not feasible at the moment, \n     you can continue using this library with caution.\n\n\n\n   You should do following \n.. code:: python\n\n      from deprecated import deprecated\n\n      # Deprecate a function\n      @deprecated(reason=\"Use function_v2 instead\")\n      def function():\n         pass\n\n      def function_v2():\n         # New implementation for function_v2\n         pass\n\n     \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-hellboy%2Fpdeprecator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagent-hellboy%2Fpdeprecator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-hellboy%2Fpdeprecator/lists"}