Skip to main content
# Gcloud functions params

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)

Source distribution for gcloud-functions-params 0.0.2
File Size Uploaded
gcloud-functions-params-0.0.2.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcloud-functions-params 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page