Générateur d’images DALL·E avec prompt texte et customisation
Project description
🖥️ logo-generator-cli
Générateur de logos automatisés en ligne de commande via DALL·E 3 & Python.
🚀 À propos
logo-generator-cli est un outil Python en ligne de commande permettant de générer automatiquement des logos stylés via l’API DALL·E 3.
Il ajoute un texte personnalisé avec glitch et vous permet de créer des modèles réutilisables (presets).
Fonctionnalités principales
- Génération d’images DALL·E 3 en 1:1
- Ajout de texte stylisé (police, taille, couleur, glitch)
- Interface CLI interactive
- Enregistrement & rechargement de modèles
- Gestion des presets (afficher, modifier, supprimer)
- Copie automatique vers
/var/www/html/si besoin
⚙️ Prérequis
Python 3.10+
pip install -r requirements.txt
Contenu du fichier .env :
OPENAI_API_KEY=sk-votre-clé-openai
Facultatifs :
Facultatif (compile, install fonts, generate preset, ...)
Fonts:
bash installfont.sh
Add a Preset dans presets.json :
bash add-preset.sh
Compiler (facultatif)
pyinstaller --onefile menu.py --add-data "presets.json:." --add-data ".env:."
or
wget https://github.com/trh4ckn0n/trkn-dalletxt/releases/download/V1/menu && chmod +x menu && ./menu
🧠 Exemple d'utilisation
python menu.py
Utilisation compilé
./dist/menu
Utilisez les flèches pour naviguer dans le menu, choisissez un style, un texte, une couleur... et laissez faire la magie.
📁 Structure du projet
logo-generator-cli/
│
├── menu.py # Menu principal
├── presets.py # Logique de génération + gestion
├── add-preset.sh # Ajouter un modele prédéfini a presets.json interactivement
├── installfont.sh # Ajoutez des polices dans uploads/ a partir de l'archive zip uploads-fonts.zip
├── presets.json # Modèles sauvegardés (auto)
├── dist/ # Dossier contenant l'executable apres avoir compiler avec pyinstaller
│ └── menu # Executable
├── uploads/ # Dossier contenant les polices perso
│ └── Glitch_Paradise.ttf # Police glitch personnalisée
│ └── *.ttf
├── .env # Clé API OpenAI
├── README.md # Ce fichier
✨ Exemple visuel
🧩 Exemples de presets enregistrés
{
"cyber_banger": {
"nom_logo": "BANG3R",
"texte_overlay": "Hack The Logo",
"style": "Cyberpunk Hacker",
"taille_police": 120,
"glitch": true,
"couleur_rgb": [255, 0, 0],
"nombre_logo": 1
}
}
🛠️ Personnalisation à venir ?
- Génération batch avec variations
- Export ZIP automatique
- Aperçu graphique local
- Interface web Flask / Gradio
🤖 Crédit IA
Les images sont générées avec DALL·E 3 via l’API OpenAI.
Le design de ce projet a été assisté par ChatGPT.
❤️ Merci
Si ce projet t’a aidé à créer des logos stylés sans te ruiner :
Soutiens le développeur ici
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
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 trkn_dalletxt-0.1.0.tar.gz.
File metadata
- Download URL: trkn_dalletxt-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc43fdd10de649401ab05119898ce607fe7fd1c2238a7131f7950bc1e7311500
|
|
| MD5 |
4df39376e7f359104615eb09b5777369
|
|
| BLAKE2b-256 |
e73cbe239c2b2f3cdd5ae7685b74a9403abe397a321247166dc4ad3dc00e09f6
|
Provenance
The following attestation bundles were made for trkn_dalletxt-0.1.0.tar.gz:
Publisher:
python-publish.yml on trh4ckn0n/trkn-dalletxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trkn_dalletxt-0.1.0.tar.gz -
Subject digest:
cc43fdd10de649401ab05119898ce607fe7fd1c2238a7131f7950bc1e7311500 - Sigstore transparency entry: 195291354
- Sigstore integration time:
-
Permalink:
trh4ckn0n/trkn-dalletxt@d8e242485e837d43a6137693a3c8a6fde5561f33 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trh4ckn0n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d8e242485e837d43a6137693a3c8a6fde5561f33 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file trkn_dalletxt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trkn_dalletxt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
921033cc797b954b72d7ea4508c0a7325cba666499de842b2efd83d270411c3d
|
|
| MD5 |
d108592b7971c2450429d135b124e603
|
|
| BLAKE2b-256 |
d94071f583568316bd976302947ee95217afba55f4b92d60109eaacc9cf8355b
|
Provenance
The following attestation bundles were made for trkn_dalletxt-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on trh4ckn0n/trkn-dalletxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trkn_dalletxt-0.1.0-py3-none-any.whl -
Subject digest:
921033cc797b954b72d7ea4508c0a7325cba666499de842b2efd83d270411c3d - Sigstore transparency entry: 195291356
- Sigstore integration time:
-
Permalink:
trh4ckn0n/trkn-dalletxt@d8e242485e837d43a6137693a3c8a6fde5561f33 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trh4ckn0n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d8e242485e837d43a6137693a3c8a6fde5561f33 -
Trigger Event:
workflow_dispatch
-
Statement type: