🔍 Demon Cry Python SDK
Python SDK для Demon Cry — автономного OSINT-агента, который использует LLM для проведения расследований в открытых источниках.
✨ Возможности
- 🔎 Автоматический сбор данных из открытых источников
- 🧠 Использование LLM для анализа и построения гипотез
- 🛠️ Динамический выбор инструментов для расследования
- 📊 Детальная статистика по использованным токенам и инструментам
📦 Установка
pip install demon-cry-python-sdk
🚀 Быстрый старт
import asyncio
from demon_cry_python_sdk import DemonCryClient
async def main():
async with DemonCryClient(base_url="http://localhost:8000") as client:
result = await client.investigations.create(target="fazzyt")
print(result.result)
asyncio.run(main())
💰 Расчёт стоимости запроса
Тарифы взяты из документации DeepSeek.
result = await client.investigations.create(target="example.com")
tokens = result.tokens
# Тарифы DeepSeek (за 1 токен)
INPUT_COST_PER_TOKEN = 0.14 / 1_000_000 # cache miss
INPUT_CACHED_COST = 0.0028 / 1_000_000 # cache hit
OUTPUT_COST_PER_TOKEN = 0.28 / 1_000_000
input_cost = tokens.cache_hit * INPUT_CACHED_COST + tokens.cache_miss * INPUT_COST_PER_TOKEN
output_cost = tokens.completion * OUTPUT_COST_PER_TOKEN
total_cost = input_cost + output_cost
print(f"Всего токенов: {tokens.total}")
print(f" Prompt: {tokens.prompt}")
print(f" Completion: {tokens.completion}")
print(f" Cache hit: {tokens.cache_hit}")
print(f" Cache miss: {tokens.cache_miss}")
print(f"Стоимость: ${total_cost:.6f}")
📄 Лицензия
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 demon_cry_python_sdk-0.3.0.tar.gz.
File metadata
- Download URL: demon_cry_python_sdk-0.3.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1083e6d1012cd373e7a9dd9ba7a0ebaae8f61fe29ef8f51b79c7c48581a32d33
|
|
| MD5 |
773b375fc4247a4dd43cc9c5eb02d0b1
|
|
| BLAKE2b-256 |
112d2a852c5b17cb2a024054cf3eb2de567a2183b1e155e8527b13834b25227f
|
Provenance
The following attestation bundles were made for demon_cry_python_sdk-0.3.0.tar.gz:
Publisher:
publish.yml on Mooncore-inc/demon-cry-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
demon_cry_python_sdk-0.3.0.tar.gz -
Subject digest:
1083e6d1012cd373e7a9dd9ba7a0ebaae8f61fe29ef8f51b79c7c48581a32d33 - Sigstore transparency entry: 2383538664
- Sigstore integration time:
-
Permalink:
Mooncore-inc/demon-cry-python-sdk@f3634ba4d94f8bf81e98e5260c5b02ec3c16da7d -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Mooncore-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f3634ba4d94f8bf81e98e5260c5b02ec3c16da7d -
Trigger Event:
push
-
Statement type:
File details
Details for the file demon_cry_python_sdk-0.3.0-py3-none-any.whl.
File metadata
- Download URL: demon_cry_python_sdk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bcb47be8b16c1bc42c8518aab9dc5e17d006c15437ccf99b19ecf6b6df81310
|
|
| MD5 |
2db64aea452c4cff93af8557084e822e
|
|
| BLAKE2b-256 |
20d5197e93e44616d71d26520db543a64000496de68a2cefb0e179bd34e3dfa4
|
Provenance
The following attestation bundles were made for demon_cry_python_sdk-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on Mooncore-inc/demon-cry-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
demon_cry_python_sdk-0.3.0-py3-none-any.whl -
Subject digest:
1bcb47be8b16c1bc42c8518aab9dc5e17d006c15437ccf99b19ecf6b6df81310 - Sigstore transparency entry: 2383539004
- Sigstore integration time:
-
Permalink:
Mooncore-inc/demon-cry-python-sdk@f3634ba4d94f8bf81e98e5260c5b02ec3c16da7d -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Mooncore-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f3634ba4d94f8bf81e98e5260c5b02ec3c16da7d -
Trigger Event:
push
-
Statement type: