Toopdf
Brauzersiz PDF bilan ishlash vositasi. Terminal orqali PDF tarjima, konvertatsiya va boshqa amallar.
Imkoniyatlar
- 30+ PDF vosita — tarjima, konvertatsiya, merge, split, OCR, watermark, encrypt/unlock
- Batch ishlov — bir necha faylni birdaniga qayta ishlash
- Chiroyli CLI — progress bar, rangli output, avtoto'ldirish
- Stealth — brauzerdek soxta headerlar, delay, cookie saqlash
- Xavfsiz — input validatsiya, rate limiting, shifrlangan cookie'lar
O'rnatish
pip install toopdf
Ishlatish
# Vositalar ro'yxati
toopdf list
# PDF tarjima (en → uz)
toopdf translate test.pdf --from en --to uz
# PDF konvertatsiya
toopdf convert pdf-to-word test.pdf
toopdf convert pdf-to-jpg test.pdf
# PDF yuklash (qayta ishlashsiz)
toopdf upload test.pdf
# Batch ishlov
toopdf batch *.pdf --tool pdf-to-word
# Konfiguratsiya
toopdf config
# Yordam
toopdf --help
toopdf translate --help
Xavfsizlik
| Xususiyat | Tavsif |
|---|---|
| Input validatsiya | Fayl yo'li, til kodi, vosita nomi tekshiriladi |
| File size limit | Katta fayllar rad etiladi (sozlash mumkin) |
| Path traversal | ../ bloklanadi |
| Rate limiting | So'rovlar soni cheklangan (sozlash mumkin) |
| Encrypted cookies | Shifrlangan cookie saqlash |
| Logging | Barcha hodisalar yoziladi |
Konfiguratsiya
.env fayl orqali yoki environment variable'lar bilan:
TOOPDF_MAX_FILE_SIZE_MB=50
TOOPDF_RATE_LIMIT_PER_MINUTE=10
TOOPDF_LOG_LEVEL=INFO
Loyiha tuzilmasi
toopdf/
├── src/
│ └── toopdf/
│ ├── __init__.py # Paket init
│ ├── cli.py # CLI interfeys (typer)
│ ├── client.py # Asosiy kutubxona (httpx)
│ ├── config.py # Konfiguratsiya (pydantic)
│ └── exceptions.py # Xatolik klasslari
├── tests/
│ ├── conftest.py # Pytest fixture'lar
│ ├── test_client.py # Client testlari
│ └── test_cli.py # CLI testlari
├── pyproject.toml
└── README.md
Testlar
pip install -e ".[dev]"
pytest
Litsenziya
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toopdf-0.3.0.tar.gz
(24.8 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
toopdf-0.3.0-py3-none-any.whl
(21.4 kB
view details)
File details
Details for the file toopdf-0.3.0.tar.gz.
File metadata
- Download URL: toopdf-0.3.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a2bd2d661f39ee1f5e22ffc233dc08e765293c55ba337b9681ccfeb2c228b9
|
|
| MD5 |
9035e137433e9c8e9d3f2c40a22140a4
|
|
| BLAKE2b-256 |
edb1cb8d610a36a5cd437757530bad91c6510bbf208b89aa77ef351e74c99b29
|
File details
Details for the file toopdf-0.3.0-py3-none-any.whl.
File metadata
- Download URL: toopdf-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3058fca946c514a4fb1c91b08cedcf30c93f9403cca6cc9e4556d6d49410b1b6
|
|
| MD5 |
012051f7917b02c8b5fa176ac97f4f35
|
|
| BLAKE2b-256 |
12cc9a7031f1b3f5ad6853c5a738b55278d337317cebae30c348461f813760e2
|