beancount-stubs-0.1.3
توضیحات
Stub files for the beancount package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | beancount-stubs-0.1.3 |
| نام | beancount-stubs |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joshua Gilman |
| ایمیل نویسنده | joshuagilman@gmail.com |
| آدرس صفحه اصلی | https://github.com/jmgilman/beancount-stubs |
| آدرس اینترنتی | https://pypi.org/project/beancount-stubs/ |
| مجوز | MIT |
# beancount-stubs
<p align="center">
<a href="https://github.com/jmgilman/beancount-stubs/actions/workflows/ci.yml">
<img src="https://github.com/jmgilman/beancount-stubs/actions/workflows/ci.yml/badge.svg"/>
</a>
<a href="https://pypi.org/project/beancount-stubs">
<img src="https://img.shields.io/pypi/v/beancount-stubs"/>
</a>
</p>
> A package containing stub files for the [beancount][1] package.
## Usage
Install the package:
```shell
$> pip install beancount-stubs
```
Run `mypy`:
```shell
$> mypy .
```
The `mypy` binary will automatically detect the stubs included in the installed
package and use them when asserting against the beancount package. Note that
many of the subpackages in the beancount package do not have stubs and `mypy`
will complain about the missing stubs. To disable this error on an unsupported
package, use the following syntax:
```python
from beancount.ops import validation # type: ignore
```
## Support
The following subpackages/modules are currently supported:
* `beancount.loader`
* `beancount.core.*`
* `beancount.query.numberify`
* `beancount.query.query`
* `beancount.query.query_compile`
* `beancount.query.query_execute`
## Contributing
Check out the [issues][2] for items needing attention or submit your own and
then:
1. [Fork the repo](https://github.com/jmgilman/beancount-stubs/fork)
2. Create your feature branch (git checkout -b feature/fooBar)
3. Commit your changes (git commit -am 'Add some fooBar')
4. Push to the branch (git push origin feature/fooBar)
5. Create a new Pull Request
[1]: https://github.com/beancount/beancount
[2]: https://github.com/jmgilman/beancount-stubs/issues
نیازمندی
| مقدار | نام |
|---|---|
| >=2.3.4 | beancount |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl beancount-stubs-0.1.3:
pip install beancount-stubs-0.1.3.whl
نصب پکیج tar.gz beancount-stubs-0.1.3:
pip install beancount-stubs-0.1.3.tar.gz