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.9.tar.gz (13.4 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.9-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aztec_code_generator-0.9.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • 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.9.tar.gz
Algorithm Hash digest
SHA256 eddfd1c10d2dd39e25defd3c4891cea607d8c6891d19bce0525ba18b83bae34d
MD5 afb0185e44c8c84cd795f72dcdc57ca8
BLAKE2b-256 eb663a97401e964766afb642d1f51f79609b1bb4aa4d79cb1e66897f0dbb5b92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aztec_code_generator-0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 10839fcfa9ebf0013ea90c68a706ece7ace07df6ab943110fca5419cdbc1596f
MD5 435ea5064144d6791bd7fc77b2ba1fa9
BLAKE2b-256 90e8dcb09582d2dce40c04731c9f4b333e598ae58e65c97ea2f110abbc0db80a

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