candy-ai v19 — 120 personnalités, ImageGen, Smart, Monitor, Multi-agents, CLI avancé.
Project description
🍬 candy-ai v19
Framework IA Python professionnel — Cedric7-Thinking Engine
pip install candy-ai
Quick Start
from candy import Coding
response = Coding.ask("Write a binary search in Python")
print(response)
Streaming
from candy import Writing
for token in Writing.stream("Write a short story about a lighthouse keeper"):
print(token, end="", flush=True)
Conversations multi-tours
from candy import Conversation, Coding, cfg
cfg.A.lang = "FR"
chat = Conversation(Coding, profile="A")
print(chat.say("Explique les décorateurs Python"))
print(chat.say("Donne-moi un exemple avec une classe"))
chat.show_history()
chat.save("chat.json") # écrase
chat.save("chat.json", append=True) # fusionne avec l'existant
chat.load("chat.json")
🆕 Nouveautés v19
save(append=True)— fusionne l'historique sans écraser l'ancien- Bannière stable (plus de mention BETA)
- Corrections mineures de stabilité
ImageGen — Génération d'images
from candy import ImageGen
ImageGen.create("un chat astronaute sur la lune", save="chat.png")
ImageGen.create(
"portrait d'un robot steampunk",
style="photorealistic",
size="1024x1024",
save="robot.png"
)
ImageGen.variation("original.png", strength=0.6, save="variation.png")
desc = ImageGen.describe("photo.jpg", lang="FR")
images = ImageGen.batch(["forêt", "ville", "portrait"], save_dir="./output/")
print(ImageGen.styles())
Context support
from candy import Analytic
data = """
Month,Revenue
Jan,12000
Feb,15400
"""
response = Analytic.ask("What trend do you see?", context=data)
print(response)
Check your quota
from candy import Math
print(Math.quota())
# {'ip': '...', 'quota_used_today': 12, 'quota_limit': 500, 'quota_remaining': 488}
Available personalities (120)
| Import | Domain |
|---|---|
Math |
Mathematics |
Coding |
Software engineering |
Reflexion |
Deep thinking & philosophy |
Analytic |
Data analysis |
Full |
All domains combined |
Science |
Multi-disciplinary science |
Writing |
Creative & technical writing |
History |
World history |
Law |
Legal concepts |
Medicine |
Medical knowledge |
Finance |
Finance & investment |
Marketing |
Growth & marketing |
Security |
Cybersecurity |
Design |
UI/UX & graphic design |
Language |
Translation & linguistics |
Psychology |
Human behavior |
Education |
Pedagogy & teaching |
Research |
Academic research |
Business |
Strategy & consulting |
Productivity |
Efficiency & systems |
Cooking |
Recipes & nutrition |
Travel |
Trip planning |
Music |
Music theory & production |
Film |
Cinema & screenwriting |
Sports |
Sports analysis & coaching |
Philosophy |
Ethics & metaphysics |
Environment |
Ecology & sustainability |
Architecture |
Building & urban design |
Automotive |
Vehicles & mechanics |
Astronomy |
Astrophysics & space |
Biology |
Life sciences |
Chemistry |
Chemical science |
Physics |
Classical & quantum physics |
Engineering |
Multi-discipline engineering |
Entrepreneur |
Startups & ventures |
Ethics |
Applied moral philosophy |
Geopolitics |
International relations |
Crypto |
Blockchain & DeFi |
AI |
Machine learning & AI |
DevOps |
Cloud & infrastructure |
Database |
DB design & optimization |
GameDev |
Game development |
Comic |
Humor & comedy writing |
Storyteller |
Narrative & fiction |
Translator |
Professional translation |
Summarizer |
Content summarization |
Debugger |
Bug finding & fixing |
Reviewer |
Code & content review |
Planner |
Project planning |
Tutor |
Adaptive teaching |
Nutrition |
Nutrition & diet |
Yoga |
Yoga & wellness |
Mindfulness |
Mindfulness & meditation |
Parenting |
Parenting & family |
Relationship |
Relationships & communication |
Leadership |
Leadership & management |
Negotiation |
Negotiation & persuasion |
PublicSpeak |
Public speaking |
Branding |
Brand strategy |
UXResearch |
UX research |
DataVis |
Data visualization |
MLOps |
ML operations |
Prompt |
Prompt engineering |
Blockchain |
Blockchain & Web3 |
IoT |
Internet of Things |
ArVr |
AR/VR development |
Quantum |
Quantum computing |
Robotics |
Robotics & automation |
Bioinformatics |
Bioinformatics |
ClimateTech |
Climate technology |
Agri |
Agriculture & food |
Interior |
Interior design |
Fashion |
Fashion & style |
Photography |
Photography & editing |
Podcast |
Podcasting |
Youtube |
YouTube strategy |
SocialMedia |
Social media |
SEO |
Search engine optimization |
Copywriting |
Copywriting & ads |
TaxLaw |
Tax law |
RealEstate |
Real estate |
Insurance |
Insurance |
Logistics |
Logistics & supply chain |
HRM |
Human resources |
ProjectMgmt |
Project management |
Consulting |
Business consulting |
PublicPolicy |
Public policy |
Journalism |
Journalism & media |
SpeechWrite |
Speechwriting |
Mythology |
Mythology & folklore |
Screenwriting |
Screenwriting & scripts |
Comics |
Comics & graphic novels |
Animation |
Animation & motion |
GameDesign |
Game design |
VFX |
Visual effects |
Cybersecurity |
Cybersecurity |
CloudArch |
Cloud architecture |
DataScience |
Data science |
Neuroscience |
Neuroscience |
SpaceScience |
Space science |
Materials |
Materials science |
Oceanography |
Oceanography |
Venture |
Venture capital |
Trading |
Trading & markets |
Ecommerce |
E-commerce |
SupplyChain |
Supply chain |
Accounting |
Accounting & finance |
MentalHealth |
Mental health |
Fitness |
Fitness & training |
Sleep |
Sleep science |
Longevity |
Longevity & health |
Sociology |
Sociology |
Linguistics |
Linguistics |
Anthropology |
Anthropology |
Education2 |
Advanced education |
Sports2 |
Advanced sports |
Futurism |
Futurism & trends |
Sustainability |
Sustainability |
SmartCity |
Smart cities |
Web3 |
Web3 & decentralization |
PromptEng2 |
Advanced prompt engineering |
Powered by Cedric7-Thinking
candy connects to the Cedric7-Thinking engine.
Usage is subject to a daily quota (500 requests/day by default).
License
MIT
Project details
Release history Release notifications | RSS feed
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-19.0.0.tar.gz
(57.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
candy_ai-19.0.0-py3-none-any.whl
(85.4 kB
view details)
File details
Details for the file candy_ai-19.0.0.tar.gz.
File metadata
- Download URL: candy_ai-19.0.0.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aba0d477b10eb001086fc4cc7fd0fd72164503884679fbf71d769c1974075147
|
|
| MD5 |
e98d6208f4beec1ab5e4d74e37134ab4
|
|
| BLAKE2b-256 |
d2e4147bf85c3a23c7932fd981f05ddbdbe9d7095d7c659e306aeb017795fcfc
|
File details
Details for the file candy_ai-19.0.0-py3-none-any.whl.
File metadata
- Download URL: candy_ai-19.0.0-py3-none-any.whl
- Upload date:
- Size: 85.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b4a2b3b99f778f910a98881c39f1c35f06103c523267a427c735f02a3dc4023
|
|
| MD5 |
098950ac35ead562c4edf9afc87d4835
|
|
| BLAKE2b-256 |
881244bee74229274fde051a4041e49a8a77d6e4f16d4b60cd0137e1970e583c
|