Skip to main content

Aztec Code generator in Python

Project description

Aztec Code generator in Python

Dependencies

Pillow - Python Imaging Library

Usage

data = 'Aztec Code 2D :)'
aztec_code = AztecCode(data)
aztec_code.save('aztec_code.png', module_size=4)

This code will generate an image file aztec_code.png of an Aztec Code containing the text “Aztec Code 2D :)”.

Aztec Code with data
data = 'Aztec Code 2D :)'
aztec_code = AztecCode(data)
aztec_code.print_out()

This code will print out the resulting 19×19 (compact) Aztec Code to standard output as text.

      ##  # ## ####
 #   ## #####  ###
 #  ##  # #   # ###
## #  #    ## ##
    ## # #    # #
## ############ # #
 ### #       ###  #
##   # ##### # ## #
 #   # #   # ##
 # # # # # # ###
    ## #   # ## ##
#### # ##### ## #
  # ##       ## ##
 ##  ########### #
  ##    # ##   ## #
     ## # ### #  ##
      ############
##   #     # ##   #
##  #    ## ###   #

Authors

Written by Dmitry Alimov (delimtry) and packaged by Daniel Lenski (dlenski).

License

Released under The MIT License.

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

aztec_code_generator-0.6.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

aztec_code_generator-0.6-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file aztec_code_generator-0.6.tar.gz.

File metadata

  • Download URL: aztec_code_generator-0.6.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.5.6

File hashes

Hashes for aztec_code_generator-0.6.tar.gz
Algorithm Hash digest
SHA256 cfb0ebf051588579354b54bf575534f7d1d3234981cefc739655856a1aa3d110
MD5 3b6993d7fdcdc8353773f18bbff74529
BLAKE2b-256 1749879e79a010ecdc50314a87ae8f73c7c447c8feb9b3c525ea66ad43f63a28

See more details on using hashes here.

File details

Details for the file aztec_code_generator-0.6-py3-none-any.whl.

File metadata

  • Download URL: aztec_code_generator-0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for aztec_code_generator-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 69c745b30cb0852cf52ecc42d9e2e70740e11a26b377af89a5bec879756b0c23
MD5 de9cea1f3bfdf59346363c472c7fd671
BLAKE2b-256 f82e7cd7cbef44ff730f36976deea5619454da77992c7075a270eff717bc43bd

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