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_id
must be unqie and is the identifier for the library.
You can change the <service-name>.yaml
with the parameters
memory
: memory in MBruntime
: 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
FAQ
special dependencies
add to the service.yaml file the dependencies
memory: 128MB
dependencies:
- "google-cloud-bigquery"
Anforderung:
- erst api.yaml erzeugen dann endpunkte anlegen
- memorystore in project anlegen können
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for shopcloud-serverless-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec9ec30aaa90c5764807f9d47b284c13cfa6366cc58a5d2609d2ef5b2caa07b8 |
|
MD5 | 97c5169ee3c648a7e91d74ebbe4c8910 |
|
BLAKE2b-256 | c74db62bebdbebe3cb2de66ecb30dfcaa8e56c230f602aff520e7deab3803e96 |
Close
Hashes for shopcloud_serverless-1.1.0-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 950f8d17f3e4d7edc1dab9bc88807d5c1f29a428f58044b85619a19a10272c79 |
|
MD5 | 002f38f35af464640f2da269cf96ebcc |
|
BLAKE2b-256 | 3e8580c8a1b683875e47ff0c44e01bc765ccc6604029251775278011397023ad |
Close
Hashes for shopcloud_serverless-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828d7ee876eb8720d5e0fa1e3edf7a5d083ec6029d37487f131f1b504b645ec7 |
|
MD5 | 4e72b8e6cddbecac88a39b74bbfe2ea7 |
|
BLAKE2b-256 | e1a661ebcc479a93aeb8cfa8939c2586d12444537f572bb94d22c38db43b5ee4 |