How to use the pycldf.sources.Source function in pycldf

To help you get started, we’ve selected a few pycldf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cldf / cldf / examples / wals / cldf.py View on Github external
def bibrecord2source(req, src):
    rec = src.bibtex()
    rec['wals_url'] = req.resource_url(src)
    return Source(rec.genre.value if rec.genre else 'misc', rec.id, **dict(rec.items()))

pycldf

A python library to read and write CLDF datasets

Apache-2.0
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis