AIS service discovery package for python3
Project description
ais-service-discovery-python
Cloud Application Framework
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).
TODO
- Lambda (
request) - SNS (
publish). // subscribe not supported by SNS. - SQS (
queue|listen), - Http (
request|call). - Fargate/ECS Task (
run).
Note:
This library requires Python 3.5 and above.
Examples:
Lambda Call
from ais_service_discovery import call
response=call('namespace', 'service', 'handler', {<Payload>})
print(response)
Lambda Async Call
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ais_service_discovery-0.0.9.tar.gz.
File metadata
- Download URL: ais_service_discovery-0.0.9.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d10b4f3d46e6d320be70bfea144c87e9b36abe39a0569546ff230493a42df8
|
|
| MD5 |
c6992c6643d565f8985e6d5b5fed220b
|
|
| BLAKE2b-256 |
4748d4c0dbaa14dc86b0acd41379db3218b3434e483092024597fc35fcab3c62
|
File details
Details for the file ais_service_discovery-0.0.9-py3-none-any.whl.
File metadata
- Download URL: ais_service_discovery-0.0.9-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7485871851d0dd0af5b8d78056ccd7d846cda1f0cfc135990d8afede3d8f8a52
|
|
| MD5 |
c2df759840425fe733117f10b5732cee
|
|
| BLAKE2b-256 |
9749d1e687005fbf3ddd25b23f888ba08e73e7a4872facae214c0a79da2dc908
|