AIS service discovery package for python3
Project description
# ais-service-discovery-python
## Cloud Application Framework
![logo](https://raw.githubusercontent.com/peak-ai/ais-service-discovery-python/master/logo.png)
## Description
This repository interfaces Service Discovery, in this instance CloudMap, in order to locate and communicate with different services. As opposed to storing ARN’s in environment variables, this library will interface CloudMap to find a service by a user-friendly naming convention and will understand what ‘type’ of service you’ve requested and use the correct code to communicate/call that service.
## Services supported - Lambda (call). - SNS (publish)
## TODO - Lambda (request) - SQS (queue`|`listen), - Http (request`|`call). - Fargate/ECS Task (run).
## Note: This library requires Python 3.5 and above.
## Examples:
### Lambda Call
`python from ais_service_discovery import call response=call('namespace', 'service', 'handler', {<Payload>}) print(response) `
### Lambda Async Call
`python from ais_service_discovery import call response=call('namespace', 'service', 'handler', {<Payload>}, {'InvocationType': 'Event'}) print(response) `
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
Built Distribution
Hashes for ais_service_discovery-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95a49ad900598119bd08bc569bebecfeb10d86987c5667f3c274ee1e7e49380 |
|
MD5 | a30f0b418d4e8f946f6fd09f292d7262 |
|
BLAKE2b-256 | 915d5ac8b466e9f59dc772a9f0aca3390b9ab2977ad4293515fcc5b05a94ce10 |
Hashes for ais_service_discovery-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578b6c491e7d859f996bd04fa851d9509d069604ef27dee90fe5cb355839fd1f |
|
MD5 | c0f3c3a729018342123af6f70a30a763 |
|
BLAKE2b-256 | 9641cb2a2748bb142be752bf307dd97f3abed8b4bd6de9442eb46bfb0b54d8cf |