Skip to main content

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)

Metadata

Release files for ais-service-discovery 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ais-service-discovery 0.2.0
File Size Uploaded Provenance Actions
ais_service_discovery-0.2.0.tar.gz 5.1 kB Without provenance Details for ais_service_discovery-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ais-service-discovery 0.2.0
File Interpreter ABI Platform Actions
ais_service_discovery-0.2.0-py3-none-any.whl Python 3 none any Details for ais_service_discovery-0.2.0-py3-none-any.whl

Total release size: 23.2 kB

Release files / ais_service_discovery-0.2.0.tar.gz

Download URL ais_service_discovery-0.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
930fb43003ebf7e1bd6e003421e887591af7b466a6dc854a26ddd4e643e3b9c2
BLAKE2b-256 checksum
How to use checksums
73edc9b503a85187fa1f6e1b3b45b93d23ab3a401befbc519263870cc4be95b7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ais_service_discovery-0.2.0-py3-none-any.whl

Download URL ais_service_discovery-0.2.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6c234cdf8c4b4e401e291703bb290af28fd73c2b2071573088d682135c25013
BLAKE2b-256 checksum
How to use checksums
4958e0fbf591ca964bfddb07f159cee9a963fdf6de3283923e3c22a74d259eec
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for ais-service-discovery 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page