Spaces:
Sleeping
Sleeping
File size: 789 Bytes
1d924fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
---
jupytext:
formats: md:myst
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.2
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---
```{code-cell} ipython3
import ibis
from ibis import _
from minio import Minio
import streamlit as st
from datetime import timedelta
```
```{code-cell} ipython3
# Get signed URLs to access license-controlled layers
key = st.secrets["MINIO_KEY"]
secret = st.secrets["MINIO_SECRET"]
client = Minio("minio.carlboettiger.info", key, secret)
parquet = client.get_presigned_url(
"GET",
"shared-tpl",
"tpl.parquet",
expires=timedelta(hours=2),
)
```
```{code-cell} ipython3
con = ibis.duckdb.connect()
df = con.read_parquet(parquet)
```
|