Pure Python implementation of michmech's C# Gramadán utility for manipulating the Irish National Morphology Database
Project description
GramadánPy
With thanks to michmech (Michal Měchura)!
[UNOFFICIAL] A pure Python conversion of michmech's Gramadán.
Note that, at present, the Python is not idiomatic. It is intentionally kept similar to the original C#, although primarily in paradigm. The code here is extensively typed, and passes both mypy and black checkers.
Installation
This can be installed with poetry:
poetry install
The test suite can be executed, from this directory.
Tests
If you do not wish to install or run the .NET setup, you can still execute the pure Python test suite:
poetry run pytest tests/python
Comparison Checking
This directory contains a tool that can be run:
./comparison.sh
This has been set up (at present) to run from the working directory.
It assumes that you have built the C# Tester.csproj project in the /Tester folder and
that a binary exists at ../Tester/bin/Debug/Tester.exe
Path separators are currently Linux, to simplify visual code comparison, but these can be made OS-independent.
For the purposes of comparison, the following xbuild
was used:
XBuild Engine Version 14.0
Mono, Version 6.8.0.105
Copyright (C) 2005-2013 Various Mono authors
The command executed in the Tester folder was:
xbuild
The equivalent Python was originally compared with Python 3.9.7
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
File details
Details for the file gramadan-py-0.1.1.tar.gz
.
File metadata
- Download URL: gramadan-py-0.1.1.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.0-1050-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59265652d3411517fc5a9878b508a097d7760b3c0598e869c0702f3fea373c5d |
|
MD5 | b56456ea84d98f25bf3f40f668d450ff |
|
BLAKE2b-256 | 29a6913e9aac45965fe9342e0f0e552d4f6853ffaeb2f6d882e89d44ce6d3870 |
File details
Details for the file gramadan_py-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gramadan_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 59.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.0-1050-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7a11738c4e839182d54c4fb1f0edeedd0fd8b2ad09fce77a1e8701b2ce2d277 |
|
MD5 | ee194e01eff69dde8117290d930ae997 |
|
BLAKE2b-256 | 0ce8163ea1d8b07bb1f3478a721588ab091998f5a14814362a672a8a820aa3fc |