semvec/pypi-packages huggingface dataset:
pythonradex 2.0.0
1D non-LTE radiative transfer
Requires Python: >=3.10
Keywords: non-LTE, radex, radiative transfer

pythonradex solves the 1D non-LTE radiative transfer for a homogeneous medium. It is a tool to quickly estimate the radiation from an astrophysical gas. It also provides a convenient function to read data files in the LAMDA format. pythonradex is a python re-implementation of the RADEX code, with additional functionality not included in RADEX (treatment of overlapping lines, treatment of dust continuum, output of spectra, and more).

For more details, please refer to the documentation: http://pythonradex.readthedocs.io/

For questions, bug reports, or feature suggestions, please open an issue on github.

pythonradex is written and maintained by Gianni Cataldi.
myztrion 0.1.3
Myztrion is a modern Python toolkit for USB/Serial communication with Myztrion devices. It converts low-level packets into structured reports, supports async/sync callback dispatching, and enables practical control workflows for GPIO, PWM, ADC acquisition, and stepper motor motion. Built for makers and engineers who want a clean, reliable bridge between Python tooling and embedded hardware control.
Requires Python: >=3.9

# Myztrion (organized)

Myztrion is a combined host-and-firmware project designed to make it easy to control an RP2040/Pico-based device from a computer using Python, while keeping the embedded firmware clean and maintainable. The repository is organized to clearly separate the Python “host” side (tools that run on your PC) from the C firmware that runs on the microcontroller, and to provide runnable examples that demonstrate typical workflows.

The overall goal is fast iteration: you can build and flash firmware, then immediately validate behavior from Python with repeatable scripts. This structure also supports packaging the Python host library for distribution (e.g., via pip), while keeping firmware development independent.

## Repository structure

- `myztrion/python/`  
  Python host library. This includes the main entry module (for example `Myztrion.py`) plus helper modules that implement the USB/Serial backend and any parsing/utilities required for communication. This is the code you import from your own Python scripts.

- `myztrion/firmware/`  
  C firmware sources for RP2040/Pico. This contains the Pico SDK project (CMake files, sources, headers, and any build scripts) that compiles into a UF2/ELF. This side defines the device protocol and the reports/commands the Python host will use.

- `examples/python/`  
  Example scripts intended to be run directly. These demonstrate basic connectivity, as well as specific features like GPIO sequencing, PWM usage, ADC sampling (including optional plotting workflows), and stepper control. The examples are also a convenient way to confirm that your environment is set up correctly.

## Running examples

From the repository root, you can run any example script directly. For example:

```bash
python3 examples/python/hello_world_myztrion.py
ffid-python-sdk 0.1.0
FeelFlow ID Platform SDK for Python (FastAPI)
Requires Python: >=3.11
Keywords: authentication, fastapi, feelflow, ffid, sdk

# ffid-python-sdk

FeelFlow ID Platform SDK for Python (FastAPI).  
FastAPI アプリケーション向けの認証・認可・契約管理 SDK です。

**5行のコードでFFID認証を導入可能**（最小ボイラープレート）。

- Python 3.11+
- FastAPI / Pydantic v2 / httpx

## インストール

```bash
pip install ffid-python-sdk
```

## クイックスタート（最小例）

```python
from fastapi import FastAPI, Depends
from ffid_sdk import FFIDMiddleware, require_subscription, FFIDContext, get_ffid_context

app = FastAPI()
app.add_middleware(FFIDMiddleware, service_code="chatbot")

@app.get("/api/chat")
@require_subscription(plan=["basic", "pro", "enterprise"])
async def chat(ffid: FFIDContext = Depends(get_ffid_context)):
    return {"message": f"Hello, {ffid.user.email}"}
```

認証はミドルウェアが行い、`get_ffid_context` でコンテキストをエンドポイントに注入します。  
`plan=` は `plans=` のエイリアスです（どちらも利用可能）。

## 主要コンポーネント

### FFIDMiddleware

リクエストからアクセストークン（`Authorization: Bearer` または Cookie `ffid_session`）を取得し、FFID API でセッション検証後に `request.state.ffid_context` にコンテキストを格納します。

```python
app.add_middleware(
    FFIDMiddleware,
    service_code="chatbot",
    exclude_paths=["/health", "/docs", "/openapi.json"],
)
```

### FFIDContext

ユーザー・組織・契約情報を保持するリクエストスコープのコンテキスト。  
`Depends(get_ffid_context)` で取得（認証任意）、`Depends(require_ffid_auth)` で認証必須にできます。

- `ctx.user` … 認証ユーザー
- `ctx.organizations` … 所属組織一覧
- `ctx.subscriptions` … 契約一覧
- `ctx.active_subscription` … 有効な契約（1件）

### @require_subscription

契約チェック用デコレータ。指定プランまたは任意の有効契約が必要なエンドポイントに付けます。

```python
@require_subscription(plan=["basic", "pro", "enterprise"])  # または plans=
async def premium(ctx: FFIDContext = Depends(get_ffid_context)):
    ...
