← 返回首页
serverless-examples/openwhisk-python-simple at master · localstack/serverless-examples · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 
 
 master
Top

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
View all files

README.md

Serverless Boilerplate - OpenWhisk - Python

Make sure serverless is installed. See installation guide.

You will also need to set up your OpenWhisk account credentials using environment variables or a configuration file. Please see the this guide for more information.

1. Install Project Dependencies

npm install in this directory to download the modules from package.json.

2. Deploy

serverless deploy or sls deploy. sls is shorthand for the Serverless CLI command

Serverless: Packaging service... Serverless: Compiling Functions... Serverless: Compiling API Gateway definitions... Serverless: Compiling Rules... Serverless: Compiling Triggers & Feeds... Serverless: Deploying Functions... Serverless: Deployment successful! Service Information platform: openwhisk.ng.bluemix.net namespace: _ service: python-service actions: python-service-dev-greeting

3. Invoke deployed function

serverless invoke --function greeting or serverless invoke -f greeting

-f is shorthand for --function

In your terminal window you should see the response from Apache OpenWhisk

$ serverless invoke -f greeting { "greeting": "Hello stranger!" } $ serverless invoke -f greeting -d '{"name": "James"}' { "greeting": "Hello James!" }

For more information on the Serverless OpenWhisk plugin, please see the project repository: https://serverless.com/framework/docs/providers/openwhisk/guide/credentials/.

Footer

© 2026 GitHub, Inc.