Quotes of famous people in russian
Project description
russian_quotes
Installation
pip install russian-quotes
Usage
- Sync
from russian_quotes import get_quote
text, author = get_quote()
print(f'Text: {text} Author: {author}')
- Async
import asyncio
from russian_quotes import get_quote_coro
async def main():
return await get_quote_coro()
text, author = asyncio.run(main())
print(f'Text: {text} Author: {author}')
- Catch exception
import russian_quotes
try:
text, author = russian_quotes.get_quote()
print(text, 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.0.2.tar.gz
(3.8 kB
view hashes)