How to use the clldmpg.cdstar.SERVICE_URL function in clldmpg

To help you get started, we’ve selected a few clldmpg 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 clld / glottolog3 / glottolog3 / util.py View on Github external
def bitstream_link(oid, spec):
        url = cdstar.SERVICE_URL.path(
            '/bitstreams/{0}/{1}'.format(oid, spec['bitstreamid'])).as_string()
        return HTML.a(
            '{0} [{1}]'.format(spec['bitstreamid'], format_size(spec['filesize'])),
            href=url)

clldmpg

Python library supporting development of CLLD apps maintained by MPI EVA

Apache-2.0
Latest version published 5 months ago

Package Health Score

57 / 100
Full package analysis

Popular clldmpg functions

Similar packages