Skip to main content

🔍 Demon Cry Python SDK

License: MIT Python 3.12+

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}")

📄 Лицензия

MIT © Mooncore Inc

Download files

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

Source Distribution

demon_cry_python_sdk-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

demon_cry_python_sdk-0.3.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for demon_cry_python_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1083e6d1012cd373e7a9dd9ba7a0ebaae8f61fe29ef8f51b79c7c48581a32d33
MD5 773b375fc4247a4dd43cc9c5eb02d0b1
BLAKE2b-256 112d2a852c5b17cb2a024054cf3eb2de567a2183b1e155e8527b13834b25227f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file demon_cry_python_sdk-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for demon_cry_python_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bcb47be8b16c1bc42c8518aab9dc5e17d006c15437ccf99b19ecf6b6df81310
MD5 2db64aea452c4cff93af8557084e822e
BLAKE2b-256 20d5197e93e44616d71d26520db543a64000496de68a2cefb0e179bd34e3dfa4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.3

2 files

0.2.2

2 files

Supported by

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