Skip to main content

AIS service discovery package for python3

Project description

ais-service-discovery-python

CodeQuality Publish stable

Cloud Application Framework

logo

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).
  • SQS (queue).

TODO

  • Lambda (request).
  • SQS (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ais_service_discovery-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ais_service_discovery-0.2.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file ais_service_discovery-0.2.0.tar.gz.

File metadata

  • Download URL: ais_service_discovery-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ais_service_discovery-0.2.0.tar.gz
Algorithm Hash digest
SHA256 930fb43003ebf7e1bd6e003421e887591af7b466a6dc854a26ddd4e643e3b9c2
MD5 1aa33aa6071cc4a237115ff548279ddf
BLAKE2b-256 73edc9b503a85187fa1f6e1b3b45b93d23ab3a401befbc519263870cc4be95b7

See more details on using hashes here.

File details

Details for the file ais_service_discovery-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ais_service_discovery-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ais_service_discovery-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c234cdf8c4b4e401e291703bb290af28fd73c2b2071573088d682135c25013
MD5 cd42289d767cffd07052ff3dbd3e85eb
BLAKE2b-256 4958e0fbf591ca964bfddb07f159cee9a963fdf6de3283923e3c22a74d259eec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page