Skip to main content

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


Download files

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

Source Distribution

gramadan-py-0.1.1.tar.gz (47.5 kB view hashes)

Uploaded Source

Built Distribution

gramadan_py-0.1.1-py3-none-any.whl (59.2 kB view hashes)

Uploaded Python 3

Supported by

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