Metadata-Version: 2.1
Name: spec2json
Version: 0.1.0
Summary: Extract section metadata and algorithm steps from specification HTML documents as JSON.
Home-page: https://github.com/linusg/spec2json
License: MIT
Author: Linus Groh
Author-email: mail@linusgroh.de
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Documentation
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Utilities
Requires-Dist: beautifulsoup4 (>=4.10.0,<5.0.0)
Requires-Dist: click (>=8.1.2,<9.0.0)
Requires-Dist: html5lib (>=1.1,<2.0)
Requires-Dist: httpx (>=0.22.0,<0.23.0)
Project-URL: Repository, https://github.com/linusg/spec2json
Description-Content-Type: text/markdown

# spec2json

> Extract section metadata and algorithm steps from specification HTML documents
> as JSON.

[![PyPI](https://img.shields.io/pypi/v/spec2json)](https://pypi.org/project/spec2json/)
![Python Version](https://img.shields.io/pypi/pyversions/spec2json)
[![License](https://img.shields.io/github/license/linusg/spec2json?color=d63e97)](https://github.com/linusg/spec2json/blob/main/LICENSE)
[![Black](https://img.shields.io/badge/code%20style-black-000000)](https://github.com/ambv/black)

## Installation

Install from PyPI:

```console
pip3 install spec2json
```

## Usage

See `spec2json --help`.

Example:

```console
spec2json --numbered https://tc39.es/ecma262/ https://tc39.es/ecma402/ > ecmascript.json
```

## Supported formats

- [Bikeshed](https://tabatkins.github.io/bikeshed/) (various Web specs),
- [Ecmarkup](https://tc39.es/ecmarkup/) (ECMAScript)
- [Wattsi](https://github.com/whatwg/wattsi) (HTML standard)

