Name | lang-support JSON |
Version |
1.3.0
JSON |
| download |
home_page | |
Summary | Package that provides an easy API for adding different, easily changeable languages. |
upload_time | 2023-10-04 21:30:11 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2023 Mateusz Ferenc 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. |
keywords |
language
language change
languages
multilangual
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## My python program that allows you to use multiple languages in your programs
Class named **LangSupport** is in lang_support.py file.
Install via pip:
`pip install lang_support`
**main.py** file, in tests directory, is an example of use.
To run example:
```bash
cd lang_support
py -m tests.main
```
<br>
Import **LangSupport** class:
`import lang_support.lang_support`
or
`from lang_support.lang_support import LangSupport`
<br>
Import **LangSupportDL** class:
`import lang_support.lang_support_data_logger`
or
`from lang_support.lang_support_data_logger import LangSupportDL`
### ***generate_translation.py*** file is a script which read specified language file and generate translation for selected language (deepl package and token needed)
Place DeepL token in ***data_token.json*** file (in directory with ***generate_translation.py*** file) like below:
```json
{
"deepl-token": "your-token"
}
```
To run translation generator, enter following commands:
```bash
cd lang_support
pip install deepl # if not installed
py -m tests.generate_translation.generate_translation.generate_translation --help
```
Raw data
{
"_id": null,
"home_page": "",
"name": "lang-support",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Mateusz Ferenc <ferenc.mateusz.priv@gmail.com>",
"keywords": "language,language change,languages,multilangual",
"author": "",
"author_email": "Mateusz Ferenc <ferenc.mateusz.priv@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a6/e4/8434feb964612c9bbd52d7ce134b7cf635283135745b4f9f72e8d78d0997/lang_support-1.3.0.tar.gz",
"platform": null,
"description": "## My python program that allows you to use multiple languages in your programs\n\nClass named **LangSupport** is in lang_support.py file. \n\nInstall via pip: \n`pip install lang_support`\n\n**main.py** file, in tests directory, is an example of use. \n\nTo run example:\n```bash\ncd lang_support\npy -m tests.main\n``` \n<br>\n\nImport **LangSupport** class: \n`import lang_support.lang_support`\nor\n`from lang_support.lang_support import LangSupport`\n<br> \n\nImport **LangSupportDL** class: \n`import lang_support.lang_support_data_logger`\nor\n`from lang_support.lang_support_data_logger import LangSupportDL`\n\n\n### ***generate_translation.py*** file is a script which read specified language file and generate translation for selected language (deepl package and token needed)\n\nPlace DeepL token in ***data_token.json*** file (in directory with ***generate_translation.py*** file) like below: \n```json\n{\n \"deepl-token\": \"your-token\"\n}\n``` \nTo run translation generator, enter following commands:\n```bash\ncd lang_support\npip install deepl # if not installed\npy -m tests.generate_translation.generate_translation.generate_translation --help\n```",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Mateusz Ferenc 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.",
"summary": "Package that provides an easy API for adding different, easily changeable languages.",
"version": "1.3.0",
"project_urls": {
"Bug Tracker": "https://github.com/mateuszferenc/my_pythons/issues",
"Homepage": "https://github.com/MateuszFerenc/my_pythons/tree/main/lang_support"
},
"split_keywords": [
"language",
"language change",
"languages",
"multilangual"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b7ce696673ecf6dc1bd0c07eec394ee12a88e62af8665525e9f94930a9a7f0b7",
"md5": "808581d1e6ac3d46cbd4b28bc2988a40",
"sha256": "464fb6ec8879be0b491aec497df13fb1316b71de4a6e5052bffc0469cf24fe3a"
},
"downloads": -1,
"filename": "lang_support-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "808581d1e6ac3d46cbd4b28bc2988a40",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5194,
"upload_time": "2023-10-04T21:30:09",
"upload_time_iso_8601": "2023-10-04T21:30:09.705036Z",
"url": "https://files.pythonhosted.org/packages/b7/ce/696673ecf6dc1bd0c07eec394ee12a88e62af8665525e9f94930a9a7f0b7/lang_support-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a6e48434feb964612c9bbd52d7ce134b7cf635283135745b4f9f72e8d78d0997",
"md5": "a82965c29545a21e6f7a560737a21635",
"sha256": "38b90b03982483be3358e6561b7d94d3b5c484da5781a7bf1f8a8f4d9479e7fe"
},
"downloads": -1,
"filename": "lang_support-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "a82965c29545a21e6f7a560737a21635",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5222,
"upload_time": "2023-10-04T21:30:11",
"upload_time_iso_8601": "2023-10-04T21:30:11.172622Z",
"url": "https://files.pythonhosted.org/packages/a6/e4/8434feb964612c9bbd52d7ce134b7cf635283135745b4f9f72e8d78d0997/lang_support-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-04 21:30:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mateuszferenc",
"github_project": "my_pythons",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lang-support"
}