Metadata-Version: 2.4
Name: aozora
Version: 0.5.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
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: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Text Processing :: Markup
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Typing :: Typed
Requires-Dist: pytest>=8 ; extra == 'dev'
Requires-Dist: mypy>=1.11 ; extra == 'dev'
Requires-Dist: maturin>=1.9,<2.0 ; extra == 'dev'
Requires-Dist: pytest>=8 ; extra == 'test'
Provides-Extra: dev
Provides-Extra: test
Summary: Aozora Bunko notation (青空文庫記法) parser — Python bindings (PyO3).
Keywords: aozora,aozora-bunko,parser,japanese,ruby,furigana,shift-jis
Author: aozora contributors
License: Apache-2.0 OR MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/P4suta/aozora/blob/main/CHANGELOG.md
Project-URL: Homepage, https://p4suta.github.io/aozora/
Project-URL: Issues, https://github.com/P4suta/aozora/issues
Project-URL: Repository, https://github.com/P4suta/aozora

# aozora

Python bindings for [aozora](https://github.com/P4suta/aozora), a parser
for 青空文庫記法 (Aozora Bunko notation).

```sh
pip install aozora
```

```python
import aozora

aozora.Document("｜青梅《おうめ》の街").to_html()
```

Real 青空文庫 archive files are Shift_JIS, not UTF-8. Feed those in as
bytes and the encoding is detected for you:

```python
aozora.Document.from_bytes(open("kokoro.txt", "rb").read()).to_html()
```

The package is typed, and every method carries its documentation, so
`help(aozora.Document)` is the full surface.

- [Source & issues](https://github.com/P4suta/aozora)
- [The notation](https://p4suta.github.io/aozora-notation-spec/)

Apache-2.0 OR MIT, at your option.

