Skip to content

Commit

Permalink
Merge pull request #24 from software-students-fall2023/KeiChangesFour
Browse files Browse the repository at this point in the history
editing readMe
  • Loading branch information
Ryan-Horng authored Nov 8, 2023
2 parents d15d239 + c29c5a3 commit c53cd62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ RiceInfo is a fun little package that returns rice trivia, puns, and pictures of
- **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-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple riceinfo==0.0.8
RiceInfo can be installed through the pip command: pip install riceinfo

## Functions and usage

Create a new python file and install riceinfo. From there, you can import riceinfo's package with the following lines of code:
```python
from riceinfo import rice
from riceinfo.rice import riceinfo
from riceinfo.rice import Pun
```


### Print a riceball: 'print_riceball(emotions)'
### Print a riceball: `print_riceball(emotions)`

Print out a riceball with a specific emotion.

Expand All @@ -39,9 +40,9 @@ riceinfo.print_riceball("angry")
riceinfo.print_riceball("nervous")
```

### Tell a Rice Pun: 'tellPun(punType: Pun) -> str'
### Tell a Rice Pun: `tellPun(punType: Pun) -> str`

Returns 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.
Returns 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 usage

Valid commands are:
```python
Expand All @@ -55,7 +56,7 @@ pun = riceinfo.tellPun(Pun.RHYME)

This should return the pun to the variable.

### Rice History: 'history(century)'
### Rice History: `history(century)`

Input a specific century of the common era to have returned a year specific history fact.

Expand All @@ -72,7 +73,7 @@ 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)'
### 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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "riceinfo"
description = "A fun package for your rice needs. Print out riceballs, rice puns, rice history, and country's main rice types!"
version = "0.0.8"
version = "0.0.9"
authors = [
{ name="Kei Oshima", email="[email protected]" },
{ name="Ryan Horng", email="[email protected]"},
Expand Down

0 comments on commit c53cd62

Please sign in to comment.