semvec/pypi-packages huggingface dataset:
longformer-embedder 0.1.2
A small wrapper for generating Longformer embeddings.
License: MIT
Requires Python: >=3.8
Keywords: longformer, transformers, embeddings, nlp

# Longformer Embedder

A lightweight wrapper around Hugging Face Longformer to easily generate mean-pooled embeddings.

## Installation

```bash
pip install longformer-embedder
```

## Usage

```python
from longformer_embedder import LongformerEmbedder

embedder = LongformerEmbedder(model_name="allenai/longformer-base-4096")
vec = embedder.get_embedding("This is a test sentence.")
print(vec.shape)  # (768,)
```

### Batch Mode

```python
texts = ["Text one", "Text two", "Text three"]
embeddings = embedder.generate_embeddings(texts)
print(embeddings.shape)  # (3, 768)
```

## Notes
- Model weights are downloaded from Hugging Face automatically.
- Ensure `torch` is installed and compatible with your device (CPU/GPU).
- For GPU acceleration, install CUDA-enabled PyTorch.

## License
MIT License
fexp 0.1.0
A minimal CLI HTTP file explorer
License: MIT
Requires Python: >=3.8

# fexp

A minimal CLI to serve a simple HTTP backend for browsing and uploading files.

## Install

You can install `fexp` via pip:

```bash
pip install fexp
```

## CLI

```bash
fexp [--host HOST] [--port PORT] [--root ROOT]  [--quiet] [--upload] [--cors]
```

- `--host` (default: 127.0.0.1)
- `--port` (default: 8765)
- `--root` root directory to expose (default: $PWD)
- `--quiet` disable logging output (default: false)
- `--upload` enable upload support (default: false)
- `--cors` enable CORS (default: false)

## Web UI

A minimal web UI is available at:

- `GET /path/to/dir` — opens a simple file manager page

Features:
- Navigate directories with breadcrumbs
- Click files to preview (text) or open in a new tab
- Upload files into the current directory (requires `--upload`)

## License

MIT