semvec/pypi-packages huggingface dataset:
allye-data-connector 0.1.2
Local DataFrame connector between Python and Allye widgets via manifest.jsonl + shared storage.
Requires Python: >=3.9

# allye_data_connector

`allye_data_connector` is a local connector that lets you exchange `pandas.DataFrame` objects between Python and Allye widgets.

It works by appending events to a line-delimited manifest file (`manifest.jsonl`) and storing the actual Arrow payload either in:

- OS shared memory (fast, for smaller data), or
- a memory-mappable file on disk (for larger data).

## Installation

From PyPI:

```bash
pip install allye_data_connector
```

From source (development):

```bash
pip install -e .
```

If you haven't installed Allye yet, please download and install it from [here](https://www.ai-allye.com/).

## Quickstart

Send a DataFrame to Allye Canvas:

```python
import pandas as pd
import seaborn as sns

import allye_data_connector
df = sns.load_dataset("iris")
allye_data_connector.send_dataframe(df, table_name='iris')
```

Use Allye's `Allye Data Receiver` widget to receive the dataframe data and perform visualizations.

![Allye Data Receiver](img/Receiver.png)





Get Data from Canvas / Read it back:

Use Allye's `Allye Data Transmitter` widget to send Allye data, receive it on the Jupyter side, and execute subsequent processing.

![Allye Data Transmitter](img/Transmitter.png)

```python
df = allye_data_connector.get_dataframe('iris_setosa_versicolor')
df.head()
```

List available tables:

```python
tables = adc.list_tables()
for t in tables:
    print(t["table_name"], t["transport"], t["shape"])
```


## How it works (high level)

1. `send_dataframe()` appends a `status="writing"` event to `manifest.jsonl`.
2. The DataFrame is serialized to Apache Arrow:
   - `transport="auto"` uses shared memory when the payload is below `max_shm_bytes`
   - otherwise it falls back to writing Arrow IPC files under `payloads/` (chunked by `chunk_rows`)
3. A final `status="ready"` event is appended with a `payload` reference (transport + locator).
4. `get_dataframe()` scans the manifest for the latest `status="ready"` entry matching `table_name` (and optional `producer`),
   then loads the Arrow payload back into a DataFrame.

## Features

- Send/receive DataFrames with `send_dataframe()` and `get_dataframe()`
- Local, file-based coordination via `manifest.jsonl` (append-only)
- Automatic transport selection (`transport="auto"`) based on size
- Optional TTL + garbage collection for payload cleanup (`gc()`)
- Producer filtering (e.g., read only entries produced by Allye widgets)


## Cleanup (optional)

If you send with `ttl_sec=...`, the payload gets an expiration timestamp. You can remove expired payloads with:

```python
adc.gc(dry_run=False)
```

`gc(dry_run=True)` (default) only reports what would be removed.

## Notes

- This is a local IPC-oriented connector; it does not do networking or authentication.
- Very large DataFrames may exceed OS shared memory limits; the implementation automatically falls back to disk-backed Arrow files.
another-fastapi-jwt-auth 0.1.7
Another iteration of fastapi-jwt-auth
Requires Python: <4,>=3.10

# Another FastAPI JWT Auth

[//]: # (![Tests]&#40;https://github.com/IndominusByte/fastapi-jwt-auth/workflows/Tests/badge.svg&#41;)

[//]: # ([![Coverage Status]&#40;https://coveralls.io/repos/github/IndominusByte/fastapi-jwt-auth/badge.svg?branch=master&#41;]&#40;https://coveralls.io/github/IndominusByte/fastapi-jwt-auth?branch=master&#41;)

[//]: # ([![PyPI version]&#40;https://badge.fury.io/py/fastapi-jwt-auth.svg&#41;]&#40;https://badge.fury.io/py/fastapi-jwt-auth&#41;)

[//]: # ([![Downloads]&#40;https://static.pepy.tech/personalized-badge/fastapi-jwt-auth?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads&#41;]&#40;https://pepy.tech/project/fastapi-jwt-auth&#41;)

---

[//]: # (**Documentation**: <a href="https://indominusbyte.github.io/fastapi-jwt-auth" target="_blank">https://indominusbyte.github.io/fastapi-jwt-auth</a>)

**Source Code**:
<a href="https://github.com/delrey1/another-fastapi-jwt-auth/" target="_blank">https://github.com/delrey1/another-fastapi-jwt-auth/</a>

---

## Background

This was forked from https://github.com/IndominusByte/fastapi-jwt-auth as it is no longer maintained.

This release contains changes related to Pydantic >2 and PyJWT > 2. I used this on my own projects and will be updating
it
as required. PRs invited.

## Features
FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight), if you were familiar with flask-jwt-extended this extension suitable for you, cause this extension inspired by flask-jwt-extended 😀

- Access tokens and refresh tokens
- Freshness Tokens
- Revoking Tokens
- Support for WebSocket authorization
- Support for adding custom claims to JSON Web Tokens
- Storing tokens in cookies and CSRF protection

## Installation
The easiest way to start working with this extension with pip

```bash
pip install another-fastapi-jwt-auth
```

## License
This project is licensed under the terms of the MIT license.