diff --git a/.gitignore b/.gitignore index 9a435e0..c1c6475 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -output/*.png +my_qr.png diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f1a2c44 --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2022 Takahiro Tomita + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +---- +The word "QR Code" is registered trademark of DENSO WAVE Incorporated +http://www.denso-wave.com/qrcode/faqpatent-e.html \ No newline at end of file diff --git a/make_qr.py b/example.py similarity index 88% rename from make_qr.py rename to example.py index c9dfb5d..b25621c 100644 --- a/make_qr.py +++ b/example.py @@ -3,9 +3,11 @@ from rmqrcode import QRImage from rmqrcode import FitStrategy +import os + def main(): - data = "ABCdef123漢字あいうえお" + data = "https://oudon.xyz" error_collection_level = ErrorCollectionLevel.M fit_strategy = FitStrategy.BALANCED @@ -22,7 +24,7 @@ def main(): # Save as png image = QRImage(qr) image.show() - image.save("output/my_qr.png") + image.save("my_qr.png") if __name__ == '__main__': diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fa7093a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=42"] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..76df8f5 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,22 @@ +[metadata] +name = rmqrcode +version = 0.0.1 +author = Takahiro Tomita +author_email = ttp8101@gmail.com +description = An rMQR Code Generetor +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/OUDON/rmqrcode +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +package_dir = + = rmqrcode +packages = find: +python_requires = >=3.6 + +[options.packages.find] +where = rmqrcode \ No newline at end of file