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

which-cloud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

which-cloud

Given an ip address, return which cloud provider it belongs to.

  • 1.0.2
  • PyPI
  • Socket score

Maintainers
1

which-cloud

Given an ip address, return which cloud provider it belongs to.

Usage

from which_cloud import WhichCloud, Providers

wc = WhichCloud()
wc.is_ip('52.94.76.10') # Providers.AWS
wc.is_ip('104.214.20.0') # Providers.AZURE
wc.is_ip('35.185.160.160') # Providers.GCP

Preprocess

Convert raw ip ranges of different platforms into a single pickle file to speed up data load time.

Data Sources

GCP

  • document: https://cloud.google.com/compute/docs/faq#find_ip_range
  • data: https://www.gstatic.com/ipranges/cloud.json

AWS

Azure

Digital Ocean

Not implemented yet.

No official documented ip ranges (thread)

IBM

Not implemented yet.

Keywords

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