New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

find-aws-regions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-aws-regions

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

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

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'])

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc