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)

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

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.1.1.tar.gz (4.4 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.1.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ais_service_discovery-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for ais_service_discovery-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1e62c32e1a062cb80262504e60323d21c70aacc1278a6181eeae494ebe102f76
MD5 81b6a47b7a44122cc346cc0f109c7ffd
BLAKE2b-256 16797e8ea902574d464e5419536f221da50ee016ef93539455e55b68f05a2766

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ais_service_discovery-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for ais_service_discovery-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 daf39c5373174e03d136de40e8a47210e9e4b1d6b75c3e7f883292f0e9c9d7d8
MD5 e34a9fe1375e34be2103307725e368c0
BLAKE2b-256 bacd19e391249355657268e7dc01b36fd2d6d1473fc8fa3a081bd356685cdeac

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