sabi-h / qpyr Goto Github PK
View Code? Open in Web Editor NEWPython QR Code generator.
Home Page: https://pypi.org/project/qpyr/
License: Apache License 2.0
Python QR Code generator.
Home Page: https://pypi.org/project/qpyr/
License: Apache License 2.0
>>> from qpyr import main
>>> main("a" * 2331)
array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]])
>>> main("a" * 2332)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/qpyr/qpyr/main.py", line 6, in main
version, binary_str = encode(data, ecl=ecl)
^^^^^^^^^^^^^^^^^^^^^
File "/qpyr/qpyr/encode.py", line 111, in encode
version = get_best_version(data_segment, mode, ecl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/qpyr/qpyr/encode.py", line 71, in get_best_version
raise ValueError("Data too long")
ValueError: Data too long
>>>
Use pure python instead of numpy arrays.
Characters beyond Latin-1 are not supported. For example the first character from Latin Extended-A throws ValueError: Mode not supported
.
>>> from qpyr import main
>>> main("ฤ")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/qpyr/qpyr/main.py", line 6, in main
version, binary_str = encode(data, ecl=ecl)
^^^^^^^^^^^^^^^^^^^^^
File "/qpyr/qpyr/encode.py", line 106, in encode
mode = get_best_mode(data)
^^^^^^^^^^^^^^^^^^^
File "/qpyr/qpyr/encode.py", line 26, in get_best_mode
raise ValueError("Mode not supported")
ValueError: Mode not supported
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.