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

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-4.35.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shopcloud_serverless-4.35.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file shopcloud_serverless-4.35.0.tar.gz.

File metadata

  • Download URL: shopcloud_serverless-4.35.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for shopcloud_serverless-4.35.0.tar.gz
Algorithm Hash digest
SHA256 e34b51bdd287a26fef6c36dbb5d301ee2fdf4f5428a9bce8bd824769da5c633b
MD5 488abd66d53ce8b83396e1c15edd9636
BLAKE2b-256 7652c8f95f6a5acc428852d65b9bdd80fa6c7f1b9bd5a9350ab7de1ba63c3a92

See more details on using hashes here.

File details

Details for the file shopcloud_serverless-4.35.0-py3-none-any.whl.

File metadata

File hashes

Hashes for shopcloud_serverless-4.35.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf92c5c2ac9d5210fe755ed13cd07ebe9fd5c68844175b48994526e3fdc2d1c
MD5 d63da1abf6e4ca02a7e1d2dc4fdd5606
BLAKE2b-256 370412e16ab33982a291ead41763e49cc67327f7a4c518e17bd1e0117eb45731

See more details on using hashes here.

Release history Release notifications | RSS feed

4.36.0

2 files

This release

4.35.0 This release

2 files

4.34.0

2 files

4.33.0

2 files

4.32.0

2 files

4.31.0

2 files

4.30.0

2 files

4.29.0

2 files

4.28.0

2 files

4.27.0

2 files

4.26.0

2 files

4.25.0

2 files

4.24.0

2 files

4.23.0

2 files

4.22.0

2 files

4.21.0

2 files

4.20.0

2 files

4.19.0

2 files

4.18.0

2 files

4.17.0

2 files

4.16.0

2 files

4.15.0

2 files

4.14.0

2 files

4.13.0

2 files

4.12.0

2 files

4.11.0

2 files

4.10.0

2 files

4.9.0

2 files

4.8.0

2 files

4.7.0

2 files

4.6.0

2 files

4.5.0

2 files

4.3.0

3 files

4.2.0

3 files

4.1.0

3 files

4.0.0

3 files

3.2.0

3 files

3.1.0

3 files

3.0.0

3 files

2.1.0

3 files

2.0.0

3 files

1.1.0

3 files

1.0.0

3 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