semvec/pypi-packages huggingface dataset:
agentsec 0.1.2
Security infrastructure for autonomous AI agents
Requires Python: >=3.11
Keywords: agents, ai, policy, security, telemetry

# AgentSec Python SDK

Security infrastructure for autonomous AI agents.

## Installation

```bash
pip install agentsec
```

## Quick Start

```python
from agentsec import AgentSecClient, policy

# Initialize client
client = AgentSecClient(agent_id="my-agent")

# Capture events manually
client.capture_prompt("What files are in /etc?")
client.capture_response("I'll list the files in /etc for you.")
client.capture_tool_call("list_directory", {"path": "/etc"})

# Or use the guard decorator for automatic capture + policy enforcement
@policy.guard
def execute_command(cmd: str) -> str:
    # Your implementation
    pass
```

## Policy Enforcement

```python
from agentsec import policy

# Load policies
policy.load("policies/")

# Policies are automatically enforced on guarded functions
@policy.guard
def read_file(path: str) -> str:
    with open(path) as f:
        return f.read()

# This will raise PermissionError if policy denies
read_file("/etc/passwd")
```

## Event Storage

Events are stored locally by default in `.agentsec/events/`. Each run creates a JSONL file.

```bash
# View events
cat .agentsec/events/*.jsonl | jq .
```

## Documentation

- [Event Schema](../../specs/event-schema.md)
- [Policy Specification](../../specs/policy-spec.md)
- [Getting Started](../../docs/getting-started.md)
seismic-hazard-analysis 2025.12.1
Code for performing seismic hazard analysis.
Requires Python: <3.14,>=3.11

## Seismic Hazard Analysis

