Skip to content

bymcs/ean8-barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EAN-8 Barcode Generator API

This project is a Flask API that generates EAN-8 barcodes in PNG format.

Requirements

  • Python 3.x
  • Flask
  • python-barcode
  • Pillow

Installation

  1. Clone the repository:

    git clone https://github.com/bymcs/ean8-barcode.git
    cd ean8-barcode
  2. Install the required packages using pip:

    pip install -r requirements.txt

Usage

  1. Run the Flask application:

    python main.py
  2. 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>

Example

To get the PNG image of the EAN-8 barcode, use the following command:

curl http://localhost:2222/ean8/22293992

About

EAN-8 Barcode Generator API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages