Small library for converting Ditransitive-style Filemaker databases to CLDF
Project description
ditrans2cldf
Python package for processing Filemaker databases following the structure of Malchukov & Haspelmath's Ditranstive constructions data base.
This package reads the Excel export from the Filemaker database and converts it into the CLDF format.
Set up
Ditrans2cldf can be installed using pip:
$ pip install ditrans2cldf
Basic usage
pydictionaria is built on top of cldfbench. You can set up a ditrans2cldf project using the provided cldfbench template.
$ cldfbench new --template=ditransitive_db
The conversion process involves exporting the views in the Filemaker database as
Excel files and putting them into the raw/
folder of the cldfbench. See
doc/export-tutorial.pdf
for a list of table columns
that you need to export. The exported Excel files need then to be converted to
CSV (unfortunately Filemaker's builtin CSV/TSV exports lack column headers,
otherwise we would have used those directly). After that you can run makecldf
to generate the CLDF data.
$ # convert excel to csv
$ cldfbench download cldfbench_*.py
$ # generate cldf data
$ cldfbench makecldf cldfbench_*.py
ditrans2cldf supports a configuration file in the etc/
folder of the
cldfbench, which gives more control over which Filemaker columns map to which
CLDF columns. For all supported options refer to
doc/configuration-file.md
.
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 ditrans2cldf-1.0.1.tar.gz
.
File metadata
- Download URL: ditrans2cldf-1.0.1.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de25c36745bfe5df292ff91fee8c7414644473806885a4be19a5867acb863f6c |
|
MD5 | a9e7ae8302936505f9734c06bd22073c |
|
BLAKE2b-256 | dadc7afeae2d94accc26669c857b372b7ac993080c25a36685b2b89993349fe2 |
File details
Details for the file ditrans2cldf-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ditrans2cldf-1.0.1-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed41aa504b4b520c34c686c40e6114cd92814bf2ebecbccf591e10d2d860f5cd |
|
MD5 | 7192118b6726e3a7ed34751a69d0611d |
|
BLAKE2b-256 | 7362a2007364df0fffee3802e761bbf36fe16de7b95f892c1f871c7f10ecd873 |