Skip to main content

cloud-products

pypi Version Latest Tag Build Dependencies

A package for getting cloud products and product descriptions from a cloud provider website with cache support.

Currently supports getting AWS product information from https://aws.amazon.com/products

GCP and Azure product information will be added in time.

Install from PyPi

pip install cloud-products

Example 1: List AWS products

from cloud_products.aws import AwsCrawler
for product in AwsCrawler().get_products():
    print(f"{product.code}: {product.name}: {product.desc}")

Example output:

alexaforbusiness: Alexa for Business: Empower your Organization with Alexa
amazon-mq: Amazon MQ: Managed Message Broker for ActiveMQ
amplify: AWS Amplify: Build and deploy mobile and web applications
api-gateway: Amazon API Gateway: Build, Deploy, and Manage APIs
...

Example 2: Get product descriptions as a list of lines

from cloud_products.aws import AwsCrawler
cloud_products = AwsCrawler()
product = cloud_products.get_products()[0]
lines = cloud_products.get_product_text(product)
print(lines[4])

Example output:

Alexa for Business is a service that enables organizations and employees to use Alexa to ...

Example 3: Usage to get matching product(s):

from cloud_products import aws
cloud_products = aws.AwsCrawler()
sagemaker_products = cloud_products.get_products_matching("sagemaker")
sagemaker_description = cloud_products.get_product_text(sagemaker_products[0])
print(sagemaker_description[3])

Example output:

Amazon SageMaker is a fully managed service that provides every developer and data scientist with ...

Example 4: Save product descriptions and FAQ pages to files:

from cloud_products import aws
cloud_products = aws.AwsCrawler()
for product in cloud_products.get_products():
    print(f"Saving {product.name}")
    cloud_products.save_product(product, output_path)
    cloud_products.save_faq(product, output_path)

Example output:

Saving Alexa for Business
Saving Amazon MQ
Saving AWS Amplify
Saving Amazon API Gateway
...

Example 5: Get Pandas dataframe of products:

Note: requires the optional pandas package to be installed.

This dataframe has the product name, code, url and full descriptions.

from cloud_products.aws import AwsCrawler
df = AwsCrawler().get_products_as_df()
print(df)

Example output:

                   name            std_name              code  ...                          seed_url                                               desc                                       product_text
0    Alexa for Business  alexa for business  alexaforbusiness  ...  https://aws.amazon.com/products/               Empower your Organization with Alexa  Alexa for Business Use Alexa for work Get Star...
1             Amazon MQ              aws mq         amazon-mq  ...  https://aws.amazon.com/products/                     Managed Message Broker Service  Amazon MQ Fully managed service for open sourc...
2           AWS Amplify         aws amplify           amplify  ...  https://aws.amazon.com/products/       Build and deploy mobile and web applications  AWS Amplify Fastest, easiest way to build mobi...
3    Amazon API Gateway     aws api gateway       api-gateway  ...  https://aws.amazon.com/products/                     Build, Deploy, and Manage APIs  Amazon API Gateway Create, maintain, and secur...
4          AWS App Mesh        aws app mesh          app-mesh  ...  https://aws.amazon.com/products/                  Monitor and control microservices  AWS App Mesh Application-level networking for ...

Cloud Products is distributed under the MIT license.

Metadata

Release files for cloud-products 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloud-products 1.1.4
File Size Uploaded
cloud-products-1.1.4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloud-products 1.1.4
File Interpreter ABI Platform
cloud_products-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / cloud-products-1.1.4.tar.gz

Download URL cloud-products-1.1.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2e7148fc9265199ae1a689adef3df640082ae8b01513e344c0ca6bd123582f90
BLAKE2b-256 checksum
How to use checksums
ca65c29c7e19731ddba5f476f92c1cc9648c331f4c9bdc2a06906976590ae5a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.7

Release files / cloud_products-1.1.4-py3-none-any.whl

Download URL cloud_products-1.1.4-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39c0b17e3de3224a1509d482882e4fe5c7b8d3f3ea6d2808f5e13173dd08394d
BLAKE2b-256 checksum
How to use checksums
1c3b4affc2b29e63c77ed601e11c0ab432fc89881624df9e0cadbcc35ccb3360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.7

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.9.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page