Skip to main content

Thesaurus-Rex

Thesaurus tool that fetches a word's homonyms, synonyms, and antonyms from Thesaurus.com. It's also a dictionary tool that fetches definitions from Webster. It fetches etymology information from etymonline.

Installation

  • from PyPI: pip install thesr
  • from GitHub: pip install "git+https://github.com/treatmesubj/Thesaurus_Rex"

Usage

python -m thesr.thesr [-h] [--word WORD] [--define] [--etymology] [--antonyms] [--verbose]

Common English phrases & idioms such as toungue-and-cheek or dime-a-dozen sometimes work as well

john@spectre:~
$ python -m thesr.thesr -w purport -v

         _____ _
        |_   _| |
          | | | |__   ___  ___  __ _ _   _ _ __ _   _ ___
          | | | '_ \ / _ \/ __|/ _` | | | | '__| | | / __|
          | | | | | |  __/\__ \ (_| | |_| | |  | |_| \__ \
          |_| |_| |_|\___||___/\__,_|\__,_|_|   \__,_|___/ Rex

[purport!]

---Synonyms-------------------------------------------------------------------
{ noun: meaning, implication } == ['acceptation', 'aim', 'bearing', 'burden', 'connotation', 'core', 'design',
'drift', 'gist', 'heart']
{ verb: assert, mean } == ['imply', 'pose as', 'pretend', 'profess', 'allege', 'betoken', 'claim', 'convey',
'declare', 'denote']
--------------------------------------------------------------------------------

---Definitions-------------------------------------------------------------------
{ verb: to have the often specious appearance of being, intending, or claiming (something implied or inferred) }
{ verb: claim  }
{ verb: intend, purpose }
{ noun: meaning conveyed, professed, or implied : import }
{ noun: substance, gist }
--------------------------------------------------------------------------------

---Etymology-------------------------------------------------------------------
purport (n.)
    early 15c., "meaning, tenor, the surface or expressed meaning of a document, etc.; that which is conveyed or
expressed," from Anglo-French purport (late 13c.), Old French porport "contents, tenor," back-formation from
purporter "to contain, convey, carry; intend," from pur- (from Latin pro- "forth;" see pur-) + Old French porter "tocarry," from Latin portare "to carry" (from PIE root *per- (2)  "to lead, pass over"). Meaning "that which is to be done or effected" is from 1650s.
--------------------
purport (v.)
    1520s, "indicate, express, set forth, convey to the mind as the meaning or thing intended," from the noun in Englishand from Anglo-French purporter (c. 1300), from Old French purporter "to contain, convey, carry; intend," from pur- (from Latin pro- "forth;" see pur-) + Old French porter "to carry," from Latin portare "to carry" (from PIE root
*per- (2)  "to lead, pass over"). Related: Purported; purporting.
--------------------------------------------------------------------------------

---Antonyms-------------------------------------------------------------------
{ noun: meaning, implication } =/= ['exterior', 'exteriority', 'insignificance', 'meaninglessness', 'outside',
'surface']
{ verb: assert, mean } =/= ['conceal', 'deny', 'disclaim', 'hide']
--------------------------------------------------------------------------------

Thesaurus-Rex Web Server

thesr.online

Check out Thesaurus-Rex's Docker (Compose) Kubernetes containerized web experience built with an NGINX hardened reverse proxy & TLS/SSL encryption container in front of a containerized Waitress web server & Flask framework Python application.
It's running on a ufw firewalled Debian virtual machine in the cloud courtesy of Linode.
fail2ban protects the server from bruteforce attacks. Though, RSA asymetric cryptographic public-encrypt-key/private-decrypt-key pairs are used for administration of the host; OpenSSH server's password authentication is disabled.
I bought the thesr.online domain from Hover.
The TLS/SSL cryptographic certificate for the thesr.online domain is validated & signed by the Let's Encrypt open source certificate authority.

The Internet's Spooky

https://thesr.online has been on the internet for about 2 weeks now (5/12/23).
Here's a geo-map of thousands of malicious IP addresses that tried to bruteforce guess my credentials to gain control of my server from just some of the logs.
Also, here's a sample of the latest traffic to my server from the logs, showing probably botnets, trying to extract credentials, upload binary data, and exploit old software vulnerabilities.


Docker Compose -> Kubernetes

I first used Kompose to roughly translate my Docker Compose files to K8s resources.
Then, I used k3s to run a local cluster to develop and test my project.
I learned, asked, and answered some StackOverflow questions about Linux network interfaces and more about Linux DNS resolution configuration.
I used Helm to deploy the workload to my cluster.
My Nginx reverse proxy remains in place as a Deployment mounting the Letsencrypt certifcates via PersistentVolumeClaim and a LoadBalancer service routes external traffic to Nginx.
A CronJob attempts to renew my Letsencrypt certificates every 15 days.

See docker_k8s/README.md for the detailed steps.

Update (02/12/25): Turns out k8s IPv6 needs some extra configuration, so I've removed the IPv6 DNS AAAA record for thesr.online for now.

Metadata

Release files for thesr 0.0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thesr 0.0.17
File Size Uploaded Provenance Actions
thesr-0.0.17.tar.gz 19.3 kB Without provenance Details for thesr-0.0.17.tar.gz

Built distribution (wheel)

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

Total release size: 37.8 kB

Release files / thesr-0.0.17.tar.gz

Download URL thesr-0.0.17.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2292e46db848a77d2c6e1568067c40b67d0f83f72ba5db658116dff1d08b9765
BLAKE2b-256 checksum
How to use checksums
5e8bef56778be7d05bf4235455d7bd1c72aa4949d06db470bcd1343da6fd2d3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / thesr-0.0.17-py3-none-any.whl

Download URL thesr-0.0.17-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3dcc1e88159401c93f27937507f9dc85d8be23d1379c5e3251cef815b96753f
BLAKE2b-256 checksum
How to use checksums
eb79911243124bc1f44dafb38463a338eac31d013f6328f16d5d5404842cf629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for thesr 0.0.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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