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 MBruntime: runtime of the function "python312"trigger: http or pubsub the value is the name of thetopicdependencies: 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)
| File | Size | Uploaded | |
|---|---|---|---|
| shopcloud_serverless-4.36.0.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|