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.36.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.36.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shopcloud_serverless-4.36.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.16

File hashes

Hashes for shopcloud_serverless-4.36.0.tar.gz
Algorithm Hash digest
SHA256 ca3c4b7ee7c4a3f48679d7e60d840befb10e71c06d35d2b84a9df25502694c0a
MD5 44daa1e24c4757e28c1a2c4cef4e313d
BLAKE2b-256 7d380c47cc59575fcf4f4076913e843cfd2b843a07e774c1c78773f671db9720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shopcloud_serverless-4.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eed4f24a702d3df2cb2e8f5f4636f186e2cd67f58a38059fe161466443afacc6
MD5 7b63088a032cf023aefcd7b06186cc87
BLAKE2b-256 14b8ddf3a3880a2759c66c742aad19504b1eb781e83e508456484a3aa7e5cbdc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.36.0 This release

2 files

4.35.0

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