Skip to main content

Innodata BRS schema and utilities

Project description

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)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ilabs.brs-1.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ilabs.brs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ilabs.brs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for ilabs.brs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57130167ad637d6db8229a1fc00e6e70f0cd1aaef296a9801d2a4bb3ff6dda00
MD5 48e5de76a693d41f9d768ff07f2d0777
BLAKE2b-256 c85e9beb742f72944e32ddef731007c999d6add5b70be4b5d74263e849f34d69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page