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
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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 191f2a7a6cd05089da2a642b14323bd384f55f2e27dd89d1a01bc5df86c443a0 |
|
MD5 | 3c47abd98f2ff4f9ee4fb67a2b3af249 |
|
BLAKE2b-256 | 7caf5e92472a9eb6bd61c6aece8dd3ff833935aac0e885e958e237ca94b409c0 |
Close
Hashes for shopcloud_serverless-1.0.0-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed9a8c2423bc429ff1c03a275fd7b236339100b2f76d86a7a31e4ce97d11b0f |
|
MD5 | ab8d5ea4ec15be3943175fbe99f0ee06 |
|
BLAKE2b-256 | 8906d6e412d815eb8c379dd4d5c0dc602a1cb92ddab74b7bd358d22facd8a957 |
Close
Hashes for shopcloud_serverless-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ec1bed0d4e8988ecc8f44166251ba530298b73b055c6d53c84c2d6ce5b0845 |
|
MD5 | 03325206de0518da437d9774e34b515f |
|
BLAKE2b-256 | ba4cd3ba825954c774e2a13532e0b5cc786b8eab9816a51fa636c8ae53ec8b4f |