Quotes of famous people in Russian & English
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
russian_quotes-2.1.0.tar.gz
(4.0 kB
view details)
File details
Details for the file russian_quotes-2.1.0.tar.gz
.
File metadata
- Download URL: russian_quotes-2.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ed41e4f435faf58c13fea2b7a73dfd9c87939d525250798ee4c95628d8f79c |
|
MD5 | 32ced966da37e06b0004d06c920d2c79 |
|
BLAKE2b-256 | 060410a0fc5b5a9b9f763b53425aa9da9c9a770c227469bc3ecae28f5a896191 |