معرفی شرکت ها


codecrumbs-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

leave codecrumbs behind so that other can adopt the changes
ویژگی مقدار
سیستم عامل -
نام فایل codecrumbs-0.1.0
نام codecrumbs
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Frank Hoffmann
ایمیل نویسنده 15r10nk@polarbit.de
آدرس صفحه اصلی https://github.com/15r10nk/codecrumbs
آدرس اینترنتی https://pypi.org/project/codecrumbs/
مجوز MIT
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) # codecrumbs Codecrumbs is a Python library (and pytest plugin) for source code refactoring across library boundaries. It allows you to change the API of your library and to propagate this changes to every one who uses your library. More can be found in the [documentation](https://15r10nk.github.io/codecrumbs/introduction/). ## Example Simple example which renames one argument: ``` python class Example: # old code ... # def method(self,v): # print(v) @renamed_argument("v", "value") def method(self, value): print(value) # some where else e = Example() e.method(v=5) ``` and apply the refactoring later ``` bash # if you have a standalone script codecrumbs example.py # or if you have tests pytest --codecrumbs-fix test_example.py ``` which will rename the argument ```python e.method(value=5) ``` You can use `codecrumbs` instead of `python` to execute your code, or `pytest` to run your tests and apply the renamings automatically. This can be used to fix the small things in your library you wanted to fix but never did, because you wanted to stay backwards compatible or didn't wanted you user to fix 1000 renamings in their code. ## Installation You can install `codecrumbs` via `pip` from [PyPI](https://pypi.org/project): `pip install codecrumbs` The pytest support comes out of the box and everyone who depends on your library can use `pytest --codecrumbs-fix` to apply the changes you declared. ## Features With codecrumbs you can fix: * method / attribute names * rename named arguments of functions ## Contributing Contributions are very welcome. Tests can be run with [tox](https://tox.readthedocs.io/en/latest/), please ensure the coverage at least stays the same before you submit a pull request. ## Issues If you encounter any problems, please [file an issue](https://github.com/15r10nk/pytest-codecrumbs/issues) along with a detailed description. ## License Distributed under the terms of the [MIT](http://opensource.org/licenses/MIT) license, "pytest-codecrumbs" is free and open source software


نیازمندی

مقدار نام
>=1.2.0,<2.0.0 executing
>=2.2.1,<3.0.0 asttokens


زبان مورد نیاز

مقدار نام
>=3.8,<4.0 Python


نحوه نصب


نصب پکیج whl codecrumbs-0.1.0:

    pip install codecrumbs-0.1.0.whl


نصب پکیج tar.gz codecrumbs-0.1.0:

    pip install codecrumbs-0.1.0.tar.gz