Skip to main content

pyofwar

Python library for Sun Tzu's most popular quotes

Most of the quotes were taken from the website quotefancy

Selected quotes

from pyofwar import pow

print("Sun Tzu once said...")
print(pow.quote(1, True))

outputs

Sun Tzu once said...
"Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt."

Random quotes

from pyofwar import pow

print("Sun Tzu once said...")
print(pow.quote_random(2, False))

outputs

Sun Tzu once said...
Know thy self, know thy enemy.
If their forces are substantial, prepare for them; if their forces are strong, avoid them.

And if you want to limit the range of randomness

from pyofwar import pow

print("Sun Tzu once said...")
print(pow.quote_random(3, True, 0, 0))

outputs

Sun Tzu once said...
"Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt."
"Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt."
"Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt."

Metadata

Release files for pyofwar 1.0.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 pyofwar 1.0.0
File Size Uploaded
pyofwar-1.0.0.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyofwar 1.0.0
File Interpreter ABI Platform
pyofwar-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 62.6 kB

Release files / pyofwar-1.0.0.tar.gz

Download URL pyofwar-1.0.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c5dfc7eaa858eccfd5148d71d7784be7b8b91805a23aee340a6c0f63bcba4df
BLAKE2b-256 checksum
How to use checksums
23f3cc9f7c9c61cf79ab4d87d30de69dd41ac51e1de96a8161414d3bf8d06512
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Release files / pyofwar-1.0.0-py3-none-any.whl

Download URL pyofwar-1.0.0-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5649ca39c14214d2a737a9b8cb32b2c3a2575ac1b21afc482eb2e156d7df7982
BLAKE2b-256 checksum
How to use checksums
20a720ca6e10773e87371fa45b0ab6ad88cef72d57e0753ddd963d4612298a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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