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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for find_aws_regions-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5df8a677af5a79a6541ce11037fb5ea937a0ad9dabaf5ae8a719d3d9dd7bf84 |
|
MD5 | 0da40d552b6795f140830cf7d0e702d4 |
|
BLAKE2b-256 | 7a360131e590718979583f7e08b99050eb042a52cca733d21ce24cd76b9b0bd4 |