Metadata-Version: 2.1
Name: pyparlaclarin
Version: 0.4.0
Summary: Read, create, and modify Parla-Clarin XML files
Home-page: https://github.com/welfare-state-analytics/pyparlaclarin
License: MIT
Author: ninpnin
Author-email: vainoyrjanainen@icloud.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Documentation, https://welfare-state-analytics.github.io/pyparlaclarin/pyparlaclarin/
Project-URL: Repository, https://github.com/welfare-state-analytics/pyparlaclarin
Description-Content-Type: text/markdown

# Pyparlaclarin

This module includes functionality for reading, creating, and modifying Parla-Clarin XML files.

For instance, you can loop over all paragraphs in a Parla-Clarin file with a simple function:

```python
from pyparlaclarin.read import paragraph_iterator

for paragraph in paragraph_iterator(root):
	print(paragraph)
```

or get all speeches by a speaker

```python
from pyparlaclarin.read import speeches_with_name

for speech in speeches_with_name(root, name="barack_obama_1961"):
	print(speech)
```

Further documentation is available on [GitHub pages](https://welfare-state-analytics.github.io/pyparlaclarin/pyparlaclarin/).
