Skip to main content

thesaurus (and also dictionary)

Project description

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) 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

Venture capitalists & the media have been slow to catch on to my revolutionary thesr.online, but in anticipation of its imminent virality & demand for scale, I've migrated from Docker Compose to a Kubernetes cluster w/ Helm to orchestrate the deployment of my containerized apps as self-healing pods and auto-scale across nodes.

I first used Kompose to roughly translate my Docker Compose files to K8s resources.
Then, I used Kind (K8s in Docker) to run a local cluster to develop and test my project.
I used Helm to deploy the workload to my cluster.

See docker_k8s/README.md for the detailed steps.

In reality, this is completely unnecessary and more expensive to host, so I'll continue with Docker Compose approach for now. In the future, I could look into a proper ingress controller for K8s, uploading my images to a container registry, proper Persistent Volume Claims (PVCs), and maybe setting up some CI/CD to build the images.

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

thesr-0.0.11.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

thesr-0.0.11-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file thesr-0.0.11.tar.gz.

File metadata

  • Download URL: thesr-0.0.11.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for thesr-0.0.11.tar.gz
Algorithm Hash digest
SHA256 8473a48a36735645fc26f90af1f0eac1cf7a1ba295dafe9b544ef6a5218e5f82
MD5 efa804f6eeaa441aff3db46e67ea44b4
BLAKE2b-256 4d9cf90b31a8232b23babf1f8ec3449def3de15a82e04895bbdea4e6873ffe3b

See more details on using hashes here.

File details

Details for the file thesr-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: thesr-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for thesr-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 56ec2bf83b49229a5f47741b8e116c3d482e038bfc369be3f3c776e4cc36a9f2
MD5 4b03b590e22df005727be010188f788f
BLAKE2b-256 ae475b8d34dd9a5fdba5ff9860b501a42ef5d4c1d480f88d6fae6c9b86771fe9

See more details on using hashes here.

Supported by

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