Package: barcodejun
项目说明支持的barcode类型CODE11 # Code 11C25STANDARD # Standard Code 2 of 5C25INTER # Interleaved 2 of 5C25IATA # Code 2 of 5 IATAC25LOGIC # Code 2 of 5 Data LogicC25IND # Code 2 of 5 IndustrialCODE39 # Code 3 of 9 (Code 39)EXCODE39 # Extended Code 3 of 9 (Code 39+)EANX # EAN (EAN-2, EAN-5, EAN-8 and EAN-13)EANX_CHK # EAN + Check DigitGS1_128 # GS1-128 (UCC.EAN-128)CODABAR # CodabarCODE128 # Code 128 (automatic Code Set switching)DPLEIT # Deutsche Post LeitcodeDPIDENT # Deutsche Post IdentcodeCODE16K # Code 16KCODE49 # Code 49CODE93 # Code 93FLAT # FlattermarkenDBAR_OMN # GS1 DataBar Omnidirectional (including GS1 DataBar Truncated)DBAR_LTD # GS1 DataBar LimitedDBAR_EXP # GS1 DataBar ExpandedTELEPEN # Telepen AlphaUPCA # UPC-AUPCA_CHK # UPC-A + Check DigitUPCE # UPC-EUPCE_CHK # UPC-E + Check DigitPOSTNET # POSTNETMSI_PLESSEY # MSI PlesseyFIM # FIMLOGMARS # LOGMARSPHARMA # Pharmacode One-TrackPZN # PZNPHARMA_TWO # Pharmacode Two-TrackCEPNET # Brazilian CEPNetPDF417 # PDF417PDF417COMP # Compact PDF417 (Truncated PDF417)MAXICODE # MaxiCodeQRCODE # QR CodeCODE128AB # Code 128 (Suppress Code Set C)AUSPOST # Australia Post Standard CustomerAUSREPLY # Australia Post Reply PaidAUSROUTE # Australia Post RoutingAUSDIRECT # Australia Post RedirectionISBNX # ISBN (EAN-13 with verification stage)RM4SCC # Royal Mail 4-State Customer Code (RM4SCC)DATAMATRIX # Data Matrix (ECC200)，GS1 DatamatrixEAN14 # EAN-14VIN # Vehicle Identification NumberCODABLOCKF # Codablock-FNVE18 # NVE-18 (SSCC-18)JAPANPOST # Japanese Postal CodeKOREAPOST # Korea PostDBAR_STK # GS1 DataBar StackedDBAR_OMNSTK # GS1 DataBar Stacked OmnidirectionalDBAR_EXPSTK # GS1 DataBar Expanded StackedPLANET # PLANETMICROPDF417 # MicroPDF417USPS_IMAIL # USPS Intelligent Mail (OneCode)PLESSEY # UK PlesseyTELEPEN_NUM # Telepen NumericITF14 # ITF-14KIX # Dutch Post KIX CodeAZTEC # Aztec CodeDAFT # DAFT CodeDPD # DPD CodeMICROQR # Micro QR CodeHIBC_128 # HIBC Code 128HIBC_39 # HIBC Code 39HIBC_DM # HIBC Data Matrix ECC200HIBC_QR # HIBC QR CodeHIBC_PDF # HIBC PDF417HIBC_MICPDF # HIBC MicroPDF417HIBC_BLOCKF # HIBC Codablock-FHIBC_AZTEC # HIBC Aztec CodeDOTCODE # DotCodeHANXIN # Han Xin (Chinese Sensible) CodeMAILMARK_2D # Royal Mail 2D Mailmark (CMDM) (DataMatrix)MAILMARK_4S # Royal Mail 4-State MailmarkAZRUNE # Aztec RunesCODE32 # Code 32EANX_CC # GS1 Composite Symbol with EAN linearcomponentGS1_128_CC # GS1 Composite Symbol with GS1-128 linearcomponentDBAR_OMN_CC # GS1 Composite Symbol with GS1 DataBarOmnidirectional linear componentDBAR_LTD_CC # GS1 Composite Symbol with GS1 DataBarLimited linear componentDBAR_EXP_CC # GS1 Composite Symbol with GS1 DataBarExpanded linear componentUPCA_CC # GS1 Composite Symbol with UPC-A linear componentUPCE_CC # GS1 Composite Symbol with UPC-E linearDBAR_STK_CC # GS1 Composite Symbol with GS1 DataBar Stacked componentDBAR_OMNSTK_CC # GS1 Composite Symbol with GS1 DataBar Stacked Omnidirectional componentDBAR_EXPSTK_CC # GS1 Composite Symbol with GS1 DataBar Expanded Stacked componentCHANNEL # Channel CodeCODEONE # Code OneGRIDMATRIX # Grid MatrixUPNQR # UPNQR (Univerzalnega Plačilnega Naloga QR)ULTRA # UltracodeRMQR # Rectangular Micro QR Code (rMQR)BC412 # IBM BC412 (SEMI T1-95)安装相应的环境Linux```
$ sudo apt install git cmake build-essential libpng-dev
$ git clone https://git.code.sf.net/p/zint/code zint
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
```MacOS```
# 安装brew 已安装可以忽略
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew update
$ brew install zint
```使用说明安装barcodejun库1pip install barcodejun2# 进入项目目录
$ cd $YourProjectPath
$ pip install git+https://github.com/ElevenTreeHole/barcodejun.git@v1.0.03# 克隆代码
$ git clone git@github.com:ElevenTreeHole/barcodejun.git /path/to/barcodejun
# 进入项目目录
$ cd $YourProjectPath
$ pip install /path/to/barcodejun示例from barcodejun import BarcodeData, BarcodeType, BarcodeVers, Barcode

barcode_data = BarcodeData(
    data="[420]77030[94]00136105440331666909",
    barcode=BarcodeType.DATAMATRIX,
    gs1=True,
    vers=BarcodeVers.SIZE_20_20,
    notext=True,
    direct=True
)
barcode_creator = Barcode()
barcode_creator.generate(data=barcode_data)