{"id":25895512,"url":"https://github.com/diamondlightsource/flask-ispyb-logistics","last_synced_at":"2025-03-02T22:31:47.045Z","repository":{"id":40422142,"uuid":"155565817","full_name":"DiamondLightSource/flask-ispyb-logistics","owner":"DiamondLightSource","description":"Dewar tracking within synchrotron","archived":false,"fork":false,"pushed_at":"2024-10-29T09:58:46.000Z","size":1835,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T11:57:39.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"drnasmith/flask-ispyb-logistics","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiamondLightSource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-31T13:53:26.000Z","updated_at":"2024-10-29T09:58:47.000Z","dependencies_parsed_at":"2024-04-04T13:30:04.316Z","dependency_job_id":"e7b56333-20d6-45b0-826f-a83c4fc9c11e","html_url":"https://github.com/DiamondLightSource/flask-ispyb-logistics","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fflask-ispyb-logistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fflask-ispyb-logistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fflask-ispyb-logistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fflask-ispyb-logistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiamondLightSource","download_url":"https://codeload.github.com/DiamondLightSource/flask-ispyb-logistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582515,"owners_count":19985845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T22:31:42.543Z","updated_at":"2025-03-02T22:31:47.039Z","avatar_url":"https://github.com/DiamondLightSource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISPyB Logistics (Dewar Management)\n\n## Setup\nCreate a virtualenv (e.g python 3.8) then install dependencies with pip\n    $ virtualenv --python=python3.8\n    $ source .env/bin/activate\n    $ pip install -r requirements.txt\n\n## Configuration\nThere is an example run script in the ./scripts directory which shows how to configure the app\n\n### SynchWeb URL (for updating history)\n    export SYNCHWEB_HOST=\u003cSynchWeb address: e.g. https://ispyb.diamond.ac.uk/ \u003e\n\n### ISPyB Database config\n    export ISPYB_CONFIG_FILE=\u003cpath to credentials file\u003e  \n    export ISPYB_CONFIG_SECTION=\u003csection name in file (e.g. ispyb_prod)\u003e  \n\nFormat of the .cfg file is as specified by ispyb-python-api  \nExample in tests/test.cfg\n\n### Flask config\n    export FLASK_APP=app.py\n    export FLASK_ENV=development | production\n\n## Running\n    $ flask run --host \u003cip addr\u003e --port \u003cport\u003e\n\n## Security\nThere is no application level authentication here\nIt's designed to work with nginx to control access \n\n## Model Generation\nThis app uses a fraction of the ISPyB database tables\nIf core tables have changed (Dewar, DewarTransportHistory, BLSession, Proposal, Person, Shipping etc.) the models file might need to be re-generated.\n\nTo update the models within the ispyb_api package run:\n    $ python -m scripts/generate_models\n\nThis will create a './scripts/automodels.py' file\n\nThe script output will show if the file differs from ispyb_api/models.py\n\nIf it does, integrate changes or copy the ./scripts/automodels.py file across to the ispyb_api/models.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fflask-ispyb-logistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiamondlightsource%2Fflask-ispyb-logistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fflask-ispyb-logistics/lists"}