Skip to main content

Generate xianxia-style proverbs.

Project description

xianxia-quotes

Generate immersive xianxia‑style proverbs for any Python project or CLI usage.

xianxia-quotes provides a simple API and command‑line interface to produce memorable ‘‘Even a dragon will…’’‑style aphorisms.


Features

  • 🐉 Single‑Quote CLI: Run xianxia-quotes (or python -m xianxia_quotes) to print a random proverb.
  • 📜 Infinite Generator: Import quote_stream() for an endless stream of proverbs.
  • 🎯 Simple API: Call single_quote() to retrieve one aphorism as a string.
  • ⚙️ PEP 8‑Compliant: Well‑structured code with documentation.

Installation

pip install xianxia-quotes

Or from source:

git clone https://github.com/yourusername/xianxia-quotes.git
cd xianxia-quotes
pip install .

Quickstart

CLI usage

$ xianxia-quotes
“Even a phoenix will cower before a wolf in the forest”

As a module

from xianxia_quotes import single_quote, quote_stream

print(single_quote())  # one proverb

# infinite stream example
quotes = quote_stream()
for _ in range(5):
    print(next(quotes))

API Reference

single_quote() -> str
    Return a single xianxiastyle proverb.

quote_stream() -> Iterator[str]
    Infinite generator yielding proverbs.

Development

  1. Clone the repo and install dev dependencies:

    </code></pre>
    </li>
    </ol>
    <p>git clone <a href="https://github.com/yourusername/xianxia-quotes.git">https://github.com/yourusername/xianxia-quotes.git</a> cd xianxia-quotes pip install -e .$dev$</p>
    <pre><code>2. Run tests (if any):
       ```bash
    pytest
    
    1. Build and publish:

      </code></pre>
      </li>
      </ol>
      <p>pip install build twine python -m build twine upload dist/*</p>
      <pre><code>
      ---
      
      ## License
      
      This project is licensed under the [GNU GPL v3 (or later)](https://www.gnu.org/licenses/gpl-3.0.html).
      

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

xianxia_quotes-0.1.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

xianxia_quotes-0.1.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file xianxia_quotes-0.1.3.tar.gz.

File metadata

  • Download URL: xianxia_quotes-0.1.3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xianxia_quotes-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ca37c5729b23366aac151ee712a9511c2c11ee332ee2938063a433c0c5160c25
MD5 1f42efebc40e0ed38493c24e2a41c84e
BLAKE2b-256 856d7179b7bf14180e7f8c65757b6a9ab9e3b52ef9823b1e61dd0eeedb1cc5e6

See more details on using hashes here.

File details

Details for the file xianxia_quotes-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xianxia_quotes-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xianxia_quotes-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c23d7e0e894119d51f6ec383b79ab646ebeea2ff3dd6a833f8e9fbb507d3e33
MD5 2c2c6990201e88db7543ffa7d25e34f6
BLAKE2b-256 ac0deb1c11fad310c54d1492ca3e1cdf5a4a508bb4a14c9aecd304748f8f5f84

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