Metadata-Version: 2.1
Name: ilabs.brs
Version: 1.0.1
Summary: Innodata BRS schema and utilities
Home-page: http://innodata.com
Author: Mike Kroutikov
Author-email: mkroutikov@innodata.com
License: MIT
Keywords: inline tagging xml schema
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: lxml
Requires-Dist: lxmlx

# Innodata BRS schema and related utils

BRS schema (Block-Record-Span) is used to mark inline entities in text and XML documents.

Namespace is:
```
http://innodatalabs.com/brs
```

## BRS parser (validates XML agains BRS schema)

```python
from ilabs.brs import parse_brs

xml_text = b'''\
<i:b xmlns:i="http://innodatalabs.com/brs">
<i:r>Hello, <i:s l="name">Mike</i:s></i:r>
</i:b>
'''

xml = parse_brs(xml_text)  # this will throw if input is not a valid BRS
...
```

## Developing

```
pip install -r requirements.txt wheel pytest
PYTHONPATH=. pytest .

python setup.py bdist_wheel
```


