ColorCode
A library that creates multi-colored Aztec codes. They are actually multiple Aztec codes, merged into a single image. Usually they are each on a separate color channel.
Command line tool
This package comes with the colorcode command, that creates a color code.
For instance:
colorcode "Hello World" "Python 3 RuleZ" "Let's go Aztec"
Will create a code with data Hello World, Python 3 RuleZ and Let's go Aztec. Each data string must be surrounded by quotes if you run the command from a shell, because each parameter to the command becomes a separate data set.
You can override default settings with various parameters:
colorcode -o mycode.png -m 4 -i redcyan "Hello World" "Python 3 RuleZ"
-o mycode.png means “Save the image to the file mycode.png”
-m 4 means “Each square block (aka module) will have a size of 4x4 pixels”
-i redcyan means “Use the Red/Cyan method to combine the codes instead of the default”
By default the combination method is chosen automatically depending on the number of data entries.
There are more parameters, you can find them out with --help as usual.
You can also run the command as a Python module: python3 -m colorcode.
About the project
Don’t expect the project to be improved or maintained in the future. This was mostly a learning project for me, to learn about Cython, Sphinx docs, Python packagaing and Aztec codes.
It works, and it’s fun, so I share it. But it’s currently mostly useless. There is no app to decode the codes and I don’t plan to make one.
Anyway, I hope you will find this project interesting and inspiring.
Metadata
Release files for colorcode 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colorcode-1.0.2.tar.gz | 117.8 kB | Without provenance | Details for colorcode-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorcode-1.0.2-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details for colorcode-1.0.2-cp37-cp37m-win_amd64.whl |
Total release size: 202.8 kB
Release files / colorcode-1.0.2.tar.gz
| Download URL | colorcode-1.0.2.tar.gz |
|---|---|
| Size | 117.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1326ec299cb329fccd2747a024b1f94a7726fd1526acaa64064a7f3238de73e5
|
|
BLAKE2b-256 checksum How to use checksums |
33a75446cb5c02bb5c6ea465e86ae13da37a43bed7ac0059ee2d9a976ebbe474
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / colorcode-1.0.2-cp37-cp37m-win_amd64.whl
| Download URL | colorcode-1.0.2-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 85.0 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a8d76c627c644ab3b1078292abe796e2aa51dc393fcfc41c20a8763bbf385f9b
|
|
BLAKE2b-256 checksum How to use checksums |
207aebc179271929180ed01a0d5742cc5f69aaf5b7859c69963e2e18e814735b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for colorcode 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.