Skip to main content

Find files by what you mean — from the terminal or Python.

Project description

Srxy

CI version PyPI

Find files by what you mean — terminal or Python.

Fuzzy, phonetic, and semantic matching across filenames, documents, photos, audio, video, and OS tags. On a TTY, srxy opens a full-screen TUI by default; use --no-tui for scripts and pipes.

Installation

Needs Python 3.11+. pipx install 'srxy[semantic]' recommended; pip install srxy for core-only. Windows: add [windows] for Explorer tags. macOS: system python3 may be too old — Installation.

Platform setup (ffmpeg, tesseract): docs/installation.md

Quick start

TUI (default on a TTY):

srxy                          # empty query/path
srxy "registry" ./src         # pre-filled; auto-starts
srxy "transform" ./docs --ocr

srxy TUI

Live scan progress, sortable results, preview pane, option chips, clipboard copy. Full walkthrough: docs/tui.md.

Plain CLI:

srxy "registry" ./src --no-tui
srxy "revenue" ./docs --json
srxy "dog at the beach" ~/Pictures --semantic-image --content-only
srxy "revenue" ./docs --semantic-all --content-only

Boolean queries (|, &), scope flags, format table: docs/cli.md.

Python:

from pathlib import Path
from srxy import magic_file_search, magic_search

magic_file_search(Path("./src"), "registry", threshold=0.3)
magic_search([{"name": "salad"}], "salat", fields=["name"])

API reference: docs/python-api.md.

Documentation

Guide Contents
Installation pipx/pip, macOS/Linux/Windows, ffmpeg, tesseract
TUI Layout, keybindings, clipboard, release checklist
CLI reference Flags, formats, boolean queries, exit codes
Power-ups OCR, semantic, CLIP, transcription, models
Python API magic_file_search, search, Q, match types
Development Quality gate, --full, fixtures, pytest

Development

pip install -e ".[dev,semantic]"
./scripts/quality/checks.sh --fix
./scripts/quality/checks.sh              # day-to-day
./scripts/quality/checks.sh --full       # before release
./scripts/quality/checks.sh --full+cpu   # + forced-CPU transcribe matrix

CI runs unit tests only (unit marker, excluding semantic and transcribe). Details: docs/development.md.

Try fixtures: srxy "axolotl" ./tests/fixtures/file_search

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srxy-1.3.1.tar.gz (71.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srxy-1.3.1-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

Details for the file srxy-1.3.1.tar.gz.

File metadata

  • Download URL: srxy-1.3.1.tar.gz
  • Upload date:
  • Size: 71.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for srxy-1.3.1.tar.gz
Algorithm Hash digest
SHA256 cb2b39a0b76fcd3a713938d8d1062bcbd9550b43154cad40a9f73c79a17ee0b1
MD5 a94e6dccb547c474417238259c2e81e4
BLAKE2b-256 ba635f84fc86f8fe7887a666600ef72ec586064f0f069290ba6f8bd2d43e6501

See more details on using hashes here.

File details

Details for the file srxy-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: srxy-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 84.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for srxy-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 514bfd51b4ed8d6f8adc2d2d91175d63a623d8ee2dc7e7da89a44376def9f493
MD5 9ae1435fc26f9fdfe4de4db45b65b00a
BLAKE2b-256 f71d02418d0ae21357ffdd4de6fafe3e338c169376e0eb602f4a997b8a6f4166

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page