Skip to main content

🎨 Artbot – Convertisseur d'images en ASCII

Artbot est un outil Python permettant de :

  • Scraper les images d'une page web (comme Unsplash),
  • Télécharger une image à un index donné,
  • Appliquer un redimensionnement et un flou optionnel,
  • Convertir l'image en ASCII art,
  • Générer un fichier HTML,
  • Ou servir le résultat via une API FastAPI.

⚙️ Option 1 — Exécution en local (via GitHub)

🔧 Installation

Assurez-vous d’avoir Python 3.8+ installé.

git clone https://github.com/NoaYnov/ArtBot
cd ArtBot
pip install -e .

▶️ Utilisation

python -m artbot --url <PAGE_URL> --index <N> [--blur <RAYON>] [--size <LARGEUR>]

Exemple :

python -m artbot --url https://unsplash.com/fr --index 3 --blur 2 --size 80

📦 Option 2 — Installation via PyPI (comme un module)

Le package est disponible sur PyPI sous le nom artbot-Philippe-Noa.

🔧 Installation

pip install artbot-Philippe-Noa

▶️ Utilisation via console :

artbot --url <PAGE_URL> --index <N> [--blur <RAYON>] [--size <LARGEUR>]

Si la commande artbot n’est pas reconnue :

py -m artbot --url <PAGE_URL> --index <N> [--blur <RAYON>] [--size <LARGEUR>]

🌐 Lancer l'API FastAPI

Depuis n’importe quelle version installée :

artbot --serve

ou

py -m artbot --serve

Endpoint disponible

POST /ascii

Retourne le contenu HTML généré (ascii_art.html).


📂 Structure du projet

artbot/
├── __main__.py            # Point d'entrée CLI + API
├── api.py                 # Serveur FastAPI
├── fetch_images.py        # Scraping & téléchargement
├── pixel_to_ascii.py      # Conversion image → ASCII
img/
├── img.jpg                # Image brute
├── processed_img.jpg      # Image floutée/redimensionnée
result/
├── ascii_art.html         # Résultat HTML

setup.py
README.md

📄 Licence

Ce projet est sous licence MIT.

Metadata

Release files for artbot-Philippe-Noa 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for artbot-Philippe-Noa 0.2.4
File Size Uploaded
artbot_philippe_noa-0.2.4.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for artbot-Philippe-Noa 0.2.4
File Interpreter ABI Platform
artbot_philippe_noa-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / artbot_philippe_noa-0.2.4.tar.gz

Download URL artbot_philippe_noa-0.2.4.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f500244c2e86efdaf1503d36ba34bef04b37dc503f00cbd17cb6c7caf312a175
BLAKE2b-256 checksum
How to use checksums
22993d794a571b7269c323882841cf8600d7beec2b1da2ed0a464b4ce2bee369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / artbot_philippe_noa-0.2.4-py3-none-any.whl

Download URL artbot_philippe_noa-0.2.4-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69b1d551aa3a41a61aa9db4d102e40bea1ddec59b158e3a6f0ef7cee8dffa571
BLAKE2b-256 checksum
How to use checksums
1264f5e29f96c333d9b7d84afa56f1efc553baad9faf6dea4b20f55c7a793ca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

1 release file

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page