Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/cdli-gh/cdli-search
Search interface experiment
https://github.com/cdli-gh/cdli-search
Output a python-escaped version of the field values so it's clear
what triggered the warning. Of...
Python caches compiled code in this this directory. We don't want
this tracked in the source cod...
Mark commits with style nits as not passing.
595ae9ca06d34ca142dc8ce38436862ee8e96113 authored over 5 years ago
This only reflects the status of the current master branch on
github, not any local checkout whe...
The continuous integration system at travis-ci.org offers some
docker support. Try instantiating...
This is the current release. Seems to work fine.
e39ef89f96ea8943d96802cd9222583dfd448dfc authored over 5 years ago
Parse command-line arguments when invoked as an executable.
Require the path to the cdli data ex...
When an extra column is present in a row, csv.DictReader returns
it as a list under the `None` k...
Reformat the check_columns loop to fit in 80 characters.
Less nesting can be easier to read and ...
Move the DictReader instance to a helper method so it can be
accessed directly by the checks whi...
Both check.py and upload.py need to open and part the catalogue
csv files. Move this and some ot...
Allow invoking as `pipenv run python upload.py /path/to/data` so
it's possible to use an existin...
This is mostly to reduce the length of the output when running in
automation.
Matches what the travis test expects.
b1ef42153f3387599e8f5366386a5c9193debeff authored over 5 years ago
Unfortunately there are over a thousand of the non-printable character
corruptions. Many are tab...
fb3a91b74eabf8a6d2ce51113306497dd4d0f31f authored over 5 years ago
The upload script needs to be invoked with python explicitly.
ceec23fa1f9f717a14b7576c95098de73d2fd3ef authored over 5 years ago
Nicer than having to paste the url, assuming the browser will
follow a localhost link.
Don't make people look it up.
6f49421a9914c96b1a924e4e32513e12ba3bd735 authored over 5 years ago
Give a basic quickstart introduction to help people try out
the demo.
Specify interaction standards for publication. Copied from
contributor-covenant.org by Coraline ...
Set a license file for publication.
92fd361f98bcbba446b9a98e66db312d0c82037f authored over 5 years agoinvoke with `pipenv run python check.py`.
6a4352c633c76ebb96c1fe222cdcbcbb72caec1c authored over 5 years agoThis is useful for testing when we to start with a fresh upload.
36354d25a8580845fbec6d8ee54102cc5d6716d9 authored over 5 years ago
Set or update an generic 'cdli-catalogue' index alias when the
upload is complete and use that i...
Complain instead of silently altering the catalogue data in
the unlikely possibility that column...
Wrap read_catalogue in another function which adds metadata keys
to the row dictionary. This let...
This is much faster than the previous document-at-a-time indexing
upload, but still takes severa...
These are no longer necessary now that it's working.
cf74f0df01983ae8c70795ea33e9106e8e4fc0ad authored over 5 years ago
Make div#results hide itself properly, and remove the obsolete
placeholder data.
Correctly generate a list of results. It turns out `this` isn't
bound in then functions chained ...
This ensures queries are sent to the api instance without having
to pass the correct url into th...
Use starlette's StaticFiles class to serve anything under the
vue directory.
Vue.js search page to make testing the api a little nicer.
1181d31902817b0f729b2132f9845b0a2a34a9b3 authored over 5 years agoI think this is the same as the _search?q=foo REST api.
2905c99df4eb8bb4644a0c67d1fd6ec204c35bdf authored over 5 years ago
I tried using pydanic.Schema to add the same documentation to
the paging parameters skip and lim...
Query some common fields. Finds 'Ishtar descent' but not 'K 162',
so not really doing better yet...
Fetches the catalogue data for the given CDLI id (the numerical
part of the P-number).
FastAPI-based stub for querying the index and returning search
results.
Invoke with:
pipen...
a63280f82e971b657eac92d7e90232e642b9299d authored over 5 years agoSimplest possible indexing with no tuned weights for different fields.
Generate an index name b...
23c4018ce5808a4f5dc36c9d5e3f2038b083f77e authored over 5 years agoThis is the Python package wrapping the elasticsearch REST api.
Invoke with
pipenv install...
e82096c05c848681ab65fda8d0f3c819402ddee6 authored over 5 years ago
This is only relavent when invoked in my local config, where
a checkout of https://github.com/cd...
Build a reader to logically concatenate the two file segments,
read and parse each row, and prin...