Package: wordpy
wordpyA dictionary program for nix* terminalsInstallationSimply use pip to install the latest stable version -$pipinstallwordpyTo get the bleeding edge version -pipinstallgit+https://github.com/mentix02/wordpy.gitRequirementswordpy is available for all Unix and Unix-like operating systems. It supports Python 3.6 and above.UsageGetting API keysThis package wouldn't be possible without the existence ofOxford Dictionaries. However, service hosting is costly and they must make some money themselves so they only let a simple, developer option for their prolix API. Register for ithere.When you first use wordpy, you'll recieve a prompt to enter your recently acquired credentials and store it for future usage. Don't worry, everything remains on your local system.The program is extremely simple - you literally just get the definition of a word in your terminal. Or the synonyms, antonyms or even the origin i.e. etymology of the word if you're feeling adventurous.FlagsFlagUsage-s, --synonymsdisplay synonyms-a, --antonymsdisplay antonyms-e, --etymologyshow etymology-v, --versiondisplay version-h, --helpshow help messageCommands$wordpy<word>To get synonyms -$wordpy-s<word>Antonyms can be derived by -$wordpy-a<word>And finally, etymology -$wordpy-e<word>These flags can be combined to get whatever the user asks for. For example to get the definition, antonyms and the etymology, you can use -$wordpy-ae<word>Examples$wordpyapple[s]Apple(noun)Theroundfruitofatreeoftherosefamily,whichtypicallyhasthingreenorredskinandcrispflesh.$wordpy-scar# synonyms[s]Car(noun)Aroadvehicle,typicallywithfourwheels,poweredbyaninternalcombustionengineandabletocarryasmallnumberofpeople[s]Synonyms
auto,automobile,bus,convertible,jeep,limousine,machine,motor,pickup,ride,stationwagon,truck,van,wagon,bucket,buggy,compact,conveyance,coupe,hardtop,hatchback,heap,jalopy,junker,motorcar,roadster,sedan,subcompact,wheels,wreck,clunker,gasguzzler,touringcar$wordpy-ashappy# antonyms and synonyms[s]Happy(adjective)Feelingorshowingpleasureorcontentment[s]Synonyms
cheerful,contented,delighted,ecstatic,elated,glad,joyful,joyous,jubilant,lively,merry,overjoyed,peaceful,pleasant,pleased,thrilled,upbeat,blessed,blest,blissful,blithe,can'tcomplain,captivated,chipper,chirpy,content,convivial,exultant,flyinghigh,gay,gleeful,gratified,intoxicated,jolly,laughing,light,lookinggood,mirthful,oncloudnine,peppy,perky,playful,sparkling,sunny,tickled,tickledpink,up,walkingonair[s]Antonyms
depressed,disappointed,disturbed,down,grave,melancholy,miserable,sad,serious,sorrowful,troubled,unfriendly,unhappy,upset,discouraged,dissatisfied,forsaken,hopeless,morose,pained,unfortunate,unlucky$wordpy-ecomputer[s]Computer(noun)Anelectronicdeviceforstoringandprocessingdata,typicallyinbinaryform,accordingtoinstructionsgiventoitinavariableprogram.[s]Etymology
1640s,"one who calculates,"agentnounfromcompute(v.).Meaning"calculating machine"(ofanytype)isfrom1897;inmodernuse,"programmable digital electronic computer"(1945underthisname;theoreticalfrom1937,asTuringmachine).ENIAC(1946)usuallyisconsideredthefirst.Computerliteracyisrecordedfrom1970;anattempttoestablishcomputerate(adjective,onmodelofliterate)inthissenseintheearly1980sdidn'tcatchon.Computerese"the jargon of programmers"isfrom1960,asarecomputerizeandcomputerization.DevelopmentContributingMake an issue if you stumble upon a bug. Any ideas or features you'd like to be added, once again, make an issue out of.To do something more simulating like writing code, just clone this repo, get it on your local system, make a branch, push it back to your master and finally, make a pull request.I follow PEP-8 so you have to follow it too. Don't see why that's not already baked into the syntax.TestingTo run tests, simply install nose -$pipinstallnose
$pythonsetup.pytestor runnosetestsfor a cleaner output -$nosetestsI've never been a big fan of testing... let me rephrase, I've never been a big fan of writing tests myself but there's a handful of them intests/that should succeed before you even think about committing.Any new feature should come with its owntest_<name_of_feature>.pyfile in the saidtests/directory and should be verbose with at least two cases.Features To AddBasic usageTestingOptimizationDocumentation (?)Even more features[x] antonyms[x] etymologies[ ] different definitions