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