{"id":25895401,"url":"https://github.com/diamondlightsource/pato-backend","last_synced_at":"2025-03-02T22:31:09.943Z","repository":{"id":101597752,"uuid":"609068304","full_name":"DiamondLightSource/pato-backend","owner":"DiamondLightSource","description":"Particle analysis and tomography data display application (backend)","archived":false,"fork":false,"pushed_at":"2025-02-25T13:20:56.000Z","size":619,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T14:33:14.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiamondLightSource.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2023-03-03T10:04:29.000Z","updated_at":"2025-02-25T13:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebb65369-0914-4b1e-98cf-7d3da4322ee5","html_url":"https://github.com/DiamondLightSource/pato-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fpato-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fpato-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fpato-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiamondLightSource%2Fpato-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiamondLightSource","download_url":"https://codeload.github.com/DiamondLightSource/pato-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582512,"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:09.399Z","updated_at":"2025-03-02T22:31:09.935Z","avatar_url":"https://github.com/DiamondLightSource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PATo API\n===========================\n\n|license|\n\n============== ==============================================================\nSource code    https://github.com/DiamondLightSource/pato-backend\n============== ==============================================================\n\nParticle Analysis and Tomography Data API.\n\n==========\nConfiguration\n==========\n\nThe API supports a configuration file, that follows the example set in :code:`config.json`, but most importantly, two environment variables need to be set:\n\n- :code:`SQL_DATABASE_URL`: The URL for the database\n- :code:`CONFIG_PATH`: Path for the configuration file\n\n==========\nDeployment\n==========\n\nRunning development server on your machine:\n\n1. Install the package with :code:`pip install .` or :code:`pip install -e .`\n2. Set the `SQL_DATABASE_URL` environment variable according to your database's location\n3. Run :code:`uvicorn` with `uvicorn pato.main:app --reload --port 8000`\n\n============\nTesting\n============\n\n- Build the database Docker image in `database` with :code:`podman build . -t diamond-ispyb`\n- Run with :code:`podman run -p 3306:3306 --detach --name diamond-ispyb localhost/diamond-ispyb`\n    - You may change the port or where the container itself runs, just remember to update `.test.env`\n- Run :code:`pytest tests`\n\n.. |code_ci| image:: https://gitlab.diamond.ac.uk/lims/pato-backend/badges/master/pipeline.svg\n    :target: https://gitlab.diamond.ac.uk/lims/pato-backend/-/pipelines\n    :alt: Code CI\n\n.. |license| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n    :target: https://opensource.org/licenses/Apache-2.0\n    :alt: Apache License\n\n..\n    Anything below this line is used when viewing README.rst and will be replaced\n    when included in index.rst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fpato-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiamondlightsource%2Fpato-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiamondlightsource%2Fpato-backend/lists"}