deslopify
Python-библиотека для удаления следов ИИ-генерации в текстах. Трёхэтапный пайплайн: черновик → самокритика → финальная версия.
Установка
uv sync
cp .env.example .env # и пропишите OPENROUTER_API_KEY
Ключ OpenRouter можно задать в .env — библиотека подхватит его при импорте.
Для явной загрузки через uv: uv run --env-file .env python test_api.py.
Альтернатива через pip:
pip install -e ".[dev]"
export OPENROUTER_API_KEY="sk-or-..."
Быстрый старт
import asyncio
from deslopify import deslop, DeslopConfig
async def main():
result = await deslop(
"В современном мире искусственный интеллект играет ключевую роль...",
config=DeslopConfig(model="google/gemini-2.5-flash"),
)
print(result.final_text)
print(result.tokens_consumed)
asyncio.run(main())
Синхронно:
from deslopify import deslop_sync
print(deslop_sync("Ваш текст").final_text)
PydanticAI tool
Tool remove_ai_traces можно повесить на любого агента:
from pydantic_ai import Agent
from deslopify import DeslopConfig, DeslopToolDeps, create_deslop_tool
config = DeslopConfig()
agent = Agent(
"openrouter:google/gemini-2.5-flash",
deps_type=DeslopToolDeps,
tools=[create_deslop_tool(config)],
)
result = await agent.run(
"Убери ИИ-следы из текста: ...",
deps=DeslopToolDeps(config=config),
)
Или использовать готового редактора:
from deslopify import DeslopToolDeps, create_deslop_agent, DeslopConfig
config = DeslopConfig()
agent = create_deslop_agent(config=config)
result = await agent.run(
"Очеловечь этот абзац: ...",
deps=DeslopToolDeps(config=config),
)
CLI
uv run deslopify "Текст для обработки"
uv run python test_api.py --text "Ваш текст"
echo "Текст" | uv run deslopify --json
Модель по умолчанию
google/gemini-2.5-flash через OpenRouter.
Metadata
Release files for deslopify 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deslopify-0.3.0.tar.gz | 58.2 kB | With provenance | Details for deslopify-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deslopify-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for deslopify-0.3.0-py3-none-any.whl |
Total release size: 82.3 kB
Release files / deslopify-0.3.0.tar.gz
| Download URL | deslopify-0.3.0.tar.gz |
|---|---|
| Size | 58.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9329fddc4a28fe807b80272b6c1964e1b22cdc83cc3ecc24f696a81a369105cb
|
|
BLAKE2b-256 checksum How to use checksums |
7df2e07d4eb17cdae9fee79e5c4ec4346151179eed977959801606edf9253f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / deslopify-0.3.0-py3-none-any.whl
| Download URL | deslopify-0.3.0-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17e467bcd4e9b2b25a1f89ebb344f8bfb69cef8ded68e6aa2e15c1c9d2986b5d
|
|
BLAKE2b-256 checksum How to use checksums |
a711c60559d87598e16a42eaa85eb11a5de46cd818189e46e78272a70958f277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logSecurity for deslopify 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for deslopify-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.