semvec/pypi-packages huggingface dataset:
flask-gurke 0.1.1
Server-Side Session for many backends.
License: MIT
Requires Python: >=3.6.0

# Flask Gurke

Gurke, the cucumber in German, is the simple server-side session interface supporting multiple backends.

## Introduction

The default session interface in Flask is client-side session with the basic encryption. Therefore, we have to overwrite the default session interface and store it in the backends. According to the source codes from Flask, you have to subclass the dictionary and SessionMixin

```python
class CustomSessionInterface(dict, SessionMixin):
    pass
```

Replace the origin session interface by

```python
app = Flask(__name__)
app.session_interface = CustomSessionInterface()
```


#### Reference

* werkzeug.datastructures
    * UpdateDictMixin
    * CallbackDict

* flask.sessions
    * SessionInterface
    * SessionMixin
    * SecureCookieSession

To implement session, you need a session object and a session interface. The flask will operate on the session interface to control the session object. 

#### Client-Side Session

For client-side session, the session object only has to track if the session is accessed and modified and store the data. And flask uses the session interface to open the session from requests and save the session back to responses. Of course, you have to sign the data in client-side session by your secret key.

#### Server-Side Session

For server-side session, we have to add the unique session id to the session object and store the data to the backends. Since that, it's no need to sign the data.
json-easy 1.1.2
Json DB's made easy
License: MIT
Requires Python: >=3.8
Keywords: json,db,easy

# json-easy
Used to make json db'ing easier

Usage:
```py
import json-easy as json
db = json.db('path/to/db.json')
#in a function
await db.changeval('somekey', 'someval')
await db.getval('somekey')
await db.removeval('somekey')
```