semvec/pypi-packages huggingface dataset:
PyKatsuyou 1.1.1
A Japanese inflections tool
Requires Python: >=3.6
Keywords: japanese,inflections,conjugation

# PyKatsuyou

A Japanese verb/adjective inflections tool for python.  

PyKatsuyou uses these great packages:

- [igo-python](https://github.com/hideaki-t/igo-python) (detecting verbs and adjectives)
- [jaconv](https://github.com/ikegami-yukino/jaconv) (convert katakana --> hiragana)
- [tabulate](https://github.com/astanin/python-tabulate) (print a table)

## Install

```bash
pip install pykatsuyou
```

## Usage

This tool requires that you input the dictionary form of the verb/adjective. Using only hiragana may have strange results (unless it's an irregular verb).

```python
from tabulate import tabulate
from pykatsuyou import getInflections
from igo.tagger import Tagger

tt = Tagger() # Optional

data = getInflections('する', jsonIndent=2, tt=tt)
print(data['json'])
print(data['list'])

table = getInflections('行く', dataframe=True)
print(tabulate(table, headers='keys', tablefmt='pretty'))
```

### CLI

```bash
pykatsuyou する

pykatsuyou -h

Usage:
pykatsuyou [verb/adjective] [-h/-j/-l]
*Must use dictionary form

Options:
***A table is printed by default***
-h (--help) = outputs this text
-j (--json) = prints json
-l (--list) = prints a list
```

## Output - 行く

### Object

```python
{
    # json contains a json string
	'json': '{
		"Affirmative": {
			"Dict-Form": "行く",
			"Non-Past Polite": "行きます",
			"Past": "行った",
			"Past Polite": "行きました",
			"Te-Form": "行って",
			"Imperative": "行け",
			"Conditional": "行けば",
			"Volitional": "行こう"
		},
		"Negative": {
			"Dict-Form": "行かない",
			"Non-Past Polite": "行きません",
			"Past": "行かなかった",
			"Past Polite": "行きませんでした",
			"Te-Form": "行かなくて",
			"Imperative": "行くな",
			"Conditional": "行かなければ",
			"Volitional": "ｘ"
		}
	}',
	'list': [
		'行きます',
		'行った',
		'行きました',
		'行って',
		'行け',
		'行けば',
		'行こう',
		'行きません',
		'行かなかった',
		'行きませんでした',
		'行かなくて',
		'行くな',
		'行かなければ'
	]
}
```



### Table

<table>
<thead>
<tr><th>Godan Verb     </th><th>Affirmative  </th><th>Negative        </th></tr>
</thead>
<tbody>
<tr><td>Dict-Form      </td><td>行く         </td><td>行かない        </td></tr>
<tr><td>Non-Past Polite</td><td>行きます     </td><td>行きません      </td></tr>
<tr><td>Past           </td><td>行った       </td><td>行かなかった    </td></tr>
<tr><td>Past Polite    </td><td>行きました   </td><td>行きませんでした</td></tr>
<tr><td>Te-Form        </td><td>行って       </td><td>行かなくて      </td></tr>
<tr><td>Imperative     </td><td>行け         </td><td>行くな          </td></tr>
<tr><td>Conditional    </td><td>行けば       </td><td>行かなければ    </td></tr>
<tr><td>Volitional     </td><td>行こう       </td><td>ｘ              </td></tr>
</tbody>
</table>
pypgtable 0.0.1.dev12
A quick & easy way to manage postgresql tables.
Requires Python: >=3.11

# pypgtable

A simple interface to Posgres database tables. 

[![Python package](https://github.com/Shapedsundew9/pypgtable/actions/workflows/python-package.yml/badge.svg?branch=main)](https://github.com/Shapedsundew9/pypgtable/actions/workflows/python-package.yml)
[![codecov](https://codecov.io/gh/Shapedsundew9/pypgtable/branch/main/graph/badge.svg?token=Z9C9Z9B3T1)](https://codecov.io/gh/Shapedsundew9/pypgtable)

## Sunburst Code Coverage Chart

 The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
 ![Sunburst](https://codecov.io/gh/Shapedsundew9/pypgtable/branch/main/graphs/sunburst.svg)

## Usage Examples

TBD

For more details see [design documentation](docs/pypgtable.md)