russian_quotes
Installation
pip install russian-quotes
Usage
- Sync
from russian_quotes import get_quote, Languages
text, author = get_quote(lang=Languages.ENGLISH)
print(f'Quote: {text} Author: {author}')
- Async
import asyncio
from russian_quotes import get_quote_async, Languages
async def main():
return await get_quote_async(lang=Languages.ENGLISH)
text, author = asyncio.run(main())
print(f'Text: {text} Author: {author}')
- Catching of exception
import russian_quotes
try:
text, author = russian_quotes.get_quote()
print(f'Text: {text} Author: {author}')
except russian_quotes.ServerError:
print('Error!')
Dependencies
Legal
Metadata
Release files for russian-quotes 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| russian_quotes-2.1.0.tar.gz | 4.0 kB | Details |
Release files / russian_quotes-2.1.0.tar.gz
| Download URL | russian_quotes-2.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9ed41e4f435faf58c13fea2b7a73dfd9c87939d525250798ee4c95628d8f79c
|
|
BLAKE2b-256 checksum How to use checksums |
060410a0fc5b5a9b9f763b53425aa9da9c9a770c227469bc3ecae28f5a896191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|