docstub-0.7.0rc0
توضیحات
Generate Python stub files from docstrings
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | docstub-0.7.0rc0 |
| نام | docstub |
| نسخه کتابخانه | 0.7.0rc0 |
| نگهدارنده | ['Lars Grüter'] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/docstub/ |
| مجوز | - |
# docstub
> [!NOTE]
> **In early development!**
> Docstub is not feature-complete or thoroughly tested yet.
> Its behavior, configuration or command line interface may change significantly between releases.
docstub is a command-line tool to generate [Python stub files](https://typing.python.org/en/latest/guides/writing_stubs.html).
It extracts necessary type information from [NumPyDoc style](https://numpydoc.readthedocs.io) docstrings.
Many packages in the scientific Python ecosystem already describe expected parameter and return types in their docstrings.
Docstub aims to take advantage of these and help with the adoption of type annotations.
It does so by supporting widely used readable conventions such as `array of dtype` or `iterable of int(s)` which are translated into valid type annotations.
## Installation & getting started
Please refer to the installation guide and introduction in our [official documentation](https://docstub.readthedocs.io/) or in [docs/](docs/) to get started.
## Contributing
The best way you can help and contribute right now is by trying docstub out!
Feedback to what features might still be missing or where it breaks for you would be greatly appreciated.
As well as pointers to where the documentation is confusing and unclear.
Feel welcome to [open an issue](https://github.com/scientific-python/docstub/issues/new/choose)! 🚀
Since docstub is still in early development there isn't an official contribution guide yet.
Features and API are still being heavily extended and the internal structure is still somewhat in flux.
The development is, in part, motivated by an effort to add type annotations to the [scikit-image project](https://scikit-image.org).
This may inform some short-term priorities and the roadmap.
That said, docstub is a project for the community and welcomes contributions in any form!
Please do check in with an issue if you are interested in working on something.
Our project follows the [Scientific Python's Code of Conduct](https://scientific-python.org/code_of_conduct/).
## Acknowledgements
Thanks to [docs2stubs](https://github.com/gramster/docs2stubs) by which this
project was heavily inspired and influenced.
And thanks to CZI for supporting this work with an [EOSS grant](https://chanzuckerberg.com/eoss/proposals/from-library-to-protocol-scikit-image-as-an-api-reference/).
نیازمندی
| مقدار | نام |
|---|---|
| - | numpydoc>=1.7.0 |
| - | click>=8.1.7 |
| - | libcst>=1.3.1 |
| - | lark>=1.1.9 |
| - | black>=24.4.2 |
| - | isort>=5.13.2 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.12 | Python |
نحوه نصب
نصب پکیج whl docstub-0.7.0rc0:
pip install docstub-0.7.0rc0.whl
نصب پکیج tar.gz docstub-0.7.0rc0:
pip install docstub-0.7.0rc0.tar.gz