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.2.tar.gz (2.8 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: find_aws_regions-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 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.2.tar.gz
Algorithm Hash digest
SHA256 d0b5f640ba434bc39e8125bf8549e0f05c4860e3aa45cd72bc19d9eadadab013
MD5 2629f147e7b576416b524a2b092d96cc
BLAKE2b-256 ddf31c3915aa8156c372b6c9d4b9d393bbd67e44fda870f2168ef135269d3f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for find_aws_regions-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21f45594983edef50af2e1f381f389b61898f3c3584036c7a6a3d0c59a7dcff8
MD5 7f4cac083f6aff925e03192331b5a870
BLAKE2b-256 874a19fc6acba493fe81737231ac4fada1169dd419b1f5c2c4d6d9cc95f28ba2

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