{"id":17880532,"url":"https://github.com/igorbenav/email-assistant-api","last_synced_at":"2025-09-19T04:32:01.379Z","repository":{"id":245667161,"uuid":"818909092","full_name":"igorbenav/email-assistant-api","owner":"igorbenav","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-23T23:14:51.000Z","size":12,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T22:07:55.691Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igorbenav.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-06-23T08:18:53.000Z","updated_at":"2025-08-25T08:51:32.000Z","dependencies_parsed_at":"2024-06-23T09:32:27.464Z","dependency_job_id":"7cc47bff-c798-4e94-8172-097d55658b7a","html_url":"https://github.com/igorbenav/email-assistant-api","commit_stats":null,"previous_names":["igorbenav/email-assistant-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igorbenav/email-assistant-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Femail-assistant-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Femail-assistant-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Femail-assistant-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Femail-assistant-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorbenav","download_url":"https://codeload.github.com/igorbenav/email-assistant-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Femail-assistant-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275881571,"owners_count":25545398,"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-09-19T02:00:09.700Z","response_time":108,"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":[],"created_at":"2024-10-28T12:18:52.874Z","updated_at":"2025-09-19T04:32:01.120Z","avatar_url":"https://github.com/igorbenav.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LLM Powered API with FastAPI and FastCRUD\n\nThis project demonstrates how to create a personalized email writing assistant using FastAPI, OpenAI's API, and FastCRUD.\nFor a full step-by-step tutorial, head to the [medium post](https://medium.com/@igorbenav/creating-llm-powered-apis-with-fastapi-in-2024-aecb02e40b8f).\n\n## Prerequisites\n\n- **Python 3.9+**: Ensure you have Python 3.9 or a newer version installed.\n- **Poetry**: A dependency manager for Python. Install it with `pip install poetry`.\n- **OpenAI API Key**: Sign up and get an API key from OpenAI's website.\n- **Access to a Terminal (macOS or Linux)**: Use the terminal for setting up the project and managing dependencies.\n\n**Tip for Windows Users**: Use Windows Subsystem for Linux (WSL) to follow along with this tutorial.\n\n## Project Setup\n\n1. **Create a Project Folder**:\n    ```bash\n    mkdir email-assistant-api\n    cd email-assistant-api\n    ```\n\n2. **Initialize a Poetry Project**:\n    ```bash\n    poetry init\n    ```\n\n3. **Add Dependencies**:\n    ```bash\n    poetry add fastapi fastcrud sqlmodel openai aiosqlite greenlet python-jose bcrypt\n    ```\n\n4. **Set Up Environment Variables**:\n    Create a `.env` file in the `app` directory with the following content:\n    ```plaintext\n    OPENAI_API_KEY=\"your_openai_api_key\"\n    SECRET_KEY=\"your_secret_key\"\n    ```\n\n## Project Structure\n\n```\nemail_assistant_api/\n│\n├── app/\n│   ├── __init__.py\n│   ├── main.py        # The main application file\n│   ├── routes.py      # Contains API route definitions and endpoint logic\n│   ├── database.py    # Database setup and session management\n│   ├── models.py      # SQLModel models for the application\n│   ├── crud.py        # CRUD operation implementations using FastCRUD\n│   ├── schemas.py     # Schemas for request and response models\n│   └── .env           # Environment variables\n│\n├── pyproject.toml     # Project configuration and dependencies\n├── README.md          # Provides an overview and documentation\n└── .gitignore         # Files to be ignored by version control\n```\n\n## Running the Application\n\nTo start the application, run:\n\n```bash\npoetry run uvicorn app.main:app --reload\n```\n\nOpen a browser and navigate to `127.0.0.1:8000/docs` to access the API documentation.\n\n## Connect with Me\n\nIf you have any questions, want to discuss tech-related topics, or share your feedback, feel free to reach out to me on social media:\n- **GitHub**: [igorbenav](https://github.com/igorbenav)\n- **Twitter**: [igorbenav](https://twitter.com/igorbenav)\n- **LinkedIn**: [Igor](https://linkedin.com/in/igor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbenav%2Femail-assistant-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorbenav%2Femail-assistant-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbenav%2Femail-assistant-api/lists"}