Commit graph

6 commits

Author SHA1 Message Date
9b7d01c402
changed an error message to make it slightly more clear 2024-09-18 11:45:33 -04:00
25e61b9a79
(2.0.1) pylint fixes
All checks were successful
Actions / build (push) Successful in 16s
Actions / lint (push) Successful in 14s
Actions / docs (push) Successful in 23s
2024-09-18 10:03:29 -04:00
cb87400278
(2.0.0) woohoo, first major version bump!
Some checks failed
Actions / build (push) Successful in 8s
Actions / lint (push) Failing after 13s
Actions / docs (push) Successful in 23s
bunch of stuff this update, including a full documentation site (still a WIP)
there is now a cache created whenever an instance of `FloweryAPI` is instantiated, so you don't have to query the api and iterate through the api response to retrieve a single voice anymore!
function names have also been changed with this update, hence the major version bump. `get_tts()`, `get_voices()`, and `get_voice()` have been renamed to `fetch_tts()`, `fetch_voices()`, and `fetch_voice()` respectively. `get_voices()` still exists, but with different functionality (that method retrieves voices from the internal cache instead of querying the flowery api)

!BREAKING
2024-09-18 09:55:25 -04:00
33b63fecc4
(1.0.3) retry handlers and more
Some checks failed
Actions / lint (push) Failing after 16s
Actions / build (push) Successful in 19s
added automatic retry handlers for 429 and 5xx error codes, as well as custom exceptions for ratelimiting, client errors, and server errors
also added a more advanced user agent string constructor. previously, setting FloweryAPIConfig.user_agent would override the default user_agent. so, if you set user_agent to `foobar`, the user agent string would be `foobar` in requests. now, the user agent string sent by requests would be the following on my development machine:
`'User-Agent': 'PyFlowery/1.0.3 PyFloweryTests (Python 3.12.6 (main, Sep  8 2024, 13:18:56) [GCC 14.2.1 20240805])'`
2024-09-17 23:24:14 -04:00
d585072d3e
(1.0.2) added get_voice() method and added handling for if the request code of get_tts() is between 400 and 600
All checks were successful
Actions / lint (push) Successful in 16s
Actions / build (push) Successful in 19s
2024-09-16 09:07:27 -04:00
4becff70e6
version 1.0.0
Some checks failed
Actions / lint (push) Failing after 11s
Actions / build (push) Successful in 13s
2024-09-15 23:12:30 -04:00