Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vbalasu/pandas-gbq-layer
https://github.com/vbalasu/pandas-gbq-layer
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vbalasu/pandas-gbq-layer
- Owner: vbalasu
- Created: 2020-07-04T03:12:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T03:13:36.000Z (over 4 years ago)
- Last Synced: 2024-11-02T07:33:07.355Z (about 1 month ago)
- Language: Python
- Size: 69.4 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-layers - `vbalasu/pandas-gbq-layer` - gbq for reading and writing from/to Google BigQuery | `python3.7` | ![python37-layer-pandas-gbq](https://api.globadge.com/v1/badgen/aws/lambda/layer/latest-version/us-east-1/251566558623/python37-layer-pandas-gbq) | (Layers / Utilities)
README
# pandas-gbq-layer
This is an AWS Lambda layer that contains `pandas` and `pandas-gbq` for Python 3.7
You can include this layer in your Lambda functions by referencing the following ARN:
`arn:aws:lambda:us-west-2:251566558623:layer:python37-layer-pandas-gbq:1`
Note that this layer is available in `us-east-1` and `us-west-2` regions
You can then import libraries in your application. See example below for using in a Chalice app
app.py
```python
from chalice import Chalice
import pandas as pd
app = Chalice(app_name='pandas-gbq')@app.route('/')
def index():
return {'version': pd.__version__}
```.chalice/config.json
```json
{
"version": "2.0",
"app_name": "pandas-gbq",
"layers": ["arn:aws:lambda:us-west-2:251566558623:layer:python37-layer-pandas-gbq:1"],
"stages": {
"dev": {
"api_gateway_stage": "api"
}
}
}
```