Tools used to work with MELD texts
Project description
Meldtools - investigating Middle English documents in Python
Meldtools is a package that allows you to conveniently search Middle English Local Documents corpus. It lets you query the corpus, slice it to easily-definable chunks and work with transcriptions, all in one place.
Setting up development environment
- Clone this repository and
cdinto it.
Python version manager
- Use a Python version manager of your choice.
- The recommended one to use is pyenv.
- Install Python ^3.8 with your version manager.
Python package manager
- Poetry is the package manager used in this project.
- Follow the installation guide on the website to install Poetry.
- Run
poetry installso that Poetry can create a virtual envionment and install the packages into it. - Poetry uses
pyproject.toml, the new configuration file for Python laid out in PEP 517 and PEP 518.
Testing
To quickly run unit tests run the command like this
make test
Or if you want a full coverage report
make ctest
Check for type hints by running
make mypy
Running the command-line program
In order to run the program key in the following:
poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv -
The program works the Unix way, and it accepts a file or - as a special file that refers to stdout.
poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv -
# OR
poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv out.json
You can direct stdout to a file by appending > meld.json to the previous command.
You can also pipe stdout directly to jq, for example, poetry run vl-lingo jsonify -d dir/with/rec/files -r /path/to/register/csv - | jq.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meldtools-0.2.0.tar.gz.
File metadata
- Download URL: meldtools-0.2.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.8 CPython/3.8.2 Darwin/19.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e283e0c3e72401a1a2b4f39a480e8480710ed4326dc9b6d88d957b8aafe15fb2
|
|
| MD5 |
9bd2e3d42f243e94aad2e2b62e8e67c3
|
|
| BLAKE2b-256 |
d71950b091c3a245e63d04f8e0268447c57584e8ce3c8f08c25b8fc6dd529e3b
|
File details
Details for the file meldtools-0.2.0-py3-none-any.whl.
File metadata
- Download URL: meldtools-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.8 CPython/3.8.2 Darwin/19.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a0ca805d7be497c6e36554c0b45beff08ad25fd817f4ecf2f70afb3f6616a6f
|
|
| MD5 |
70de656bed758b699768321b7c8ed87d
|
|
| BLAKE2b-256 |
0e71c0d9c94aec6105aa691fa178c8d4faa507cf531f387d3255cc1d988b837a
|