Skip to main content

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


Download files

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

Source Distribution

ditrans2cldf-1.0.2.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

ditrans2cldf-1.0.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file ditrans2cldf-1.0.2.tar.gz.

File metadata

  • Download URL: ditrans2cldf-1.0.2.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for ditrans2cldf-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dafb026dfb1d2c243956265e94e98ba07e11f1c54c52d9fed8225b010506b4be
MD5 59cc470a1cded12b740145164552898e
BLAKE2b-256 18b37b424bf2f9f8efc0091de1df8cbacd12324ceed5f58c91094380e78e0343

See more details on using hashes here.

File details

Details for the file ditrans2cldf-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: ditrans2cldf-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for ditrans2cldf-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 564ae19355ba5184eeb232e7acde0eddafb26e265f3ba3f371a616885b1c4461
MD5 1a58a1b0c8efb764fcdc8dc9f4ea7cc9
BLAKE2b-256 fde479689b9591f0e1ec11c676766e50e1709552e7929baa8635031354632001

See more details on using hashes here.

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