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 :)”.
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.
## # ## ####
# ## ##### ###
# ## # # # ###
## # # ## ##
## # # # #
## ############ # #
### # ### #
## # ##### # ## #
# # # # ##
# # # # # # ###
## # # ## ##
#### # ##### ## #
# ## ## ##
## ########### #
## # ## ## #
## # ### # ##
############
## # # ## #
## # ## ### #
License
Released under The MIT License.
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(10.2 kB
view details)
File details
Details for the file aztec_code_generator-0.1.tar.gz.
File metadata
- Download URL: aztec_code_generator-0.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed8a8b3ac9b94f11cb2471606226d72c5b0183c69376a423378d3216746fe52
|
|
| MD5 |
bab10ab7e557770dc2aed1e47d9e6a41
|
|
| BLAKE2b-256 |
4ddeb1867264f1a9ee2308ec7788af4c1227a13ee5c8a57e820c486b870ae833
|