{"id":18223972,"url":"https://github.com/coslynx/openai-request-executor-mvp","last_synced_at":"2026-04-30T20:33:32.123Z","repository":{"id":260865215,"uuid":"882566347","full_name":"coslynx/OpenAI-Request-Executor-MVP","owner":"coslynx","description":"AI-powered tool to execute OpenAI requests and provide responses efficiently... Created at https://coslynx.com","archived":false,"fork":false,"pushed_at":"2024-11-03T06:06:27.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T02:51:59.875Z","etag":null,"topics":["ai-request-executor","code-generation","developer-tools","devops","fastapi","machine-learning","mvp","mvp-development","natural-language-processing","openai-api-wrapper","openai-integration","openai-library","postgresql","python","python-backend","requests","response-formatter","software-development","sqlalchemy","uvicorn"],"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/coslynx.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-11-03T06:02:40.000Z","updated_at":"2024-11-03T06:06:30.000Z","dependencies_parsed_at":"2024-11-03T07:27:00.222Z","dependency_job_id":null,"html_url":"https://github.com/coslynx/OpenAI-Request-Executor-MVP","commit_stats":null,"previous_names":["coslynx/openai-request-executor-mvp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2FOpenAI-Request-Executor-MVP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2FOpenAI-Request-Executor-MVP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2FOpenAI-Request-Executor-MVP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2FOpenAI-Request-Executor-MVP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coslynx","download_url":"https://codeload.github.com/coslynx/OpenAI-Request-Executor-MVP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767250,"owners_count":20992541,"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":["ai-request-executor","code-generation","developer-tools","devops","fastapi","machine-learning","mvp","mvp-development","natural-language-processing","openai-api-wrapper","openai-integration","openai-library","postgresql","python","python-backend","requests","response-formatter","software-development","sqlalchemy","uvicorn"],"created_at":"2024-11-04T01:05:39.017Z","updated_at":"2026-04-30T20:33:32.094Z","avatar_url":"https://github.com/coslynx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv class=\"hero-icon\" align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/ec559a9f6bfd399b82bb44393651661b08aaf7ba/icons/folder-markdown-open.svg\" width=\"100\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e\nOpenAI-Request-Executor-MVP\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eA Python backend service for effortless OpenAI API interactions with natural language requests.\u003c/h4\u003e\n\u003ch4 align=\"center\"\u003eDeveloped with the software and tools below.\u003c/h4\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Framework-FastAPI-blue\" alt=\"Framework-FastAPI\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Backend-Python-red\" alt=\"Backend-Python\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Database-PostgreSQL-blue\" alt=\"Database-PostgreSQL\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/LLMs-OpenAI-black\" alt=\"LLMs-OpenAI\"\u003e\n\u003c/div\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/coslynx/OpenAI-Request-Executor-MVP?style=flat-square\u0026color=5D6D7E\" alt=\"git-last-commit\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/commit-activity/m/coslynx/OpenAI-Request-Executor-MVP?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub commit activity\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/coslynx/OpenAI-Request-Executor-MVP?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub top language\" /\u003e\n\u003c/div\u003e\n\n## 📑 Table of Contents\n- 📍 Overview\n- 📦 Features\n- 📂 Structure\n- 💻 Installation\n- 🏗️ Usage\n- 🌐 Hosting\n- 📄 License\n- 👏 Authors\n\n## 📍 Overview\n\nThis repository contains a Minimum Viable Product (MVP) called \"OpenAI-Request-Executor-MVP.\" It's a Python-based backend service that acts as a user-friendly interface for interacting with OpenAI's APIs.  The service accepts natural language requests, translates them into appropriate OpenAI API calls, executes them, and delivers formatted responses. \n\n## 📦 Features\n\n|    | Feature            | Description                                                                                                        |\n|----|--------------------|--------------------------------------------------------------------------------------------------------------------|\n| ⚙️ | **Architecture**   | The service employs a layered architecture, separating the presentation, business logic, and data access layers for improved maintainability and scalability.             |\n| 📄 | **Documentation**  | The repository includes a README file that provides a detailed overview of the MVP, its dependencies, and usage instructions.|\n| 🔗 | **Dependencies**   | Essential Python packages are used, including FastAPI, Pydantic, uvicorn, psycopg2-binary, SQLAlchemy, requests, PyJWT, and OpenAI for API interaction, authentication, and database operations.|\n| 🧩 | **Modularity**     | The code is organized into modules for efficient development and maintenance, including `models`, `services`, and `utils`.|\n| 🧪 | **Testing**        | The MVP includes unit tests for core modules (`main.py`, `services/openai_service.py`, `models/request.py`) using Pytest, ensuring code quality and functionality.       |\n| ⚡️  | **Performance**    | The backend is optimized for efficient request processing and response retrieval, utilizing asynchronous programming with asyncio and caching for improved speed and responsiveness.|\n| 🔐 | **Security**       | Security measures include secure communication with HTTPS, authentication with JWTs, and data encryption. |\n| 🔀 | **Version Control**| Utilizes Git for version control, allowing for tracking changes and collaborative development.  |\n| 🔌 | **Integrations**   | Seamlessly integrates with OpenAI's API using the `openai` Python library, PostgreSQL database using SQLAlchemy, and leverages the `requests` library for communication. |\n| 📶 | **Scalability**    | The service is designed for scalability, utilizing cloud-based hosting like AWS or GCP, and optimized for handling increasing request volumes.           |\n\n## 📂 Structure\n\n```text\n├── main.py\n├── models\n│   └── request.py\n├── services\n│   └── openai_service.py\n├── utils\n│   └── logger.py\n├── tests\n│   ├── test_main.py\n│   ├── test_openai_service.py\n│   └── test_models.py\n├── startup.sh\n├── commands.json\n└── requirements.txt\n```\n\n## 💻 Installation\n\n### 🔧 Prerequisites\n- Python 3.9+\n- PostgreSQL 14+\n- Docker 20.10+\n\n### 🚀 Setup Instructions\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/coslynx/OpenAI-Request-Executor-MVP.git\n   cd OpenAI-Request-Executor-MVP\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Set up the database:**\n   - Create a database:\n     ```bash\n     createdb openai_executor\n     ```\n   - Connect to the database and create an extension for encryption:\n     ```bash\n     psql -U postgres -d openai_executor -c \"CREATE EXTENSION IF NOT EXISTS pgcrypto\"\n     ```\n\n4. **Configure environment variables:**\n   - Create a `.env` file:\n     ```bash\n     cp .env.example .env\n     ```\n   - Fill in the environment variables with your OpenAI API key, PostgreSQL database connection string, and JWT secret key.\n\n5. **Start the application (using Docker):**\n   ```bash\n   docker-compose up -d\n   ```\n\n## 🏗️ Usage\n\n### 🏃‍♂️ Running the MVP\n\n- The application will be accessible at `http://localhost:8000`.\n- Use a tool like `curl` or `Postman` to send requests to the `/requests/` endpoint:\n\n```bash\ncurl -X POST http://localhost:8000/requests/ \\\n-H \"Content-Type: application/json\" \\\n-d '{\"text\": \"Write a short story about a cat\"}'\n```\n\n- The response will contain a request ID and status:\n\n```json\n{\n  \"request_id\": 1,\n  \"status\": \"completed\"\n}\n```\n\n- To retrieve the generated response, use the `/responses/{request_id}` endpoint:\n\n```bash\ncurl -X GET http://localhost:8000/responses/1\n```\n\n- The response will contain the generated text:\n\n```json\n{\n  \"response\": \"Once upon a time, in a cozy little cottage...\" \n}\n```\n\n## 🌐 Hosting\n\n### 🚀 Deployment Instructions\n\n#### Deploying to Heroku (Example)\n\n1. **Create a Heroku app:**\n   ```bash\n   heroku create openai-request-executor-mvp-production\n   ```\n\n2. **Set up environment variables:**\n   ```bash\n   heroku config:set OPENAI_API_KEY=your_openai_api_key\n   heroku config:set DATABASE_URL=postgresql://your_user:your_password@your_host:your_port/your_database_name\n   heroku config:set JWT_SECRET=your_secret_key\n   ```\n\n3. **Deploy the code:**\n   ```bash\n   git push heroku main\n   ```\n\n4. **Run database migrations (if applicable):**\n   - You'll need to set up database migrations for your PostgreSQL database.\n\n5. **Start the application:**\n   - Heroku will automatically start your application based on the `Procfile`.\n\n## 📄 License \u0026 Attribution\n\n### 📄 License\nThis Minimum Viable Product (MVP) is licensed under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/) license.\n\n### 🤖 AI-Generated MVP\nThis MVP was entirely generated using artificial intelligence through [CosLynx.com](https://coslynx.com).\n\nNo human was directly involved in the coding process of the repository: OpenAI-Request-Executor-MVP\n\n### 📞 Contact\nFor any questions or concerns regarding this AI-generated MVP, please contact CosLynx at:\n- Website: [CosLynx.com](https://coslynx.com)\n- Twitter: [@CosLynxAI](https://twitter.com/CosLynxAI)\n\n\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e🌐 CosLynx.com\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eCreate Your Custom MVP in Minutes With CosLynxAI!\u003c/em\u003e\n\u003c/p\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Developers-Drix10,_Kais_Radwan-red\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Website-CosLynx.com-blue\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Backed_by-Google,_Microsoft_\u0026_Amazon_for_Startups-red\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Finalist-Backdrop_Build_v4,_v6-black\" alt=\"\"\u003e\n\u003c/div\u003e\n```\n\nThis README.md file utilizes the provided Minimum Viable Product (MVP) idea and tech stack information to create a polished and visually appealing document. It incorporates advanced markdown formatting, code blocks, and shield.io badges to enhance readability and aesthetics. \n\nRemember to replace the placeholders like \"your_openai_api_key\" and \"your_database_url\" with your actual values. The provided hosting instructions are an example, and you might need to adjust them based on your chosen hosting platform.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Fopenai-request-executor-mvp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoslynx%2Fopenai-request-executor-mvp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Fopenai-request-executor-mvp/lists"}