Package: riceinfo
RiceInfo PackageWhat is RiceInfo?RiceInfo is a fun little package that returns rice trivia, puns, and pictures of riceballs.CommandsPrint a Riceball: Print out a riceball with a specified emotion, to which it will exclaim its feelings.Tell a Rice Pun: Input a specified type of joke to return a random pun from our dictionary of puns.Rice History facts: Specify a specific century you would like to learn a rice history fact. Disclaimer: Only goes through the 1st-21st century.Countries with Rice: Input from a specific country list to find out their preferred rice type.Installation(Note) when testing this on pypitest we had to install with this: pip install --index-urlhttps://test.pypi.org/simple/--extra-index-urlhttps://pypi.org/simplericeinfo==0.1.0RiceInfo can be installed through the pip command: pip install riceinfoFunctions and usageCreate a new python file and install riceinfo. From there, you can import riceinfo's package with the following lines of code:fromriceinfo.riceimportriceinfofromriceinfo.riceimportPunPrint a riceball:print_riceball(emotions)Print out a riceball with a specific emotion.The only emotions currently supported is: Happy, Sad, Angry, Nervous.Valid commands will look like:riceinfo.print_riceball("happy")riceinfo.print_riceball("sad")riceinfo.print_riceball("angry")riceinfo.print_riceball("nervous")Tell a Rice Pun:tellPun(punType: Pun) -> strReturns a specified type of pun relating to rice. We have specific types of jokes, short length puns, medium length puns, long length puns, dad puns, and rhyme puns. If you want tio use this function please make sure to also import the pun class Which is provided above at Functions and usageValid commands are:pun=riceinfo.tellPun(Pun.SHORT)pun=riceinfo.tellPun(Pun.MEDIUM)pun=riceinfo.tellPun(Pun.LONG)pun=riceinfo.tellPun(Pun.DAD)pun=riceinfo.tellPun(Pun.RHYME)This should return the pun to the variable.Rice History:history(century)Input a specific century of the common era to have returned a year specific history fact.Valid command examples are:history=riceinfo.history(1)history=riceinfo.history(5)history=riceinfo.history(21)history=riceinfo.history(0)history=riceinfo.history(22)Note that inputting integers that are not within 1 through 21 will return a quip about staying within the range.Country's preferred rice:riceCountry(country_name)Input a country from the list of research countries to have returned a small info card about the rice that country commonly uses and its unique properties.The countries that are valid within this package is: Brazil, Egypt, Mexico, Nigeria, China, Thailand, Indonesia, Japan, and South Korea.A valid command examples would be:riceType=riceinfo.riceCountry('brazil')riceType=riceinfo.riceCountry('Brazil')riceType=riceinfo.riceCountry('Mexico')Example FileWe have provided an example file with the methods noted above,click here.Contribute to the packageShould you feel compelled, feel free to contribute to the project. In order to contribute:For the repository by going to our (GitHub Main Page)[https://github.com/software-students-fall2023/3-python-package-exercise-riceballz/tree/main]Using Git Bash or a preferred shell, clone the repository to your local files with the command
'''
git clone ...
'''Set up your development environment by opening up a terminal in python. If you do not have pipenv installed, run the command "pip install pipenv" to install the package. Once installed, install any package dependencies by running "pipenv install --dev".Run "pipenv shell" to activate your virtual environment.
This should allow you to write your code to contribute to the riceinfo package.Other NotesMake sure to create your own feature branch, then add and commit your changes. From there, create a pull request. Our team will review changes when possible.When adding new written functions or building upon old commands, make sure to write and run additional tests in the tests folder.Remember to write necessary documentation in the README.md for any additional changes.ContributorsAndrew HuangKei OshimaRichard QuRyan Horng