{"id":15866346,"url":"https://github.com/squidmin/gemini-api-backend","last_synced_at":"2025-04-01T21:20:00.563Z","repository":{"id":236125311,"uuid":"775084305","full_name":"squidmin/gemini-api-backend","owner":"squidmin","description":"Backend service for experimenting with the Gemini API","archived":false,"fork":false,"pushed_at":"2024-04-26T00:00:14.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:54:00.715Z","etag":null,"topics":["fastapi","gemini","gemini-api","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squidmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-20T18:22:15.000Z","updated_at":"2024-04-26T00:00:17.000Z","dependencies_parsed_at":"2024-04-25T19:26:44.021Z","dependency_job_id":"9a1c18f8-b5a8-48ec-8275-70e0aea9dcca","html_url":"https://github.com/squidmin/gemini-api-backend","commit_stats":null,"previous_names":["squidmin/gemini-api-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fgemini-api-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fgemini-api-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fgemini-api-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fgemini-api-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squidmin","download_url":"https://codeload.github.com/squidmin/gemini-api-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709907,"owners_count":20821298,"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":["fastapi","gemini","gemini-api","python","python3"],"created_at":"2024-10-05T23:20:25.941Z","updated_at":"2025-04-01T21:20:00.541Z","avatar_url":"https://github.com/squidmin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gemini-api-backend\n\nThis is a backend service for experimenting with the Gemini API.\n\n## Installation\n\n### 1. Install Python\n\nYou can install Python using `pyenv` on macOS or Linux. On Windows, you can use `pyenv-win`.\n\n### 2. Install dependencies\n\nYou can install the dependencies using `pip` and the `requirements.txt` file.\n\n```shell\npip3 install -r requirements.txt\n```\n\n### 3. Run the application\n\nYou can run the application using `uvicorn`.\n\n```shell\nuvicorn main:app --reload\n```\n\nThe `--reload` flag enables hot reloading so the server will automatically reload when you make changes to your code.\nYou should see output indicating that the server is running, typically on `http://127.0.0.1:8000`.\n\n### Building a Docker image\n\nYou can build the Docker image using the `Dockerfile` in the root directory.\n\n```shell\ndocker build -t gemini-api-backend .\n```\n\n### Running a container locally\n\nUse the `docker run` command and pass the `gemini-api-backend` service account key as an environment variable:\n\n```shell\ndocker run -p 8000:8000 \\\n  -v /Users/admin/.config/gcloud/sa-private-key.json:/secrets/sa-private-key.json \\\n  -e GOOGLE_APPLICATION_CREDENTIALS=/secrets/sa-private-key.json \\\n  gemini-api-backend\n```\n\n---\n\n## Usage\n\nYou can use the backend to interact with Gemini models, execute code, and perform other tasks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fgemini-api-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquidmin%2Fgemini-api-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fgemini-api-backend/lists"}