Skip to main content

Serverless CLI

Serverless tool for the Google Cloud. You need the gcloud installed.

Install

$ pip install shopcloud_serverless
$ serverless init

Jobs

$ serverless jobs init
$ serverless jobs create <job-name>
$ serverless jobs deploy <job-name>
$ serverless jobs run <job-name>

Secrets: Secrets can you write in the .env.temp file with the SecretHub syntax.

Gateway

The main entrypoint for you serverless endpoint api is the gateway.

Init the gateway with the function and then deploy the endpoints and then you can deploy the api.yaml file with gateway deploy endpoint.

$ serverless gateway init
$ serverless gateway deploy

Endpoints

Create a new endpoint for every path.

$ serverless endpoints init
$ serverless endpoints create health

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

  • memory: memory in MB
  • runtime: runtime of the function "python312"
  • trigger: http or pubsub the value is the name of the topic
  • dependencies: as string array

for development in the background we use functions-framework

$ serverless endpoints serve health

run the integration test suite

$ serverless endpoints test health

then deploy the function

$ serverless endpoints deploy health

Metadata

Release files for shopcloud-serverless 4.36.0

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

Source distribution (sdist)

Source distribution for shopcloud-serverless 4.36.0
File Size Uploaded
shopcloud_serverless-4.36.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shopcloud-serverless 4.36.0
File Interpreter ABI Platform
shopcloud_serverless-4.36.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.2 kB

Release files / shopcloud_serverless-4.36.0.tar.gz

Download URL shopcloud_serverless-4.36.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ca3c4b7ee7c4a3f48679d7e60d840befb10e71c06d35d2b84a9df25502694c0a
BLAKE2b-256 checksum
How to use checksums
7d380c47cc59575fcf4f4076913e843cfd2b843a07e774c1c78773f671db9720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / shopcloud_serverless-4.36.0-py3-none-any.whl

Download URL shopcloud_serverless-4.36.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eed4f24a702d3df2cb2e8f5f4636f186e2cd67f58a38059fe161466443afacc6
BLAKE2b-256 checksum
How to use checksums
14b8ddf3a3880a2759c66c742aad19504b1eb781e83e508456484a3aa7e5cbdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

This release

4.36.0 This release

2 release files

4.35.0

2 release files

4.33.0

2 release files

4.32.0

2 release files

4.31.0

2 release files

4.30.0

2 release files

4.28.0

2 release files

4.27.0

2 release files

4.26.0

2 release files

4.24.0

2 release files

4.23.0

2 release files

4.22.0

2 release files

4.21.0

2 release files

4.20.0

2 release files

4.19.0

2 release files

4.18.0

2 release files

4.17.0

2 release files

4.16.0

2 release files

4.15.0

2 release files

4.14.0

2 release files

4.13.0

2 release files

4.12.0

2 release files

4.11.0

2 release files

4.10.0

2 release files

4.9.0

2 release files

4.8.0

2 release files

4.7.0

2 release files

4.6.0

2 release files

4.5.0

2 release files

4.3.0

3 release files

4.2.0

3 release files

4.1.0

3 release files

4.0.0

3 release files

3.2.0

3 release files

3.1.0

3 release files

3.0.0

3 release files

2.1.0

3 release files

2.0.0

3 release files

1.1.0

3 release files

1.0.0

3 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