GitHub - arthur-schnitzler/pmb-service: PMB - A webservice for Person, Places, Works, Institutions and Events around 1900 (original) (raw)

flake8 Lint Test codecov

lightweight APIS-PMB instance to generate TEI/XML dumps

maybe in future also with PMB CRUD included

install

jupyter notebook

cheat-sheet

process gnd-beacon

python manage.py process_beacon --beacon=https://thun-korrespondenz.acdh.oeaw.ac.at/beacon.txt --domain=thun-korrespondenz

python manage.py process_beacon --beacon=https://raw.githubusercontent.com/Auden-Musulin-Papers/amp-entities/main/out/beacon.txt --domain=Auden-Musulin-Papers

python manage.py process_beacon --beacon=https://raw.githubusercontent.com/Hanslick-Online/hsl-entities/main/out/beacon.txt --domain=Hanslick

update schnitzler-briefe uris

python manage.py update_schnitzler_uris python manage.py update_schnitzler_uris --url "https://raw.githubusercontent.com/arthur-schnitzler/schnitzler-kultur/refs/heads/main/csv/uris-in-use.csv"

set up new instance

in order to avoid errors on a new instance you'll need to set an environment variable PMB_NEW=whatever. After you run the inital python manage.py migrate you should unset PMB_NEW

vite

reset sequence

BEGIN; SELECT setval(pg_get_serial_sequence('"django_migrations"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "django_migrations"; COMMIT;

Docker

building the image

running the image

To run the image you should provide an .env file to pass in needed environment variables; see pmb/settings.py for possible varibles:

docker run -it --network="host" --rm --env-file .env pmb:latest