From 95c92872a68e839657b6872c11a6bf874b56ca81 Mon Sep 17 00:00:00 2001 From: Eugene Petkevich Date: Wed, 21 Jul 2021 18:05:50 +0300 Subject: [PATCH] Create base project --- LICENSE | 21 +++++++++++++++++++++ README.md | 12 ++++++++++++ setup.py | 8 ++++++++ tests/test_wordidgen.py | 3 +++ wordidgen/__init__.py | 0 wordidgen/wordidgen.py | 14 ++++++++++++++ 6 files changed, 58 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 setup.py create mode 100644 tests/test_wordidgen.py create mode 100644 wordidgen/__init__.py create mode 100755 wordidgen/wordidgen.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7e40bcd --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Eugene Petkevich + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a648f5c --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Генератор слоговых слов-идентификаторов + +*Work is in the earliest stage of development.* + +Эта программа создаёт слова для использования в качестве идентификаторов. +Каждое слово состоит из нескольких слогов согласная-гласная. + +## License + +The project is licensed with the MIT license, you can find it in the [LICENSE](LICENSE) file. + +## Version history diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..02237a9 --- /dev/null +++ b/setup.py @@ -0,0 +1,8 @@ +# -*- coding: UTF-8 -*- +from setuptools import setup + +setup(name='wordidgen', + packages=['wordidgen'], + entry_points={ + 'console_scripts': ['wordidgen = wordidgen.wordidgen:main'] + }) diff --git a/tests/test_wordidgen.py b/tests/test_wordidgen.py new file mode 100644 index 0000000..35bf0fc --- /dev/null +++ b/tests/test_wordidgen.py @@ -0,0 +1,3 @@ +# -*- coding: UTF-8 -*- + +#TODO \ No newline at end of file diff --git a/wordidgen/__init__.py b/wordidgen/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/wordidgen/wordidgen.py b/wordidgen/wordidgen.py new file mode 100755 index 0000000..5246d91 --- /dev/null +++ b/wordidgen/wordidgen.py @@ -0,0 +1,14 @@ +#!/usr/bin/python +# -*- coding: UTF-8 -*- +from argparse import ArgumentDefaultsHelpFormatter +from argparse import ArgumentParser + +def main(): + """Helper command-line tool for word id generator.""" + parser = ArgumentParser(description='Word id generators', + formatter_class=ArgumentDefaultsHelpFormatter) + args = parser.parse_args() + print('Хыхо') + +if __name__ == '__main__': + main() -- 2.17.1