{"id":24093287,"url":"https://github.com/umd-lib/fedora2-searcher","last_synced_at":"2026-06-03T23:31:20.699Z","repository":{"id":37498852,"uuid":"491901893","full_name":"umd-lib/fedora2-searcher","owner":"umd-lib","description":"Searcher for Libraries' Fedora2 / AdminTools","archived":false,"fork":false,"pushed_at":"2023-07-27T20:01:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-10T09:26:35.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/umd-lib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-13T13:09:38.000Z","updated_at":"2022-05-13T13:10:05.000Z","dependencies_parsed_at":"2023-01-29T15:45:25.672Z","dependency_job_id":null,"html_url":"https://github.com/umd-lib/fedora2-searcher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Ffedora2-searcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Ffedora2-searcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Ffedora2-searcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umd-lib%2Ffedora2-searcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umd-lib","download_url":"https://codeload.github.com/umd-lib/fedora2-searcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241005399,"owners_count":19892784,"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-01-10T09:27:03.423Z","updated_at":"2026-06-03T23:31:20.674Z","avatar_url":"https://github.com/umd-lib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fedora2-searcher\n\nPython 3 Flask application to search Fedora2 / AdminTools; provides a backend searcher to a Bento Box style search\nwhich expects a REST interface following the Quick Search model.\n\n## Requires\n\n* Python 3\n\n### Running in Docker\n\n```bash\n$ docker build -t fedora2-searcher .\n$ docker run -it --rm -p 5000:5000 --env-file=.env --read-only fedora2-searcher\n```\n\n### Building for Kubernetes\n\n```bash\n$ docker buildx build . --builder=kube -t docker.lib.umd.edu/fedora2-searcher:VERSION --push\n```\n\n### Endpoints\n\nThis will start the webapp listening on the default port 5000 on localhost\n(127.0.0.1), and running in [Flask's debug mode].\n\nRoot endpoint (just returns `{status: ok}` to all requests):\n\u003chttp://localhost:5000/\u003e\n\n/ping endpoint (just returns `{status: ok}` to all requests):\n\u003chttp://localhost:5000/ping\u003e\n\n/search endpoint: `http://localhost:5000/search?q={query}\u0026page={page number?}\u0026per_page={results per page?}`\n\nExample:\n\n```bash\ncurl 'http://localhost:5000/search?q=kermit'\n{\n  \"endpoint\": \"fedora2-search\",\n  \"module_link\": \"https://digital.lib.umd.edu/resultsnew?query=kermit\",\n  \"no_results_link\": \"https://digital.lib.umd.edu/resultsnew\",\n  \"page\": \"0\",\n  \"per_page\": \"3\",\n  \"query\": \"kermit\",\n  \"results\": [\n    {\n      \"description\": \"Young Jim Henson paints the finishing touches on Kermit the Frog, circa 1958.\",\n      \"extra\": {\n        \"collection\": \"University AlbUM\",\n        \"htmlSnippet\": [\n          \"Young Jim Henson puts finishing touches on \u003cb\u003eKermit\u003c/b\u003e the Frog, circa 1958\"\n        ],\n        \"thumbnail\": \"https://fedora.lib.umd.edu/fedora/get/umd:92324/umd-bdef:image/getThumbnail?maxHeight=110\u0026maxWidth=110\"\n      },\n      \"item_format\": \"Image\",\n      \"link\": \"https://digital.lib.umd.edu/resultsnew/id/umd%3A92323\",\n      \"title\": \"Young Jim Henson puts finishing touches on Kermit the Frog, circa 1958\"\n    },\n    {\n      \"description\": \"Jim Henson with Kermit and Sweetums, two of his Muppets, at a University of Maryland football game, November 3, 1979.\",\n      \"extra\": {\n        \"collection\": \"University AlbUM\",\n        \"htmlSnippet\": [\n          \"Jim Henson with \u003cb\u003eKermit\u003c/b\u003e and Sweetums, University of Maryland, November 3, 1979\"\n        ],\n        \"thumbnail\": \"https://fedora.lib.umd.edu/fedora/get/umd:6065/umd-bdef:image/getThumbnail?maxHeight=110\u0026maxWidth=110\"\n      },\n      \"item_format\": \"Image\",\n      \"link\": \"https://digital.lib.umd.edu/resultsnew/id/umd%3A6064\",\n      \"title\": \"Jim Henson with Kermit and Sweetums, University of Maryland, November 3, 1979\"\n    },\n    {\n      \"description\": \"Kermit and Miss Piggy at October 13, 1990 Homecoming Henson Tribute.\",\n      \"extra\": {\n        \"collection\": \"University AlbUM\",\n        \"htmlSnippet\": [\n          \"\u003cb\u003eKermit\u003c/b\u003e and Miss Piggy at 1990 Homecoming Henson Tribute\"\n        ],\n        \"thumbnail\": \"https://fedora.lib.umd.edu/fedora/get/umd:465957/umd-bdef:image/getThumbnail?maxHeight=110\u0026maxWidth=110\"\n      },\n      \"item_format\": \"Image\",\n      \"link\": \"https://digital.lib.umd.edu/resultsnew/id/umd%3A465956\",\n      \"title\": \"Kermit and Miss Piggy at 1990 Homecoming Henson Tribute\"\n    }\n  ],\n  \"total\": 42\n}\n```\n\n[Flask's debug mode]: https://flask.palletsprojects.com/en/2.2.x/cli/?highlight=debug%20mode\n\n## License\n\nSee the [LICENSE](LICENSE.txt) file for license rights and limitations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumd-lib%2Ffedora2-searcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumd-lib%2Ffedora2-searcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumd-lib%2Ffedora2-searcher/lists"}