Metadata-Version: 2.4
Name: jp_prefectures_simple
Version: 0.2.0
Summary: Japanese prefecture names and JIS X 0401 codes converter.
Keywords: japan,prefecture,jis x 0401,converter
Author: IWAI, Masaharu
Author-email: IWAI, Masaharu <iwaim.sub@gmail.com>
License-Expression: MIT
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Project-URL: Documentation, https://github.com/iwaim/jp-prefectures-simple-python
Project-URL: Source, https://github.com/iwaim/jp-prefectures-simple-python
Project-URL: Tracker, https://github.com/iwaim/jp-prefectures-simple-python/issues
Description-Content-Type: text/markdown

# jp-prefectures-simple

Japanese prefecture names and JIS X 0401 codes converter.

This package has no external dependencies.

## Installation

```bash
pip install jp-prefectures-simple
```

## Usage

### Python API

You can import functions directly from the package:

```python
from jp_prefectures_simple import name2code, code2name

# Convert name to code
code = name2code("東京都")
print(code)  # "13"

# Convert code to name
name = code2name(13)
print(name)  # "東京都"

name = code2name("13")
print(name)  # "東京都"

# Convert list of names to codes
codes = name2code(["北海道", "東京都"])
print(codes)  # ["01", "13"]

# Convert list of codes to names
names = code2name([1, "13"])
print(names)  # ["北海道", "東京都"]
```
