semvec/pypi-packages huggingface dataset:
gcp-functions-emulator 0.1.1
Emulator for Google Cloud Functions to run in local
License: MIT

# Google Cloud Functions Python Emulator

![downloads](https://img.shields.io/pypi/dm/gcp-functions-emulator.svg?style=flat-square)
![build](https://gitlab.com/divisadero/cloud-functions-python-emulator/badges/master/pipeline.svg?style=flat-square)

This module tries to emulate the environment in Google Cloud Functions for
Python. It serves the given function on the given module.

For example. lets imagine we have the following cloud function
```python
# mycloudfunction.py
def api(request):
  return 'important data'
```
To emulate we have to call it like so:
```
$ gcpfemu <path/to/file.py> <function_name>
```
For example, with the code above we will call it:
```
$ gcpfemu mycloudfunction.py api
```
And to access the data we can use for example curl:
```
$ curl localhost:5000/api
important data
```

If you want to run the emulator programatically you can do drun the server 
from a terminal, you have to disable the debug. It is
disabled by default thoug. Flask looks for file changes, but in interactive
terminal there's no file.
```python
from gcpfemu import http 
port = 1234 # use a different port
module_path = 'mycloudfunction.py' # set the path to the code itself
function_name = 'api' # set the function name
http(module_path, function_name, port, debug) # load and serve the function
```
AWSEnums 0.0.1.dev13
Python module that contains a list of enums useful for your applications.
License: MIT
Keywords: AWS enums

# AWSenums
Python module that contains a list of enums useful for your applications.

# How To package and distribute:
Based on the [official packaging documentation of python](https://packaging.python.org/tutorials/distributing-packages/#pure-python-wheels):
* ```python setup.py sdist```
* ```python setup.py bdist_wheel```
* ```gpg --detach-sign -a dist/AWSEnums-X.X.X.tar.gz```
* ```twine upload dist/AWSEnums-X.X.X.tar.gz dist/AWSEnums-X.X.X.tar.gz.asc```

# How To build the instances type enum:
Actually we can create it manually with the tool: AWSEnums/tooling/generate_instances_types.py only run the command:

```pipenv run python tooling/generate_instances_types.py -r us-east-1 -p account_alias```

or if you prefer use the aws environment variables (AWS_DEFAULT_REGION, AWS_PROFILE or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) use:

```pipenv run python tooling/generate_instances_types.py```


**NOTE:** Now the aws pricing api only works on us-east-1.