A small toolkit with Drive downloads, translation, audio splitting, and an HTTP API.
Project description
Frank tools
Frank tools is a small, production-ready Python toolkit that bundles a few practical utilities:
- Google Drive file downloader that works with share links.
- Lightweight translation helper that wraps the public Google translate endpoint.
- M4B chapter-aware splitter helper for audio workflows.
- HTTP API (FastAPI) exposing health and translation endpoints.
- CLI commands and Docker image for easy usage.
Installation
pip install .
CLI usage
- Download from Drive:
frank-tools-drive --link "<drive url>" - Translate:
frank-tools-translate --text "Hola" --tl en - M4B split helper:
frank-tools-m4b --input book.m4b --chapters chapters.txt --output ./out - Central CLI with subcommands:
frank-tools <subcommand>
HTTP API
Run locally:
uvicorn frank_tools.api.app:app --reload
Endpoints:
GET /health– health check.POST /translate– translate a piece of text via the internal translator.
Development
python -m venv .venv
source .venv/bin/activate
pip install -e ".[test]"
Run tests:
pytest
Build & publish:
python -m build
twine upload dist/*
Docker
docker build -t frank-tools .
docker run -p 8000:8000 frank-tools
VS Code tips
- See
.vscode/launch.jsonfor debugging uvicorn orpytest -k "pattern". .vscode/settings.jsonpoints the Python analysis engine atsrc/to resolve imports.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
frank_tools-0.1.0.tar.gz
(36.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frank_tools-0.1.0.tar.gz.
File metadata
- Download URL: frank_tools-0.1.0.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8969d2fbce6021a0b9f23a410ca1e649309c7ecce6b314a6b7f9daa77f34581
|
|
| MD5 |
e126ec92557ae503663452a7914821bb
|
|
| BLAKE2b-256 |
67f5aa0822d00fd39ef1e75a5016b2964a540b42bec02160df28c5d241c575dc
|
File details
Details for the file frank_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: frank_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e29c5c2bf9451fb2fa678c843626ce143860d8f86bcd37c8d2b541bc841314
|
|
| MD5 |
09fc96c6f9521377a88979653bb4dfd6
|
|
| BLAKE2b-256 |
567add1adc4b7d3b92a8b9fdaea09bc2637d99728134d741af29849053a42498
|