{"id":30336587,"url":"https://github.com/undp-data/dsc-sea-ai-api","last_synced_at":"2025-08-18T05:48:56.109Z","repository":{"id":213587050,"uuid":"679382148","full_name":"UNDP-Data/dsc-sea-ai-api","owner":"UNDP-Data","description":"A web app written in FastAPI that powers AI features for the Sustainable Energy Academy.","archived":false,"fork":false,"pushed_at":"2025-06-26T10:55:06.000Z","size":204170,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-26T11:47:38.350Z","etag":null,"topics":["fastapi","knowledge-graph","openai"],"latest_commit_sha":null,"homepage":"https://sea-ai-api.azurewebsites.net","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UNDP-Data.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,"zenodo":null}},"created_at":"2023-08-16T17:57:14.000Z","updated_at":"2025-06-26T10:55:05.000Z","dependencies_parsed_at":"2025-06-26T11:37:09.200Z","dependency_job_id":"8d25f63f-306e-4fe0-9f6e-98be06688466","html_url":"https://github.com/UNDP-Data/dsc-sea-ai-api","commit_stats":null,"previous_names":["undp-data/dsc-energy-ai-backend","undp-data/dsc-sea-ai-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UNDP-Data/dsc-sea-ai-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdsc-sea-ai-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdsc-sea-ai-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdsc-sea-ai-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdsc-sea-ai-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UNDP-Data","download_url":"https://codeload.github.com/UNDP-Data/dsc-sea-ai-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdsc-sea-ai-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270951278,"owners_count":24674006,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fastapi","knowledge-graph","openai"],"created_at":"2025-08-18T05:48:55.114Z","updated_at":"2025-08-18T05:48:56.066Z","avatar_url":"https://github.com/UNDP-Data.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsc-sea-ai-api\n\n[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/release/python-3120/)\n[![License](https://img.shields.io/github/license/undp-data/dsc-sea-ai-api)](https://github.com/undp-data/dsc-sea-ai-api/blob/main/LICENSE)\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n[![Build and deploy Python app to Azure Web App](https://github.com/UNDP-Data/dsc-sea-ai-api/actions/workflows/azure-webapps-python.yml/badge.svg)](https://github.com/UNDP-Data/dsc-sea-ai-api/actions/workflows/azure-webapps-python.yml)\n\nA Python API to serve data from the knowledge graph for the Sustainable Energy Academy.\n\n\u003e [!WARNING]  \n\u003e The package is currently undergoing a major revamp. Some features may be missing or not working as intended. Feel free to [open an issue](https://github.com/UNDP-Data/dsc-sea-ai-api/issues).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Getting Started\n\nFollow the steps below to run the API locally.\n\n1. Clone the repository and navigate to the project folder.\n2. Create and activate a virtual environment.\n3. Create and populate the `.env` file base on `.env.example`.\n4. Run `make install` to install project dependencies.\n5. To launch the API, run `make run`. The API will be running at http://127.0.0.1:8000.\n\n```bash\ngit clone https://github.com/UNDP-Data/dsc-sea-ai-api\ncd dsc-sea-ai-api\npython -m venv .venv\nsource .venv/bin/activate\nmake install\nmake run\n# INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)\n```\n\n## Deployment\n\nThe project is hooked up to a CI/CD pipeline. Committing to `main` branch will trigger deployment to Azure Web App service. A pull request is required to change the branch.\n\n## Contributing\n\nAll contributions must follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).\nThe codebase is formatted with `black` and `isort`. Use the provided [Makefile](./Makefile) for these\nroutine operations.\n\n1. Clone or fork the repository\n2. Create a new branch (`git checkout -b feature-branch`)\n3. Make your changes\n4. Ensure your code is properly formatted (`make format`)\n5. Commit your changes (`git commit -m 'Add some feature'`)\n6. Push to the branch (`git push origin feature-branch`)\n7. Open a pull request\n\n## License\n\nThis project is licensed under the BSD 3-Clause License. See the [LICENSE](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fdsc-sea-ai-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fundp-data%2Fdsc-sea-ai-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fdsc-sea-ai-api/lists"}