functions-framework-python
FaaS (Function as a service) framework for writing portable Python functions (by GoogleCloudPlatform)
python-docs-samples
Code samples used on cloud.google.com (by GoogleCloudPlatform)
functions-framework-python | python-docs-samples | |
---|---|---|
6 | 17 | |
820 | 7,029 | |
1.5% | 0.8% | |
7.8 | 9.9 | |
14 days ago | about 3 hours ago | |
Python | Jupyter Notebook | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
functions-framework-python
Posts with mentions or reviews of functions-framework-python.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-17.
-
Cloud Functions or cloud run job/service triggered by pubsub without HTTP
I need to run a function triggered by google pub/sub. The code needs a C library (gdal) which isn't available in cloud functions. To me its weird that cloud run functions in the end run as a docker container that is built for me, but I can't provide my own docker container for it. I can provide my own docker container with cloud run, and I can trigger a cloud run service from a pub/sub message. With a cloud run job that isn't possible. But for a cloud run service, first it needs a daemon to be reachable to check whether it started up (either on a tcp port or http), but I don't want to run a daemon. I just want to handle a single pub/sub message. Also, the eventarc trigger for pub/sub translates the pub/sub message into an HTTP request, instead of just calling a function with an object, like is possible with the functions framework.
-
How am I supposed to use functions-framework to test my cloud functions?
Which language do you use? I worked with Python Functions Framework and there is a completely undocumented option to use a test client similar to the one offered by web frameworks such as FastAPI. Google uses it to write their own tests for the Python Functions Framework. You can see it for example here GitHub Issue mentioning the test client
-
My Cloud Resume Challenge
Host a static website on Google Coogle Storage Functions Framework for Python Automated static website publishing with Coogle Build Invalidate cached content Managing infrastructure as code with Terraform, Coogle Build, and GitOps Export your Google Google resources into Terraform format
-
Insight on the cloud function environment?
The library that wraps the function is called the Functions Framework. There is one for each supported language e.g. python. They are all open source.
-
QUESTION: how to run google functions locally for testing?
I used to put a main function to test it. Now I just use their framework then curl. For ex: framework for python https://github.com/GoogleCloudPlatform/functions-framework-python
-
Cron-ing in the Cloud: How to use Cloud Scheduler to automate routine tasks
For some bonus content, did you know you can test your cloud functions locally? You can use the Python Functions Framework to run your Cloud Function on your machine and experiment before deploying!
python-docs-samples
Posts with mentions or reviews of python-docs-samples.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-24.
-
Gemini API 102: Next steps beyond "Hello World!"
QuickStart code
-
Moving my app to Google cloud
Thanks, this is helpful. Do you have any github repo that I can follow? I have found this and this. There are a million folders within both of them. Even after narrowing it down after your kind suggestion there is still so much material out there and it's a bit bewildering for a newbie.
-
I'm starting to work on a project on HTR on natural museum artefacts. I need guidance on how to go about it, and I'd also need to know If my ideas are feasible.
Python code samples : https://github.com/GoogleCloudPlatform/python-docs-samples/blob/HEAD/vision/snippets/detect/detect.py
- Cloud Functions + Pub/Sub + Dataproc
- Does not have the required permissions to perform the operation and may have invalid credentials
-
free app projects I can deploy on GCP
Python
-
GCP Project Ideas
Google has a lot of sample projects that you can play around with/start with. For example, this is a link to sample Apps based on Python from Google. They also have similar links for other languages - PHP, NodeJS.
-
Is there a repository of GCP script examples?
For example, here is their repo with Python examples https://github.com/GoogleCloudPlatform/python-docs-samples
-
Which Should I Choose: App Engine or Firebase?
- I would say that building a basic web app in Python is not complicated. Worst case, you can start off with the template of an already working App and then make changes as you deem fit. Google has sample apps. If those are too complicated, our App has templates for `````'Hello World' that can get you up and running. We also have a blog series on building a blogging app on GAE
- QUESTION: HTTP Triggered Google Cloud Functions?
What are some alternatives?
When comparing functions-framework-python and python-docs-samples you can also consider the following projects:
nodejs-docs-samples - Node.js samples for Google Cloud Platform products.
python-firestore
professional-services - Common solutions and tools developed by Google Cloud's Professional Services team. This repository and its contents are not an officially supported Google product.
java-docs-samples - Java and Kotlin Code samples used on cloud.google.com
documentation - A general GCP documentation, FAQ, and how-to repository, maintained by the /r/googlecloud community on Reddit.