semvec/pypi-packages huggingface dataset:
YFLIB 1.0.2
Read the latest README.md
License: MIT

# Python_YFLib
- Providing both dayEnd and indicator function
- Using YFinance as source
- All called function would save a cache in local
- *** SUDO *** root permission required

---
## How to import?
- ``` from yflib import functions ```
---
## Library Included

1. Yfinance
2. Pandas
3. Numpy
---
## Day End

### Read data of day end

- Start date and End date are inclusive
```
    functions.read_dayEnd(stock,startDate,endDate,useCols,verbose)
```
| Params      | Type        | Example        | Optional |
| ----------- | ----------- | -------------- | -------- | 
| stock       | string      | "AAPL"         | F        |
| starDate    | string      | "2000-01-05"   | T        |
| endDate     | string      | "2000-01-09"   | T        |
| useCols     | List        | ["Open","Low"] | T        |
| verbose     | Boolean     | True           | T        |

- useCols full list
```
    [open, high, low, close, adjusted_close, volume, dividend_amount, split_coefficient]
```

---
## Indicators
- Series type: close
  
### Read data of day end
- Start date and End date are inclusive
```
    functions.read_indicator(stock,indicator,startDate,endDate,useCols,verbose)
```
| Params      | Type        | Example        | Optional |
| ----------- | ----------- | -------------- | -------- | 
| stock       | string      | "AAPL"         | F        |
| indicator   | string      | "SMA"          | F        |
| period      | Number      | 12             | T        |
| starDate    | string      | "2000-01-05"   | T        |
| endDate     | string      | "2000-01-09"   | T        |
| verbose     | Boolean     | True           | T        |


### 1. SMA
- Period: 50/200

### 2. EMA
- Period: 50/200

### 3. MACD
<!-- - Period: 9/12/26 -->

### 4. STOCH
- Period: NULL

### 5. RSI
- Period: 9/14

### 6. STOCHRSI
- Period: 60/120

### 7. CCI
- Period: 14/50

### 8. BBRANDS
- Period: Null (Default 20 fixed)

### 9. OBV
- Period: Null

---

` version = 1.0.2 `
fastapi-redis-session 0.2.0
A redis-based session backend for Fastapi apps
License: MIT
Requires Python: >=3.7,<4.0

# fastapi-redis-session

![CI](https://github.com/duyixian1234/fastapi-redis-session/workflows/CI/badge.svg?branch=master)

A redis-based session backend for Fastapi apps

## Install

```bash
pip install -U fastapi-redis-session
```

## Use

```python
from typing import Any

from fastapi import Depends, FastAPI, Request, Response

from fastapi_redis_session import deleteSession, getSession, getSessionId, getSessionStorage, setSession, SessionStorage

app = FastAPI(title=__name__)


@app.post("/setSession")
async def _setSession(
    request: Request, response: Response, sessionStorage: SessionStorage = Depends(getSessionStorage)
):
    sessionData = await request.json()
    setSession(response, sessionData, sessionStorage)


@app.get("/getSession")
async def _setSession(session: Any = Depends(getSession)):
    return session


@app.post("/deleteSession")
async def _deleteSession(
    sessionId: str = Depends(getSessionId), sessionStorage: SessionStorage = Depends(getSessionStorage)
):
    deleteSession(sessionId, sessionStorage)
    return None

```

## Config

### Deafult Config

- url of Redis: redis://localhost:6379/0
- name of sessionId: ssid
- generator function of sessionId: `lambda :uuid.uuid4().hex`
- expire time of session in redis: 6 hours

### Custom Config

```python
from fastapi_redis_session.config import basicConfig
basicConfig(
    redisURL="redis://localhost:6379/1",
    sessionIdName="sessionId",
    sessionIdGenerator=lambda: str(random.randint(1000, 9999)),
    expireTime=timedelta(days=1),
    )
```