Skip to content

Commit ea14253

Browse files
committed
πŸ‘¨β€πŸ’» Update 2.0.0
1 parent d9471e0 commit ea14253

25 files changed

+409
-112
lines changed

β€Ž.github/workflows/test-suite.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
17+
version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
1818

1919
steps:
2020
- uses: "actions/checkout@v2"

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/.idea/
33
/gpytranslate.egg-info/
44
**/__pycache__
5+
.aider*
6+
.env

β€ŽLICENSEβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Davide Galilei
3+
Copyright (c) 2024 Davide Galilei
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

β€Žexamples/async/__init__.pyβ€Ž

Whitespace-only changes.

β€Žexamples/async/example.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from gpytranslate import Translator
44

5-
65
"""Example showing basic translation and language detection."""
76

7+
88
async def main() -> None:
99
"""Demonstrate translation from Italian to English and language detection."""
1010
t = Translator()

β€Žexamples/async/https_proxy.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from gpytranslate import Translator
44

5-
65
"""Example showing how to use HTTPS proxy with the translator."""
76

7+
88
async def main() -> None:
99
"""Demonstrate translation using an HTTPS proxy."""
1010
t = Translator(proxies={"https://": "https://{proxy_ip_here}"})

β€Žexamples/async/socks5_proxy.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from gpytranslate import Translator
44

5-
65
"""Example showing how to use SOCKS5 proxy with the translator."""
76

7+
88
async def main() -> None:
99
"""Demonstrate translation using a SOCKS5 proxy."""
1010
t = Translator(proxies={"socks5": "socks5://user:password@127.0.0.1:1080"})

β€Žexamples/async/tts.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
from gpytranslate import Translator
66

7-
87
"""Example showing how to use text-to-speech functionality."""
98

9+
1010
async def main() -> None:
1111
"""Demonstrate text-to-speech generation."""
1212
translator = Translator()

β€Žexamples/sync/__init__.pyβ€Ž

Whitespace-only changes.

β€Žexamples/sync/example.pyβ€Ž

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
"""
2-
gpytranslate - A Python3 library for translating text using Google Translate API.
3-
MIT License
4-
5-
Copyright (c) 2023 Davide Galilei
6-
7-
Permission is hereby granted, free of charge, to any person obtaining a copy
8-
of this software and associated documentation files (the "Software"), to deal
9-
in the Software without restriction, including without limitation the rights
10-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11-
copies of the Software, and to permit persons to whom the Software is
12-
furnished to do so, subject to the following conditions:
13-
14-
The above copyright notice and this permission notice shall be included in all
15-
copies or substantial portions of the Software.
16-
17-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23-
SOFTWARE.
24-
"""
25-
261
from gpytranslate import SyncTranslator
272

283
t = SyncTranslator()

0 commit comments

Comments
Β (0)