package for manage params in python gcloud functions
## Install
```requirements.txt
gcloud-functions-params==0.0.2
```
## Http function
You can call the function sending arguments:
http://function-url?name=example
or sending json
```
curl http://function-url -H "Content-Type: application/json" -d '{"name": "example"}'
```
```python
from gcloud_functions_params import args_or_json_to_dict
def main(request):
params = args_or_json_to_dict(request)
```
## Pubsub function
you can send a json in the event message
message: '{"name": "example"}'
```python
from gcloud_functions_params import event_to_dict
def main(event, context):
params = event_to_dict(event)
```
Metadata
Release files for gcloud-functions-params 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gcloud-functions-params-0.0.2.tar.gz | 1.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcloud_functions_params-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / gcloud-functions-params-0.0.2.tar.gz
| Download URL | gcloud-functions-params-0.0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44f12fea64c2a3cfc13bf2d53fe9e22437ed1596ca250ce0630b51cd5b87db1e
|
|
BLAKE2b-256 checksum How to use checksums |
34b7cbb440ebdd24e4134f8f858321e0ec8dfebc975e08dd379902361f3d953f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Release files / gcloud_functions_params-0.0.2-py3-none-any.whl
| Download URL | gcloud_functions_params-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18119b2817e8af0029f9a5cebb36b4678d9c50cc6dc422796aecff70273059f7
|
|
BLAKE2b-256 checksum How to use checksums |
0d4edc5a1dc09fd976a126e50cf068f7feeb90f15743c1dbdab79112bb9912fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Security for gcloud-functions-params 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.