Skip to main content

Client Python pour Cedric7-Thinking — 50 personnalités, Helper, CLI, fichiers .cdy, profils, conversations, batch, streaming.

Project description

🍬 candy-ai v10

Client Python pour cedric-8EF — moteur IA multi-personnalités.
Zéro configuration · 50 personnalités · CLI · Helper · Fichiers .cdy · Profils · Conversations


Installation

pip install candy-ai

CLI — Commandes terminal

candy helper — Fenêtre Helper

candy helper

Ouvre une fenêtre graphique où tu décris ce que tu veux faire. Le code candy est généré automatiquement. Tu peux :

  • Exécuter le code directement
  • 💾 Enregistrer en .cdy
  • Utiliser les templates rapides (livre, traduction, chatbot, pipeline...)

candy -- script.cdy — Exécuter un fichier .cdy

candy -- mon_script.cdy

Les fichiers .cdy sont du code Python candy avec une extension dédiée. Tu peux les créer depuis la fenêtre Helper ou à la main.

Exemple bonjour.cdy :

from candy import cfg, Coding

cfg.default.lang  = "FR"
cfg.default.style = "concise"

print(Coding.ask("Dis bonjour en 3 langues"))
candy -- bonjour.cdy

🤖 Helper — Génère du code candy

from candy import Helper

Helper.list()   # templates disponibles

# Générer du code
code = Helper.write("livre", sujet="Napoléon", lang="FR", chapitres=20)
Helper.run("chatbot", lang="FR", module="Full")
Helper.preview("pipeline", tache="analyser un CSV", lang="FR")

Templates :

Template Description
livre Livre de N chapitres
traduction Traduire vers plusieurs langues
chatbot Chatbot interactif
pipeline Coding → Debugger → Reviewer
batch Plusieurs questions d'un coup
résumé Résumer un texte
question Poser une question

Profils

from candy import cfg, Coding

cfg.A.lang       = "FR"
cfg.A.max_tokens = 2000
cfg.A.style      = "detailed"

cfg.A = cfg.preset("french_beginner")
cfg.default.lang = "FR"

print(Coding.ask("Hello"))
print(Coding.use("A").ask("Explique les listes"))

Presets : french_beginner french_expert english_beginner english_expert quick academic creative teacher coder journalist storyteller analyst coach debug


Tous les paramètres

Paramètre Défaut Valeurs
lang "EN" FR EN ES DE IT PT ZH JA AR RU NL PL SV TR KO HI VI ID CS RO
max_tokens 1024 1004096
temperature 0.7 0.01.5
style "default" default concise detailed bullet academic casual technical eli5
tone "neutral" neutral encouraging strict humorous empathetic socratic
output_format "text" text markdown json html
expertise "intermediate" beginner intermediate expert
include_examples True True / False
safe_mode True True / False
timeout 120 secondes
retry 1 tentatives
verbose False True = logs des requêtes

Conversations multi-tours

session = Coding.chat(profile="A")
print(session.say("Explique les décorateurs"))
print(session.say("Donne un exemple"))
session.save("chat.json")

Batch · Streaming · Utilitaires

# Batch
réponses = Coding.use("A").batch(["Q1 ?", "Q2 ?", "Q3 ?"])

# Streaming
Writing.use("A").stream_print("Écris une histoire")

# Utilitaires
Coding.is_online()
Coding.ping()
Coding.quota()
cfg.A.reset()

Les 50 personnalités

Math Coding Reflexion Analytic Full Science Writing History Law Medicine Finance Marketing Security Design Language Psychology Education Research Business Productivity Cooking Travel Music Film Sports Philosophy Environment Architecture Automotive Astronomy Biology Chemistry Physics Engineering Entrepreneur Ethics Geopolitics Crypto AI DevOps Database GameDev Comic Storyteller Translator Summarizer Debugger Reviewer Planner Tutor


Propulsé par cedric-8EF · Quota 500 req/jour · MIT License

Project details


Download files

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

Source Distribution

candy_ai-11.0.0.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

candy_ai-11.0.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file candy_ai-11.0.0.tar.gz.

File metadata

  • Download URL: candy_ai-11.0.0.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for candy_ai-11.0.0.tar.gz
Algorithm Hash digest
SHA256 3a59a776c27748d6016754f5b71ae8e01bf8e85c9d692ecb87a2149aeb9c26e7
MD5 292c6ea7cc50592e6a3b1a0fdbb440a6
BLAKE2b-256 8b2ff1264b61a6dc4e7a6c627d67875dbafd9d141ffd16f1083f289889ae13ae

See more details on using hashes here.

File details

Details for the file candy_ai-11.0.0-py3-none-any.whl.

File metadata

  • Download URL: candy_ai-11.0.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for candy_ai-11.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebea0ee6d164675de5613bcadf54601cfbfb0e2d1f4a22373691a00a0455d7fe
MD5 79169191bd90874568322740243d1f01
BLAKE2b-256 d8c02e6f075a6aed04948ed11ddbb8a526d43a560c37103297d134276aaf7039

See more details on using hashes here.

Supported by

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