Skip to main content

CLI tool for creating a serverles api with API Gateway and Cloud Functions

Project description

shopcloud-serverless-cli

Serverless API

install

$ pip install shopcloud-serverless

usage

$ serverless init
$ serverless gateway init
$ serverless services list
$ serverless services deploy hello_world
$ serverless gateway deploy

services

Create a new service endpoint for every path.

$ serverless serverless services create hello_world

Add the Endpoint in the api.yaml the operation_idmust be unqie and is the identifier for the library. You can change the <service-name>.yaml with the parameters

  • memory: memory in MB
  • runtime: runtime of the function "python310"

for development you can use the functions-framework

$ functions-framework --source="hello_world.py" --target main --debug --port=8080

then deploy the function

$ serverless serverless services deploy hello_world

and then deploy the gateway

$ serverless gateway deploy

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

shopcloud-serverless-1.0.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distributions

shopcloud_serverless-1.0.0-py3.11.egg (27.2 kB view hashes)

Uploaded Source

shopcloud_serverless-1.0.0-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page