ru-api-free 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: ru-api-free
3
+ Version: 1.0.0
4
+ Summary: Free API for conjugating Russian verbs in all tenses (present, past, future)
5
+ Author-email: Your Name <your@email.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yourusername/ru-api-free
8
+ Project-URL: Source, https://github.com/yourusername/ru-api-free
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Text Processing :: Linguistic
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: fastapi
22
+ Requires-Dist: uvicorn[standard]
23
+ Requires-Dist: aiofiles
24
+ Requires-Dist: deep_translator
25
+ Dynamic: license-file
26
+
27
+ # ru-api-free
28
+
29
+ Free API for conjugating Russian verbs in all tenses (present, past, future).
30
+
31
+ ## Install
32
+
33
+ ```bash
34
+ pip install ru-api-free
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ Start the API server:
40
+
41
+ ```bash
42
+ ru-api-free
43
+ ```
44
+
45
+ Or directly with uvicorn:
46
+
47
+ ```bash
48
+ uvicorn ru_api_free.main:app
49
+ ```
50
+
51
+ The API will be available at `http://localhost:8000`. Open `http://localhost:8000/docs` for interactive documentation.
52
+
53
+ ### Endpoints
54
+
55
+ | Endpoint | Description |
56
+ |---|---|
57
+ | `GET /conjugate?verb={verb}` | Get full conjugation of a Russian verb |
58
+ | `GET /translate?english={word}` | Enter an English verb, get Russian conjugation |
59
+ | `GET /verbs` | List all available verbs |
60
+ | `GET /search?q={query}` | Search for verbs |
61
+ | `GET /exceptions` | List all verbs with conjugation exceptions |
62
+ | `GET /exceptions/{verb}` | Get exceptions for a specific verb |
63
+
64
+ ## Python API
65
+
66
+ ```python
67
+ from ru_api_free import conjugate
68
+
69
+ result, status = conjugate("читать")
70
+ print(result)
71
+ ```
72
+
73
+ ```python
74
+ from ru_api_free import translate_en_to_ru
75
+
76
+ russian = translate_en_to_ru("read")
77
+ print(russian) # читать
78
+ ```
79
+
80
+ ## License
81
+
82
+ MIT
@@ -0,0 +1,56 @@
1
+ # ru-api-free
2
+
3
+ Free API for conjugating Russian verbs in all tenses (present, past, future).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install ru-api-free
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Start the API server:
14
+
15
+ ```bash
16
+ ru-api-free
17
+ ```
18
+
19
+ Or directly with uvicorn:
20
+
21
+ ```bash
22
+ uvicorn ru_api_free.main:app
23
+ ```
24
+
25
+ The API will be available at `http://localhost:8000`. Open `http://localhost:8000/docs` for interactive documentation.
26
+
27
+ ### Endpoints
28
+
29
+ | Endpoint | Description |
30
+ |---|---|
31
+ | `GET /conjugate?verb={verb}` | Get full conjugation of a Russian verb |
32
+ | `GET /translate?english={word}` | Enter an English verb, get Russian conjugation |
33
+ | `GET /verbs` | List all available verbs |
34
+ | `GET /search?q={query}` | Search for verbs |
35
+ | `GET /exceptions` | List all verbs with conjugation exceptions |
36
+ | `GET /exceptions/{verb}` | Get exceptions for a specific verb |
37
+
38
+ ## Python API
39
+
40
+ ```python
41
+ from ru_api_free import conjugate
42
+
43
+ result, status = conjugate("читать")
44
+ print(result)
45
+ ```
46
+
47
+ ```python
48
+ from ru_api_free import translate_en_to_ru
49
+
50
+ russian = translate_en_to_ru("read")
51
+ print(russian) # читать
52
+ ```
53
+
54
+ ## License
55
+
56
+ MIT
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["setuptools>=64"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ru-api-free"
7
+ version = "1.0.0"
8
+ description = "Free API for conjugating Russian verbs in all tenses (present, past, future)"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.9"
12
+ authors = [
13
+ {name = "Your Name", email = "your@email.com"},
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: Text Processing :: Linguistic",
25
+ ]
26
+ dependencies = [
27
+ "fastapi",
28
+ "uvicorn[standard]",
29
+ "aiofiles",
30
+ "deep_translator",
31
+ ]
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/yourusername/ru-api-free"
35
+ Source = "https://github.com/yourusername/ru-api-free"
36
+
37
+ [project.scripts]
38
+ ru-api-free = "ru_api_free.__main__:main"
39
+
40
+ [tool.setuptools.packages.find]
41
+ include = ["ru_api_free*"]
42
+
43
+ [tool.setuptools.package-data]
44
+ ru_api_free = ["static/*"]
@@ -0,0 +1,9 @@
1
+ from .conjugator import conjugate, search_verbs, list_verbs, get_exceptions, get_verb_exceptions, EXCEPTION_TYPES
2
+ from .dictionary import translate_en_to_ru
3
+
4
+ __version__ = "1.0.0"
5
+ __all__ = [
6
+ "conjugate", "search_verbs", "list_verbs",
7
+ "get_exceptions", "get_verb_exceptions", "EXCEPTION_TYPES",
8
+ "translate_en_to_ru",
9
+ ]
@@ -0,0 +1,10 @@
1
+ import uvicorn
2
+ from .main import app
3
+
4
+
5
+ def main():
6
+ uvicorn.run("ru_api_free.main:app", host="0.0.0.0", port=8000, reload=False)
7
+
8
+
9
+ if __name__ == "__main__":
10
+ main()