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.10.tar.gz (13.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.10-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aztec_code_generator-0.10.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for aztec_code_generator-0.10.tar.gz
Algorithm Hash digest
SHA256 6395719186e1b892cab71f1c435b2840be3f74313fb0e8e7193a5f4aa124690d
MD5 bb1f3a39a1e01797a48310a4ecb37d50
BLAKE2b-256 ea9752dfc4a0a3c0b36211a7197cdc34a73c46063105b20d76cd33b89bbdef56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aztec_code_generator-0.10-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for aztec_code_generator-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d6341d42ccf1c7f9226ca472814ff94f800c93a65e5dcbf4a98a321bf71d4265
MD5 9b6002fbeca1de000c0be83e3a687c27
BLAKE2b-256 26c9cc5291b0177b61e781a293d6762d529880c47672873336ea226c2f53ca76

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