![alt text](https://travis-ci.org/ntt-nflex/nflex_connector_utils.svg?branch=master)
# Nflex Connector Utils
This python package provides a suite of tools to produce data structures when implementing resources connector nflex modules. See the documentation on [readthedocs.org](http://nflex-connector-utils.readthedocs.io/en/latest/index.html).
# Installation
```sh
pip install nflex-connector-utils
```
# Example
This example returns two servers.
```python
from nflex_connector_utils import Server, serialize_list
def get(event, context):
return serialize_list([
Server(id='server-1', name='Server 1'),
Server(id='server-2', name='Server 2'),
])
```
More examples are present on [readthedocs.org](http://nflex-connector-utils.readthedocs.io/en/latest/index.html).
# Development
A Makefile has been included to do most common development things.
```sh
make clean
make setup
make doc
make test
make package
```
# Package Release procedure
Versioneer is used for releasing the package. To release one, just create a tag and run:
```sh
git push origin
git tag vx.y.z
git push origin vx.y.z
make upload
```
# Testing
Just run tox
```sh
tox
```
PyPI 官网下载 | nflex-connector-utils-0.1.26.tar.gz
版权申诉
39 浏览量
2022-01-28
21:28:58
上传
评论
收藏 29KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+