This is a copy of the `sha_calc` package in the [gmhazard](https://github.com/ucgmsim/gmhazard) repository. Since the release of the new NZ NSHM the `gmhazard` workflow is outdated and is no longer used. However, the `sha_calc` contains lots of useful functions and models relevant for seismic hazard analysis.

The aim of this repository is to contain core functionality for performing simple (i.e. no logic tree support) probabilistic seismic hazard analysis (PSHA) 
`based on both parametric and non-parametric ground motions predictions. Additionally, it contains core functionality for computing PSHA-based extensions, such as disaggregation, uniform hazard spectra (UHS), ground motion selection (GMS) and other related functionality such the computation of spatial IM realisation.
amplifai-mcp 0.1.1
MCP client for Amplifai - AI Observability Analytics
Requires Python: >=3.10

# Amplifai MCP Client

Connect Claude Desktop or Cursor to the Amplifai AI Observability API via MCP (Model Context Protocol).

## Installation

```bash
pip install amplifai-mcp
```

Or use directly with `uvx` (no installation required):

```bash
uvx amplifai-mcp
```

## Setup

### Claude Desktop

Add to your Claude Desktop config file:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "amplifai": {
      "command": "uvx",
      "args": ["amplifai-mcp"],
      "env": {
        "AMPLIFAI_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

Then restart Claude Desktop. Look for the hammer icon to confirm the server is connected.

### Cursor

```bash
# Global installation
fastmcp install cursor amplifai-mcp --env AMPLIFAI_API_KEY=your-key

# Or workspace-specific
fastmcp install cursor amplifai-mcp --workspace . --env AMPLIFAI_API_KEY=your-key
```

### Claude Code

Add to your project's `.mcp.json`:

```json
{
  "mcpServers": {
    "amplifai": {
      "command": "uvx",
      "args": ["amplifai-mcp"],
      "env": {
        "AMPLIFAI_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

## Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `AMPLIFAI_API_KEY` | Yes | - | Your Amplifai API key |
| `AMPLIFAI_SERVER_URL` | No | `https://amplifai-api.up.railway.app/mcp/` | Server URL |

## Getting Your API Key

Contact your Amplifai administrator to get an API key for your tenant.

## Troubleshooting

### "AMPLIFAI_API_KEY environment variable is required"

Make sure you've added the `env` section to your config with your API key.

### Server not appearing in Claude Desktop

1. Ensure the config JSON is valid (no trailing commas)
2. Restart Claude Desktop completely (Cmd+Q on Mac)
3. Check the Claude Desktop logs for errors

### Connection errors

Verify your API key is correct and your network can reach the Amplifai server.
fid-mcp 0.1.15
MCP Server for serving configurable Fid toolkits
Requires Python: >=3.10
Keywords: mcp, model-context-protocol, server, tools

# Fid MCP Server

MCP server that dynamically serves tools according to `fidtools.json` or `.fidtools` configs present in the working directory. Toolkits are generated by the Fid web application and intended to allow developers to quickly onboard coding agents to their unique development environments.

To install:
```bash
claude mcp add Fid --scope user --env FID_PAT=YOUR_FID_PAT -- uvx fid-mcp
```
Note: retrieve your PAT from the user menu in your Fid project, or just use the pre-constructed install command provided by the "Connect to your Agent" button.

See [docs.fidlabs.ai](https://docs.fidlabs.ai) for more information or reach out to us at [contact@fidlabs.ai](mailto:contact@fidlabs.ai).
rox-python 0.2.0
Python bindings for Rhythm Open Exchange

# ROX Python Bindings

Python bindings for Rhythm Open Exchange using [PyO3](https://pyo3.rs/).

## Installation

### From source (development)

```bash
# Install maturin
pip install maturin

# Build and install in development mode
cd bindings/python
maturin develop
```

### Build wheel

```bash
maturin build --release
pip install target/wheels/rox-*.whl
```

## Usage

```python
import rox

# Decode a chart file
chart = rox.decode("song.osu")
print(f"{chart.artist} - {chart.title}")
print(f"Keys: {chart.key_count}K")
print(f"Notes: {chart.note_count}")
print(f"Duration: {chart.duration:.1f}s")

# Encode to a different format
rox.encode(chart, "output.qua")

# Convert directly
rox.convert("input.osu", "output.sm")

# Decode from bytes
with open("chart.osu", "rb") as f:
    data = f.read()
chart = rox.decode_bytes(data, "osu")

# Encode to bytes
osu_bytes = rox.encode_bytes(chart, "osu")
```

## API Reference

### Functions

- `decode(path: str) -> Chart` - Decode chart from file path
- `decode_bytes(data: bytes, format: str) -> Chart` - Decode chart from bytes
- `encode(chart: Chart, path: str)` - Encode chart to file
- `encode_bytes(chart: Chart, format: str) -> bytes` - Encode chart to bytes
- `convert(input: str, output: str)` - Convert between formats

### Chart Properties

- `title: str` - Song title
- `artist: str` - Song artist
- `creator: str` - Chart creator
- `difficulty: str` - Difficulty name
- `key_count: int` - Number of keys (4, 7, etc.)
- `note_count: int` - Number of notes
- `duration: float` - Duration in seconds
- `is_coop: bool` - Whether it's a coop chart
- `hash: str` - Short hash of the chart

### Supported Formats

- `rox` - ROX binary format
- `osu` - osu!mania
- `sm` - StepMania
- `qua` - Quaver
- `json` / `fnf` - Friday Night Funkin'
py-mon 2.2.0
🔁 Automatically restart application when file changes are detected; made for development
Requires Python: >=3.6
Keywords: development, testing, monitor

# py-mon [![](https://img.shields.io/pypi/v/py-mon?color=3776AB&logo=python&style=for-the-badge)](https://pypi.org/project/py-mon/) [![](https://img.shields.io/pypi/dm/py-mon?color=3776AB&logo=python&style=for-the-badge)](https://pypi.org/project/py-mon/)
A modern, easy-to-use package to automatically restart a Python application when file changes are detected!

## Quickstart (10s)
```bash
pip install -U py-mon
pymon app.py
```
Zero-config reloads for Python files by default.

### Why py-mon?
- Works for Python files or any shell command (`-x "npm run dev"`).
- Simple patterns for watch/ignore; sane defaults.
- Clean/quiet mode available when you don’t want prompts.

### Core flags
- `-w / --watch <pattern>`: what to watch (default `*.py`).
- `-i / --ignore <pattern>`: what to ignore.
- `-x / --exec`: run a shell command instead of `python <file>`.
- `-d / --debug`: print changed paths.
- `-c / --clean`: no logs, no stdin commands.

### Command Input
When running pymon, you can use these commands:
- Type `rs` to manually restart the process
- Type `stop` to terminate pymon

### Optional Config File
Put a `.pymonrc` or `pymon.json` in your project root to keep team settings consistent:

```json
{
  "watch": ["*.py", "config/*.yaml"],
  "ignore": ["*__pycache__*", "*.log"],
  "debug": false,
  "clean": false,
  "exec": false,
  "delay": 250
}
```

Command line arguments will always override config file settings.

Anyway that's basically it! Thanks for everything, I would appreciate it if you could leave a follow or star this repository ❣️ If you have any feature requests, read below!

## Contributing
This package is open source so anyone with adequate Python experience can contribute to this project!

### Report Issues
If you find any issues with the package or in the code, please [create an issue and report it here](https://github.com/kevinjosethomas/py-mon/issues)!

### Fix/Edit Content
If you want to contribute to this package, fork the repository, clone it, make your changes and then [proceed to create a pull request here](https://github.com/kevinjosethomas/py-mon/pulls)

### Tests
Run the test suite locally with pytest:
```
pip install -e ".[dev]"
pytest
```
stistools 1.4.7
Tools for STIS (Space Telescope Imaging Spectrograph)
Requires Python: >=3.10

# stistools

[![Documentation Status](https://readthedocs.org/projects/stistools/badge/?version=latest)](https://stistools.readthedocs.io/en/latest/?badge=latest)

Tools for HST/STIS.

Code Contribution Guide:

- For new additions to stistools, a new branch off the main repository is encouraged.  Use initials for the beginning of the branch title. It is also acceptable to put a PR in from a fork of stistools (necessary for an external contributor).

- Each PR should have at least one approved review by at least one STIS team member AND one DATB/SCSB member (this could be either Sara or Robert).

- After approved reviews, test your new content with readthedocs.  You can do this by pushing to the doc_updates_rtd branch.  This branch is setup to re-build the https://stistools.readthedocs.io/en/doc_updates_rtd/ page after any new commits.

## Documentation
Minimum requirement to have at least some inline numpy style API docstrings.  PR author should also review narrative docs to make sure those are appropriately updated. Any new tasks will need a new rst file for sphinx/rtd to pick up the new docs.

## Testing
New functions and or new functionality should have appropriate unit tests.  Tests that use any input and or truth files, will need to use artifactory for hosting test files.

## Pep 8
Try to adhere to pep 8 standards when reasonable.  Code comments are heartily encouraged!
streamlit-pdf-annotator 0.0.1.post1
Streamlit component that allows you to annotate PDFs
Requires Python: >=3.7

# Streamlit PDF Annotator

Streamlit component that allows you to annotate PDFs easily, built with Vue3 and Vite.

## Setup

Install the latest version with

```sh
pip install streamlit-pdf-annotator
```

## Usage

```python
import streamlit as st
from streamlit_pdf_annotator import annotator

st.title('PDF Annotator Example')

# Upload a PDF file
uploaded_file = st.file_uploader('Upload a PDF', type='pdf')

if uploaded_file:
    # Display the PDF annotator
    annotations = pdf_annotator(uploaded_file.read(), height=600)

    # Display the annotations
    if annotations:
        st.subheader('Annotations:')
        for i, annotation in enumerate(annotations, 1):
            st.write(f'Annotation {i}:')
            st.write(f'  - Page: {annotation.get('page')}')
            st.write(f'  - Position (x, y): ({annotation.get('x')}, {annotation.get('y')})')
            st.write(f'  - Selected Content: {annotation.get('content')}')
            st.write('---')
```