[](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml)
[](https://pypi.python.org/pypi/chamd/)
[](https://doi.org/10.5281/zenodo.8091301)
# CHAMD
Conversion and cleaning of CHILDES CHA files into PaQu Plaintext
Metadata Format (to convert to Alpino).
## Installation and usage
```bash
pip install chamd
chamd --help
```
Running from project:
```bash
python -m chamd --help
```
## Import as library
This way the library can be used to read CHAT file (contents) from an external application.
```python
from chamd import ChatReader
reader = ChatReader()
chat = reader.read_file('example.cha') # or read_string
for item in chat.metadata:
print(item)
for line in chat.lines:
for item in line.metadata:
print(item)
print(line.text)
```
## Upload to PyPi
```bash
python setup.py sdist
twine upload dist/*
```
## Run tests
```bash
python -m unittest discover tests/
```
Raw data
{
"_id": null,
"home_page": "https://github.com/UUDigitalHumanitieslab/chamd",
"name": "chamd",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5, <4",
"maintainer_email": "",
"keywords": "",
"author": "Digital Humanities Lab, Utrecht University",
"author_email": "digitalhumanities@uu.nl",
"download_url": "https://files.pythonhosted.org/packages/34/69/db7130f9a8e8fd35bd22089a5bef2664aae320a7b0c052835c776f0c0cf5/chamd-0.5.12.tar.gz",
"platform": null,
"description": "[](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml)\n[](https://pypi.python.org/pypi/chamd/)\n[](https://doi.org/10.5281/zenodo.8091301)\n# CHAMD\nConversion and cleaning of CHILDES CHA files into PaQu Plaintext\nMetadata Format (to convert to Alpino).\n\n## Installation and usage\n```bash\npip install chamd\nchamd --help\n```\n\nRunning from project:\n```bash\npython -m chamd --help\n```\n\n## Import as library\nThis way the library can be used to read CHAT file (contents) from an external application.\n\n```python\nfrom chamd import ChatReader\nreader = ChatReader()\nchat = reader.read_file('example.cha') # or read_string\n\nfor item in chat.metadata:\n print(item)\nfor line in chat.lines:\n for item in line.metadata:\n print(item)\n print(line.text)\n```\n\n## Upload to PyPi\n```bash\npython setup.py sdist\ntwine upload dist/*\n```\n\n## Run tests\n```bash\npython -m unittest discover tests/\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Conversion and cleaning of CHILDES CHA files into PaQu Plaintext Metadata Format",
"version": "0.5.12",
"project_urls": {
"Homepage": "https://github.com/UUDigitalHumanitieslab/chamd"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3469db7130f9a8e8fd35bd22089a5bef2664aae320a7b0c052835c776f0c0cf5",
"md5": "7c653657d976505a9ddf055f5d415d69",
"sha256": "49dbc36193f9da71249553bec64a6a7fdd0d13f93c056acd5b57f41eccad61c2"
},
"downloads": -1,
"filename": "chamd-0.5.12.tar.gz",
"has_sig": false,
"md5_digest": "7c653657d976505a9ddf055f5d415d69",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5, <4",
"size": 15244,
"upload_time": "2024-03-13T10:22:34",
"upload_time_iso_8601": "2024-03-13T10:22:34.390003Z",
"url": "https://files.pythonhosted.org/packages/34/69/db7130f9a8e8fd35bd22089a5bef2664aae320a7b0c052835c776f0c0cf5/chamd-0.5.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-13 10:22:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "UUDigitalHumanitieslab",
"github_project": "chamd",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"lcname": "chamd"
}