Skip to main content

Quotes of famous people in russian

Project description

Downloads Downloads Downloads

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

Python >=3.7

Legal

MIT

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page