Metadata-Version: 2.1
Name: jeraconv
Version: 0.1.0
Summary: jeraconv (Japanese Era Name Converter) is a converter that converts Japanese eras to West calendar.
Home-page: https://github.com/slangsoft/jeraconv
Author: slangsoft
Author-email: slangsoft@gmail.com
License: MIT
Keywords: jeraconv japanese era
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown

# jeraconv
jeraconv (Japanese Era Name Converter) is a converter that converts Japanese eras to West calendar.

## Installation
```text
$ pip install jeraconv
```
## Usage
```python
from jeraconv import jeraconv

# Create J2W class instance
jc = jeraconv.J2W()

# ex.1 : General usage
print(jc.convert('文治6年'))
# result (int)1190

# ex.2 : Full-width numbers are also available
print(jc.convert('平成３１年'))
# result (int)2019

# ex.3 : It is also possible to write "1年" as "元年"
print(jc.convert('令和元年'))
# result (int)2019

# ex.4 : Returns a ValueError if the era name does not exist
print(jc.convert('牌孫4年'))
# result ValueError
```

