Skip to main content

Un convertisseur d'images vers ASCII à partir d'URLs Unsplash

Project description

🎨 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.

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

artbot_philippe_noa-0.1.7.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

artbot_philippe_noa-0.1.7-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file artbot_philippe_noa-0.1.7.tar.gz.

File metadata

  • Download URL: artbot_philippe_noa-0.1.7.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for artbot_philippe_noa-0.1.7.tar.gz
Algorithm Hash digest
SHA256 af47af1e0f30ebc8eb4228d741d5c52cb1e827e0af91e1aaeadadf6f28f068bc
MD5 94139a1f75f2b3be74bd230c949105a9
BLAKE2b-256 6fd191be310425e29e38636e0adc68cfa6bb15cd46d02f8bd19b8e8c3419aaf3

See more details on using hashes here.

File details

Details for the file artbot_philippe_noa-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for artbot_philippe_noa-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0e7f6f304b5981a9fec48429c652506c1529667a3e8112541fffdb507fa55b
MD5 51676794d00f8360bd5307ab68b4be48
BLAKE2b-256 e3ac0f6bfe6e70c009c25894cac4a47e270ac9e1147991a6ba7982c70891dc6c

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