semvec/pypi-packages huggingface dataset:
streamlit-auth0-ts 0.2.1
Quickly add Auth0 authentication to your Streamlit app.
Requires Python: >=3.7

# Welcome to Auth0-Streamlit :forked:

**The fastest way to provide comprehensive login inside Streamlit**

_Updated to latest auth0 sdk_

This is a fork of the original [onradbez/streamlit-auth0@c5e5666](https://github.com/conradbez/streamlit-auth0#c5e5666). Thanks to the original author for the great work!

![Example of Streamlit-Auth0|635x380](demo.gif?raw=true)

## Installation

`pip install streamlit-auth0-ts`

## Setup

- Register for Auth0
- Create a Single Page Application and navigate to the "settings" tab
- set your callback url's to `http://localhost:8501/component/auth0_component.login_button/index.html` assuming you're running on localhost or `https://YOUR_DOMAIN/component/auth0_component.login_button/index.html` if you're deploying
- Set your Web Origin to `http://localhost:8501` or `http://YOUR_DOMAIN`
- Copy `client_id` and `domain` from this page
- Follow example below

## An example

On Auth0 website start a "Single Page Web Application" and copy your client-id / domain (of form xxxx.us.auth0.com) into code below.

```
from auth0_component import login_button
import streamlit as st

clientId = "...."
domain = "...."

user_info = login_button(clientId, domain = domain)
st.write(user_info)
```

`user_info` will now contain your user's information

## Todo

- Pass all info through JWT, at the moment the `sub` field is the only field passing through verification
- Test with other providers, only Google tested

## Deploy

- `Change version in setup.py`
- `cd auth0_component/frontend/  && npm run build && cd .. && cd .. && rm -rf dist/* && python setup.py sdist bdist_wheel`
- `twine upload dist/*`
fastcookie 0.0.2
make it easy to use cookie

# fastcookie

#### 介绍
cookie工具包

#### 软件架构
软件架构说明


#### 安装教程

1.  pip安装
```shell script
pip install fastcookie
```
2.  pip安装（使用淘宝镜像加速）
```shell script
pip install fastcookie -i https://mirrors.aliyun.com/pypi/simple
```

#### 使用说明

1.  demo
```python
import fastcookie
import requests
test_res = fastcookie.get_requests_cookie(cookie_jar=requests.session().cookies)
```