nflex-connector-utils provides a suite of tools to produce data structures when implementing resources connector nflex modules. See github_ for the documentation. .. _github: https://github.com/ntt-nflex/nflex_connector_utils
Project description
# Nflex Connector Utils
This python package provides a suite of tools to produce data structures when implementing resources connector nflex modules.
# 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'),
])
```
# Development
A Makefile has been included to do most common development things.
```sh
make clean
make setup
make test
make package
make upload
```
This python package provides a suite of tools to produce data structures when implementing resources connector nflex modules.
# 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'),
])
```
# Development
A Makefile has been included to do most common development things.
```sh
make clean
make setup
make test
make package
make upload
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for nflex-connector-utils-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3031edfa06b08e431046514c984e84405f55464d79ae2ff0cfc039cb376d204c |
|
MD5 | 99ff9e113ba00b4b9ede095e437be5e2 |
|
BLAKE2b-256 | edbf63f9a6b2ca2c55d7f13a1f1dbd44f2cf8c9966992089c2253ec8a1917805 |