nflex-connector-utils provides a suite of tools to produce data structures when implementing resources connector nflex modules.
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 479b9fcddeafc4a957e81bd86b8a3ee640cd23e0f6f7753da469872b45290244 |
|
MD5 | 6084735b9b2841c0d5a8619792f40fac |
|
BLAKE2b-256 | 049094ee5e834e3a521a00ff36833e07dd52a331c9020efbb0666d728b178813 |