Import upstream version 1.2.1+git20160619.1.674a77b
Debian Janitor
8 months ago
0 | Metadata-Version: 1.1 | |
0 | Metadata-Version: 2.1 | |
1 | 1 | Name: PyQRCode |
2 | 2 | Version: 1.2.1 |
3 | 3 | Summary: A QR code generator written purely in Python with SVG, EPS, PNG and terminal output. |
5 | 5 | Author: Michael Nooner |
6 | 6 | Author-email: mnooner256@gmail.com |
7 | 7 | License: BSD |
8 | Description: ======== | |
9 | PyQRCode | |
10 | ======== | |
11 | ||
12 | .. contents:: | |
13 | ||
14 | The pyqrcode module is a QR code generator that is simple to use and written | |
15 | in pure python. The module can automates most of the building process for | |
16 | creating QR codes. Most codes can be created using only two lines of code! | |
17 | ||
18 | Unlike other generators, all of the helpers can be controlled manually. You are | |
19 | free to set any or all of the properties of your QR code. | |
20 | ||
21 | QR codes can be saved as SVG, PNG (by using the | |
22 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module), and plain text. They can | |
23 | also be displayed directly in most Linux terminal emulators. PIL is | |
24 | not used to render the image files. | |
25 | ||
26 | The pyqrcode module attempts to follow the QR code standard as closely as | |
27 | possible. The terminology and the encodings used in pyqrcode come directly | |
28 | from the standard. This module also follows the algorithm laid out in the | |
29 | standard. | |
30 | ||
31 | **Homepage**: https://github.com/mnooner256/pyqrcode | |
32 | ||
33 | **Documentation**: http://pythonhosted.org/PyQRCode/ | |
34 | ||
35 | Requirements | |
36 | ============ | |
37 | ||
38 | The pyqrcode module only requires Python 2.6, Python 2.7, or Python 3. You may | |
39 | want to install `pypng <https://pypi.python.org/pypi/pypng/>`_ in order to | |
40 | render PNG files, but it is optional. Note, pypng is a pure python PNG writer | |
41 | which does not require any other libraries. | |
42 | ||
43 | Installation | |
44 | ============ | |
45 | ||
46 | Installation is simple. It can be installed from pip using the following | |
47 | command:: | |
48 | ||
49 | $ pip install pyqrcode | |
50 | ||
51 | Or from the terminal:: | |
52 | ||
53 | $ python setup.py install | |
54 | ||
55 | ||
56 | Usage | |
57 | ===== | |
58 | ||
59 | The pyqrcode module aims to be as simple to use as possible. Below is a simple | |
60 | example of creating a QR code for a URL. The code is rendered out as an svg | |
61 | file. | |
62 | :: | |
63 | ||
64 | >>> import pyqrcode | |
65 | >>> url = pyqrcode.create('http://uca.edu') | |
66 | >>> url.svg('uca-url.svg', scale=8) | |
67 | >>> url.eps('uca-url.eps', scale=2) | |
68 | >>> print(url.terminal(quiet_zone=1)) | |
69 | ||
70 | The pyqrcode module, while easy to use, is powerful. You can set every | |
71 | property of the QR code. If you install the optional | |
72 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module, you can | |
73 | render the code as a PNG image. Below is a more complex example:: | |
74 | ||
75 | >>> big_code = pyqrcode.create('0987654321', error='L', version=27, mode='binary') | |
76 | >>> big_code.png('code.png', scale=6, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc]) | |
77 | >>> big_code.show() | |
78 | ||
79 | 8 | Keywords: qrcode,qr |
80 | Platform: UNKNOWN | |
81 | 9 | Classifier: Development Status :: 4 - Beta |
82 | 10 | Classifier: Environment :: Console |
83 | 11 | Classifier: Intended Audience :: Developers |
90 | 18 | Classifier: Programming Language :: Python :: 3 |
91 | 19 | Classifier: Programming Language :: Python :: 2.6 |
92 | 20 | Classifier: Programming Language :: Python :: 2.7 |
21 | Provides-Extra: PNG | |
22 | ||
23 | ======== | |
24 | PyQRCode | |
25 | ======== | |
26 | ||
27 | .. contents:: | |
28 | ||
29 | The pyqrcode module is a QR code generator that is simple to use and written | |
30 | in pure python. The module can automates most of the building process for | |
31 | creating QR codes. Most codes can be created using only two lines of code! | |
32 | ||
33 | Unlike other generators, all of the helpers can be controlled manually. You are | |
34 | free to set any or all of the properties of your QR code. | |
35 | ||
36 | QR codes can be saved as SVG, PNG (by using the | |
37 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module), and plain text. They can | |
38 | also be displayed directly in most Linux terminal emulators. PIL is | |
39 | not used to render the image files. | |
40 | ||
41 | The pyqrcode module attempts to follow the QR code standard as closely as | |
42 | possible. The terminology and the encodings used in pyqrcode come directly | |
43 | from the standard. This module also follows the algorithm laid out in the | |
44 | standard. | |
45 | ||
46 | **Homepage**: https://github.com/mnooner256/pyqrcode | |
47 | ||
48 | **Documentation**: http://pythonhosted.org/PyQRCode/ | |
49 | ||
50 | Requirements | |
51 | ============ | |
52 | ||
53 | The pyqrcode module only requires Python 2.6, Python 2.7, or Python 3. You may | |
54 | want to install `pypng <https://pypi.python.org/pypi/pypng/>`_ in order to | |
55 | render PNG files, but it is optional. Note, pypng is a pure python PNG writer | |
56 | which does not require any other libraries. | |
57 | ||
58 | Installation | |
59 | ============ | |
60 | ||
61 | Installation is simple. It can be installed from pip using the following | |
62 | command:: | |
63 | ||
64 | $ pip install pyqrcode | |
65 | ||
66 | Or from the terminal:: | |
67 | ||
68 | $ python setup.py install | |
69 | ||
70 | ||
71 | Usage | |
72 | ===== | |
73 | ||
74 | The pyqrcode module aims to be as simple to use as possible. Below is a simple | |
75 | example of creating a QR code for a URL. The code is rendered out as an svg | |
76 | file. | |
77 | :: | |
78 | ||
79 | >>> import pyqrcode | |
80 | >>> url = pyqrcode.create('http://uca.edu') | |
81 | >>> url.svg('uca-url.svg', scale=8) | |
82 | >>> url.eps('uca-url.eps', scale=2) | |
83 | >>> print(url.terminal(quiet_zone=1)) | |
84 | ||
85 | The pyqrcode module, while easy to use, is powerful. You can set every | |
86 | property of the QR code. If you install the optional | |
87 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module, you can | |
88 | render the code as a PNG image. Below is a more complex example:: | |
89 | ||
90 | >>> big_code = pyqrcode.create('0987654321', error='L', version=27, mode='binary') | |
91 | >>> big_code.png('code.png', scale=6, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc]) | |
92 | >>> big_code.show() |
0 | Metadata-Version: 1.1 | |
0 | Metadata-Version: 2.1 | |
1 | 1 | Name: PyQRCode |
2 | 2 | Version: 1.2.1 |
3 | 3 | Summary: A QR code generator written purely in Python with SVG, EPS, PNG and terminal output. |
5 | 5 | Author: Michael Nooner |
6 | 6 | Author-email: mnooner256@gmail.com |
7 | 7 | License: BSD |
8 | Description: ======== | |
9 | PyQRCode | |
10 | ======== | |
11 | ||
12 | .. contents:: | |
13 | ||
14 | The pyqrcode module is a QR code generator that is simple to use and written | |
15 | in pure python. The module can automates most of the building process for | |
16 | creating QR codes. Most codes can be created using only two lines of code! | |
17 | ||
18 | Unlike other generators, all of the helpers can be controlled manually. You are | |
19 | free to set any or all of the properties of your QR code. | |
20 | ||
21 | QR codes can be saved as SVG, PNG (by using the | |
22 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module), and plain text. They can | |
23 | also be displayed directly in most Linux terminal emulators. PIL is | |
24 | not used to render the image files. | |
25 | ||
26 | The pyqrcode module attempts to follow the QR code standard as closely as | |
27 | possible. The terminology and the encodings used in pyqrcode come directly | |
28 | from the standard. This module also follows the algorithm laid out in the | |
29 | standard. | |
30 | ||
31 | **Homepage**: https://github.com/mnooner256/pyqrcode | |
32 | ||
33 | **Documentation**: http://pythonhosted.org/PyQRCode/ | |
34 | ||
35 | Requirements | |
36 | ============ | |
37 | ||
38 | The pyqrcode module only requires Python 2.6, Python 2.7, or Python 3. You may | |
39 | want to install `pypng <https://pypi.python.org/pypi/pypng/>`_ in order to | |
40 | render PNG files, but it is optional. Note, pypng is a pure python PNG writer | |
41 | which does not require any other libraries. | |
42 | ||
43 | Installation | |
44 | ============ | |
45 | ||
46 | Installation is simple. It can be installed from pip using the following | |
47 | command:: | |
48 | ||
49 | $ pip install pyqrcode | |
50 | ||
51 | Or from the terminal:: | |
52 | ||
53 | $ python setup.py install | |
54 | ||
55 | ||
56 | Usage | |
57 | ===== | |
58 | ||
59 | The pyqrcode module aims to be as simple to use as possible. Below is a simple | |
60 | example of creating a QR code for a URL. The code is rendered out as an svg | |
61 | file. | |
62 | :: | |
63 | ||
64 | >>> import pyqrcode | |
65 | >>> url = pyqrcode.create('http://uca.edu') | |
66 | >>> url.svg('uca-url.svg', scale=8) | |
67 | >>> url.eps('uca-url.eps', scale=2) | |
68 | >>> print(url.terminal(quiet_zone=1)) | |
69 | ||
70 | The pyqrcode module, while easy to use, is powerful. You can set every | |
71 | property of the QR code. If you install the optional | |
72 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module, you can | |
73 | render the code as a PNG image. Below is a more complex example:: | |
74 | ||
75 | >>> big_code = pyqrcode.create('0987654321', error='L', version=27, mode='binary') | |
76 | >>> big_code.png('code.png', scale=6, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc]) | |
77 | >>> big_code.show() | |
78 | ||
79 | 8 | Keywords: qrcode,qr |
80 | Platform: UNKNOWN | |
81 | 9 | Classifier: Development Status :: 4 - Beta |
82 | 10 | Classifier: Environment :: Console |
83 | 11 | Classifier: Intended Audience :: Developers |
90 | 18 | Classifier: Programming Language :: Python :: 3 |
91 | 19 | Classifier: Programming Language :: Python :: 2.6 |
92 | 20 | Classifier: Programming Language :: Python :: 2.7 |
21 | Provides-Extra: PNG | |
22 | ||
23 | ======== | |
24 | PyQRCode | |
25 | ======== | |
26 | ||
27 | .. contents:: | |
28 | ||
29 | The pyqrcode module is a QR code generator that is simple to use and written | |
30 | in pure python. The module can automates most of the building process for | |
31 | creating QR codes. Most codes can be created using only two lines of code! | |
32 | ||
33 | Unlike other generators, all of the helpers can be controlled manually. You are | |
34 | free to set any or all of the properties of your QR code. | |
35 | ||
36 | QR codes can be saved as SVG, PNG (by using the | |
37 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module), and plain text. They can | |
38 | also be displayed directly in most Linux terminal emulators. PIL is | |
39 | not used to render the image files. | |
40 | ||
41 | The pyqrcode module attempts to follow the QR code standard as closely as | |
42 | possible. The terminology and the encodings used in pyqrcode come directly | |
43 | from the standard. This module also follows the algorithm laid out in the | |
44 | standard. | |
45 | ||
46 | **Homepage**: https://github.com/mnooner256/pyqrcode | |
47 | ||
48 | **Documentation**: http://pythonhosted.org/PyQRCode/ | |
49 | ||
50 | Requirements | |
51 | ============ | |
52 | ||
53 | The pyqrcode module only requires Python 2.6, Python 2.7, or Python 3. You may | |
54 | want to install `pypng <https://pypi.python.org/pypi/pypng/>`_ in order to | |
55 | render PNG files, but it is optional. Note, pypng is a pure python PNG writer | |
56 | which does not require any other libraries. | |
57 | ||
58 | Installation | |
59 | ============ | |
60 | ||
61 | Installation is simple. It can be installed from pip using the following | |
62 | command:: | |
63 | ||
64 | $ pip install pyqrcode | |
65 | ||
66 | Or from the terminal:: | |
67 | ||
68 | $ python setup.py install | |
69 | ||
70 | ||
71 | Usage | |
72 | ===== | |
73 | ||
74 | The pyqrcode module aims to be as simple to use as possible. Below is a simple | |
75 | example of creating a QR code for a URL. The code is rendered out as an svg | |
76 | file. | |
77 | :: | |
78 | ||
79 | >>> import pyqrcode | |
80 | >>> url = pyqrcode.create('http://uca.edu') | |
81 | >>> url.svg('uca-url.svg', scale=8) | |
82 | >>> url.eps('uca-url.eps', scale=2) | |
83 | >>> print(url.terminal(quiet_zone=1)) | |
84 | ||
85 | The pyqrcode module, while easy to use, is powerful. You can set every | |
86 | property of the QR code. If you install the optional | |
87 | `pypng <https://pypi.python.org/pypi/pypng/>`_ module, you can | |
88 | render the code as a PNG image. Below is a more complex example:: | |
89 | ||
90 | >>> big_code = pyqrcode.create('0987654321', error='L', version=27, mode='binary') | |
91 | >>> big_code.png('code.png', scale=6, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc]) | |
92 | >>> big_code.show() |