cognite-extractor-utils-4.3.1
توضیحات
Utilities for easier development of extractors for CDF
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cognite-extractor-utils-4.3.1 |
| نام | cognite-extractor-utils |
| نسخه کتابخانه | 4.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mathias Lohne |
| ایمیل نویسنده | mathias.lohne@cognite.com |
| آدرس صفحه اصلی | https://github.com/cognitedata/python-extractor-utils |
| آدرس اینترنتی | https://pypi.org/project/cognite-extractor-utils/ |
| مجوز | Apache-2.0 |
<a href="https://cognite.com/">
<img src="https://github.com/cognitedata/cognite-python-docs/blob/master/img/cognite_logo.png" alt="Cognite logo" title="Cognite" align="right" height="80" />
</a>
Cognite Python `extractor-utils`
================================
[](https://github.com/cognitedata/python-extractor-utils/actions)
[](https://cognite-extractor-utils.readthedocs-hosted.com/en/latest/?badge=latest)
[](https://codecov.io/gh/cognitedata/python-extractor-utils)
[](https://pypi.org/project/cognite-extractor-utils)

[](LICENSE)
[](https://github.com/ambv/black)
The `extractor-utils` package is an extension of the Cognite Python SDK intended to simplify the development of data
extractors or other integrations for Cognite Data Fusion.
Documentation is hosted [here](https://cognite-extractor-utils.readthedocs-hosted.com/en/latest/), including a
[quickstart tutorial](https://cognite-extractor-utils.readthedocs-hosted.com/en/latest/quickstart.html).
The changelog is found [here](./CHANGELOG.md).
## Overview
The best way to start a new extractor project is to use the `cogex` CLI. You can install that from PyPI:
``` bash
pip install cognite-extractor-manager
```
To initialize a new extractor project, run
``` bash
cogex init
```
in the directory you want your extractor project in. The `cogex` CLI will prompt you for some information about your
project, and then set up a poetry environment, git repository, commit hooks with type and style checks and load a
template.
### Extensions
Some source systems have a lot in common, such as RESTful APIs or systems exposing as MQTT. We therefore have extensions
to `extractor-utils` tailroed to these protocols. These can be found in separate packages:
* [REST extension](https://github.com/cognitedata/python-extractor-utils-rest)
* [MQTT extension](https://github.com/cognitedata/python-extractor-utils-mqtt)
## Contributing
The package is open source under the [Apache 2.0 license](./LICENSE), and contribtuions are welcome.
This project adheres to the [Contributor Covenant v2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/)
as a code of conduct.
### Development environment
We use [poetry](https://python-poetry.org) to manage dependencies and to administrate virtual environments. To develop
`extractor-utils`, follow the following steps to set up your local environment:
1. [Install poetry](https://python-poetry.org/docs/#installation) if you haven't already.
2. Clone repository:
```
$ git clone git@github.com:cognitedata/python-extractor-utils.git
```
3. Move into the newly created local repository:
```
$ cd python-extractor-utils
```
4. Create virtual environment and install dependencies:
```
$ poetry install
```
### Code requirements
All code must pass [black](https://github.com/ambv/black) and [isort](https://github.com/timothycrosley/isort) style
checks to be merged. It is recommended to install pre-commit hooks to ensure this locally before commiting code:
```
$ poetry run pre-commit install
```
Each public method, class and module should have docstrings. Docstrings are written in the [Google
style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings). Please include unit and/or
integration tests for submitted code, and remember to update the [changelog](./CHANGELOG.md).
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0,<2.0.0 | arrow |
| >=5.8,<6 | cognite-sdk |
| >=0.110.0,<0.111.0 | cognite-sdk-experimental |
| >=1.6.0,<2.0.0 | dacite |
| >=5.1.1,<6.0.0 | decorator |
| >=1.3.0,<2.0.0 | jq |
| >=1.3.0,<2.0.0 | jq |
| >=9.0.0,<10.0.0 | more-itertools |
| >0.7.0,<=1.0.0 | prometheus-client |
| >=5.7.0,<6.0.0 | psutil |
| >=1.0.0,<2.0.0 | python-dotenv |
| >=5.3.0,<7 | pyyaml |
| >=3.7.4,<5 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.0,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl cognite-extractor-utils-4.3.1:
pip install cognite-extractor-utils-4.3.1.whl
نصب پکیج tar.gz cognite-extractor-utils-4.3.1:
pip install cognite-extractor-utils-4.3.1.tar.gz