```

### FFIDClient

FFID API を直接呼ぶクライアント（セッション取得・トークンリフレッシュ・サインアウト・契約確認など）。  
ミドルウェアを使わないバックグラウンド処理やテストで利用します。

```python
from ffid_sdk import FFIDClient, FFIDConfig

client = FFIDClient(FFIDConfig(service_code="chatbot"))
response = await client.get_session(token="...")
```

## 環境変数

| 変数 | 説明 |
|------|------|
| `FFID_SERVICE_CODE` | サービス識別コード（例: `chatbot`）。ミドルウェアの `service_code` に渡すか、クライアント設定で指定。 |
| `FFID_API_BASE_URL` | FFID API のベースURL（省略時は本番 `https://id.feelflow.co.jp` 相当）。 |

## 利用規約チェック・リダイレクト

法的文書の同意確認と未同意時のリダイレクトは、Legal クライアント（Service API Key 認証）で実装済みです。  
`check_pending_agreements_and_redirect_url` で未同意一覧を取得し、未同意時は返却される `redirect_url` へリダイレクトできます。戻り値の第4要素に API エラーが入るため、呼び出し元でエラーハンドリング可能です。

## トークン自動リフレッシュ（オプション）

JWT 期限切れ時に refresh トークンで自動再取得する機能をミドルウェアで利用できます。  
`FFIDMiddleware(..., auto_refresh=True)` にし、Cookie `ffid_refresh` にリフレッシュトークンが含まれる構成で有効化します。

## ライセンス

MIT
bilrost 1.1.0
Hardened Lima VM for running AI agents — overlay isolation, network containment, secrets management, and gated sync.
Requires Python: >=3.11
Keywords: ai-agents, isolation, lima, sandbox, security, vm

# bilrost

**Hardened Lima VM for running AI agents** — overlay isolation, network containment, secrets management, and gated sync.

## Install

```bash
# Via pipx (recommended)
pipx install bilrost

# Via uv
uv tool install bilrost

# Via pip
pip install bilrost
```

## Usage

```bash
# Interactive setup
bilrost init

# Provision the VM (~5 min first run)
bilrost up

# Check status
bilrost status

# SSH into the VM
bilrost ssh

# Sync overlay changes to host (with secret scanning)
bilrost sync

# Stop / destroy
bilrost down
bilrost destroy
```

## MCP Server

Agents can manage the sandbox programmatically via FastMCP:

```json
{
  "mcpServers": {
    "sandbox": {
      "command": "bilrost-mcp"
    }
  }
}
```

9 tools: `sandbox_status`, `sandbox_up`, `sandbox_down`, `sandbox_destroy`, `sandbox_exec`, `sandbox_validate`, `sandbox_ssh_info`, `sandbox_gateway_info`, `sandbox_agent_identity`.

## What It Does

- **OverlayFS isolation** — host code mounted read-only, all writes contained in VM overlay
- **Network containment** — UFW firewall with explicit allowlist (HTTPS, DNS, Tailscale, NTP only)
- **Secrets management** — three injection methods, `0600` perms, never in process lists
- **Gated sync** — gitleaks scanning + path allowlist before changes reach your host
- **Docker sandboxing** — per-session containers with configurable network isolation
- **12 Ansible roles** — overlay, secrets, gateway, docker, firewall, sync-gate, gh-cli, buildlog, cadence, qortex, tailscale, and more

## Requirements

- macOS (Apple Silicon or Intel)
- [Homebrew](https://brew.sh/)
- ~10GB disk space

Dependencies (Lima, Ansible, etc.) are installed automatically on first run.

## Documentation

Full docs: [peleke.github.io/openclaw-sandbox](https://peleke.github.io/openclaw-sandbox/)

## License

MIT
PyToTXT 0.1.0
A TXT File Writer.
Requires Python: >=3.6

PyToTXT is a file writer that can save files to any path you want.
# Installation
```bash
pip install PyToTXT
```
# Usage
```python
import PyToTXT

PyToTXT.writeTXT("This is a text file")
PyToTXT.save("/your/home/path/file.txt")
```