Skip to main content

Find the closest/best AWS region from your code bassed on latency

Project description

py-find-aws-region

Python package to choose the best AWS region based on latency.

Basic Usage

from find_aws_regions import get_regions_by_latency

results = get_regions_by_latency()

print(results)

get_regions_by_latency() will return a list of dictionaries with the following keys:

  • region_name: The AWS region code (e.g. us-east-1)
  • latency: The latency in milliseconds (e.g. 47.345)

Limit the tested regions

You can limit the tested regions by passing a list of region codes to get_regions_by_latency():

from find_aws_regions import get_regions_by_latency

results = get_regions_by_latency(['us-east-1', 'us-west-2'])

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

find_aws_regions-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

find_aws_regions-0.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file find_aws_regions-0.0.3.tar.gz.

File metadata

  • Download URL: find_aws_regions-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for find_aws_regions-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1476f824e0e0ffad81d1d1eae6c4181285b93fb95d0d0266f79fed6db6baab19
MD5 80ad42b04a60bb1fa39a20ad8031a0f5
BLAKE2b-256 7cd9c065b2e414ed30b7dad70c41a88c4c646e42f0fca9469197c2a313afe99b

See more details on using hashes here.

File details

Details for the file find_aws_regions-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for find_aws_regions-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5df8a677af5a79a6541ce11037fb5ea937a0ad9dabaf5ae8a719d3d9dd7bf84
MD5 0da40d552b6795f140830cf7d0e702d4
BLAKE2b-256 7a360131e590718979583f7e08b99050eb042a52cca733d21ce24cd76b9b0bd4

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