Skip to main content

Professional Python library providing 500+ curated motivational quotes from influential thinkers, leaders, and artists

Project description

🎯 quotely

PyPI Version Python Version License: MIT Code Style: Black

A minimalist Python library delivering 500+ curated motivational quotes from history's most influential minds.


Overview

quotely provides instant access to hundreds of verified, high-quality motivational quotes—perfect for command-line tools, chatbots, dashboards, and educational apps.
Built with modern Python best practices, it's dependency-free, type-hinted, and lightweight.


Installation

pip install quotely

For local development with linting and testing tools:

pip install quotely[dev]

Requirements: Python 3.8 or higher


Quick Start

from quotely import random, quote

# Get a random quote
print(random(quote))

# Get quote with author
print(random.name(quote))

Example Output:

"The only way to do great work is to love what you do." - Steve Jobs

API Reference

random(quote)

Returns a random quote (text only).

text = random(quote)

random.name(quote)

Returns a random quote with author attribution.

full = random.name(quote)
# → "Success is not final, failure is not fatal..." - Winston Churchill

get_random_quote()

Returns a structured Quote object for detailed access.

from quotely import get_random_quote

q = get_random_quote()
print(str(q))   # Quote text
print(q.name)   # Author
print(repr(q))  # "Quote" - Author

Example Use Cases

Command-Line Tools

import argparse
from quotely import random, quote

parser = argparse.ArgumentParser()
parser.add_argument("--inspire", action="store_true")
args = parser.parse_args()

if args.inspire:
    print(f"\n{random.name(quote)}\n")

Daily Motivation

from quotely import random, quote

print("═" * 40)
print("💡 Your Daily Motivation")
print("═" * 40)
print(random.name(quote))

Chatbot Integration

from quotely import get_random_quote

def get_motivation():
    q = get_random_quote()
    return {
        "text": str(q),
        "author": q.name,
        "full": repr(q)
    }

Technical Details

Feature Description
Dependencies None
Memory Optimization Uses __slots__ (~40% less overhead)
Thread Safety Random selection is concurrency-safe
Type Hints Fully typed for IDE autocomplete
Tests 100% coverage via pytest

Development

# Run tests
pytest

# Format with Black
black quotely

# Type check
mypy quotely

License

Licensed under the MIT License.
See LICENSE for full text.


Credits

Quotes are sourced from verified public domain and attributed works for educational and inspirational use.

Author: MJ Dev
Contact: themjdev@gmail.com
Project Page: PyPI: quotely


"The only way to do great work is to love what you do." — Steve Jobs

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

quotely-1.0.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quotely-1.0.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file quotely-1.0.0.tar.gz.

File metadata

  • Download URL: quotely-1.0.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for quotely-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0cf31d6f63d9e1c2bd4e1f716fc52d717c5972287dc4dae66b4843f069db2faf
MD5 b935cbfac90a9fb08602959966a215b8
BLAKE2b-256 78eb6e5dbd0638d5d81b9874d959ff4e4cfab3765b6fdddc654bd181f22e4025

See more details on using hashes here.

File details

Details for the file quotely-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: quotely-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for quotely-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3124f0e112cf85c279d340ded86804bf703b0121c1741912ec53ca45844e432
MD5 0f1727439cf2c1dae3c965e37c0509f9
BLAKE2b-256 6477a53c6530d54047eb060899c373033f2d07fdbbf433e41f669064483fe9cc

See more details on using hashes here.

Supported by

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