centraldogma-python-0.3.0
توضیحات
Python client library for Central Dogma
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | centraldogma-python-0.3.0 |
| نام | centraldogma-python |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Central Dogma Team |
| ایمیل نویسنده | dl_centraldogma@linecorp.com |
| آدرس صفحه اصلی | https://github.com/line/centraldogma-python |
| آدرس اینترنتی | https://pypi.org/project/centraldogma-python/ |
| مجوز | Apache License 2.0 |
# Central Dogma client in Python
<a href="https://pypi.org/project/centraldogma-python/">
<img src="https://badge.fury.io/py/centraldogma-python.svg" alt="Package version">
</a>
Python client library for [Central Dogma](https://line.github.io/centraldogma/)
## Install
```
$ pip install centraldogma-python
```
## Getting started
```pycon
>>> from centraldogma.dogma import Dogma
>>> dogma = Dogma("https://dogma.yourdomain.com", "token")
>>> dogma.list_projects()
[]
```
Please see [`examples` folder](https://github.com/line/centraldogma-python/tree/main/examples) for more detail.
---
## Development
### Tests
#### Unit test
```
$ pytest
```
#### Integration test
1. Run local Central Dogma server with docker-compose
```
$ docker-compose up -d
```
2. Run integration tests
```
$ INTEGRATION_TEST=true pytest
```
3. Stop the server
```
$ docker-compose down
```
### Lint
- [PEP 8](https://www.python.org/dev/peps/pep-0008)
```
$ black .
```
### Documentation
- [PEP 257](https://www.python.org/dev/peps/pep-0257)
#### To build sphinx at local
```
$ pip install sphinx sphinx_rtd_theme
$ cd docs && make html
```
نیازمندی
| مقدار | نام |
|---|---|
| - | dataclasses-json |
| - | httpx[http2] |
| - | marshmallow |
| - | pydantic |
| - | python-dateutil |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl centraldogma-python-0.3.0:
pip install centraldogma-python-0.3.0.whl
نصب پکیج tar.gz centraldogma-python-0.3.0:
pip install centraldogma-python-0.3.0.tar.gz