Segno Quark: Plugin for creating more advanced (or less usefull) QR Code SVG documents
This (experimental) Segno plugin changes the default SVG output in different ways (i.e. applying SVG filters).
Tested under PyPy, Python 2.7 and Python 3.4. Unlike Segno itself, this package does not work with Python 2.6.
Installation
Use pip to install this quark from PyPI:
$ pip install segno-quark
Usage
Once installed, the quark is automatically detected as Segno plugin and therefore available via qrcode.to_XXX(...).
Available converters
All converters use the same keyword parameters as Segno’s SVG serializer, see segno.QRCode.save() for details.
ETree
Creates a SVG QR Code and returns the SVG document as xml.etree.ElementTree.
Usage: to_etree
This converter provides no additional keyword arguments.
Pacman
Creates a QR Code with a smiley (and optional ghosts).
Usage: to_pacman
Keyword |
Description |
|---|---|
pacman_color |
Color of the smiley, default: #fc0 |
dot_color |
Color of the dots which the smiley should eat, default: #fc0 |
ghosts |
Number of ghosts, default: 5. If set to 0, no ghost appears. Note: Setting this to a very high value may cause an infinite loop iff number of ghosts > number of available dark modules. Additionally, the QR Code may not be readable by common QR Code decoders. The positions of the ghosts are choosen at random. |
ghost_colors |
A tuple of colors which the ghosts may get. Default: ('#ff0c13', '#f2aeaf', '#1bb1e6', '#f97e16') Not all colors may be used, the colors for the ghosts are choosen at random. |
Example:
>>> import segno
>>> qr = segno.make_qr('Ob-La-Di, Ob-La-Da')
>>> qr.to_pacman('obladioblada.svg', scale=10, ghosts=7)
Result:
Glow
Creates a QR Code with a “glow” effect.
Usage: to_glow
Keyword |
Description |
|---|---|
filter_id |
Indicates the id of the filter, default: segno-glow |
deviation |
Indicates the standard deviation for the blur operation, default: .6 |
Example:
>>> import segno
>>> qr = segno.make_qr('Ob-La-Di, Ob-La-Da')
>>> qr.to_glow('obladioblada.svg', scale=10, color='darkblue')
Result:
Blur
Creates a QR Code with a “blur” effect.
Usage: to_blur
Keyword |
Description |
|---|---|
filter_id |
Indicates the id of the filter, default: segno-blur |
deviation |
Indicates the standard deviation for the blur operation, default: .3 |
Example:
>>> import segno
>>> qr = segno.make_qr('Ob-La-Di, Ob-La-Da')
>>> qr.to_blur('obladioblada.svg', scale=10, color='darkred')
Result:
Changes
0.1.1 – 2016-08-18
Initial release
Metadata
Release files for segno-quark 0.1.1
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 |
|---|---|---|---|---|
| segno-quark-0.1.1.tar.gz | 6.4 kB | Without provenance | Details for segno-quark-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| segno_quark-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for segno_quark-0.1.1-py2.py3-none-any.whl |
Total release size: 15.1 kB
Release files / segno-quark-0.1.1.tar.gz
| Download URL | segno-quark-0.1.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
062fd1daeddcad82b15b27c6f31cdf9c48cb2fb05382468d8736f2d1ec0c08af
|
|
BLAKE2b-256 checksum How to use checksums |
98858e32c5150b25b7946b15f96cb2c0d7c0a22ef7777f2f2b8f6250f74a2cde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / segno_quark-0.1.1-py2.py3-none-any.whl
| Download URL | segno_quark-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
163004a365b106762d5a52145c7e055c2cee389f5e3f275f46f1aba6099e72bc
|
|
BLAKE2b-256 checksum How to use checksums |
6310d0b324fa112c2bbf9f7f7a2a4cf3e473538f4a1eddbdabec01485a9a67c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for segno-quark 0.1.1
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.