Skip to main content

Downloads Downloads Downloads

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

Python >=3.7

Legal

MIT

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)

Source distribution for russian-quotes 2.1.0
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

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page