This project is a Flask API that generates EAN-8 barcodes in PNG format.
- Python 3.x
- Flask
- python-barcode
- Pillow
-
Clone the repository:
git clone https://github.com/bymcs/ean8-barcode.git cd ean8-barcode
-
Install the required packages using pip:
pip install -r requirements.txt
-
Run the Flask application:
python main.py
-
Access the API at:
http://localhost:2222/ean8/<code>
http://<your-ip>:2222/ean8/<code>
http://localhost:2222/ean8/base64/<code>
http://<your-ip>:2222/ean8/base64/<code>
To get the PNG image of the EAN-8 barcode, use the following command:
curl http://localhost:2222/ean8/22293992