{"id":21230454,"url":"https://github.com/imaurer/pypi-gpt","last_synced_at":"2025-04-14T00:20:50.407Z","repository":{"id":211951665,"uuid":"730346146","full_name":"imaurer/pypi-gpt","owner":"imaurer","description":"FastAPI Custom GPT demo","archived":false,"fork":false,"pushed_at":"2024-01-22T18:51:49.000Z","size":2956,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T13:00:34.001Z","etag":null,"topics":["custom-gpt","custom-gpts","fastapi","pypi-packages"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imaurer.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}},"created_at":"2023-12-11T18:12:07.000Z","updated_at":"2025-02-26T06:18:01.000Z","dependencies_parsed_at":"2024-01-21T22:58:57.722Z","dependency_job_id":"976a6f34-7e36-4139-be03-1caf1771999b","html_url":"https://github.com/imaurer/pypi-gpt","commit_stats":null,"previous_names":["imaurer/clepy","imaurer/pypi-gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaurer%2Fpypi-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaurer%2Fpypi-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaurer%2Fpypi-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaurer%2Fpypi-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imaurer","download_url":"https://codeload.github.com/imaurer/pypi-gpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799999,"owners_count":21163404,"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":["custom-gpt","custom-gpts","fastapi","pypi-packages"],"created_at":"2024-11-20T23:38:01.256Z","updated_at":"2025-04-14T00:20:50.375Z","avatar_url":"https://github.com/imaurer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyPI GPT\n\nThis is an open-source demonstration (MIT License) of building actions for Custom GPTs. It is\nbuilt with FastAPI, SQLModel and Pydantic.\n\nThis project is NOT associated with [Python Software Foundation](https://www.python.org/psf-landing/)\nor the [Python Package Index (PyPI)](https://pypi.org/).\n\nThe data used was downloaded from the [pypi-data/pypi-json-data](https://github.com/pypi-data/pypi-json-data)\nrepository.\n\n## Getting Started\n\n### Setup Environment\n\nThis project was built using Python 3.11 and the Makefile scripts assume a virtual environment\ncan be found under the relative path `./env` from the root of the project.\n\nI have a Makefile for the major steps, below is a description of those steps.\n\n#### Create Environment and Install Dependencies\n\n```bash\n    $ python3.11 -m venv env\n    $ make install\n```\n\n#### Download, Unzip and Index Database\n\nDownloads data from the  [pypi-data/pypi-json-data](https://github.com/pypi-data/pypi-json-data) project.\nUnzips and indexes the file.\n\n```bash\n    $ make download_db\n```\n\n#### Test Code\n\n```bash\n    $ make test\n    $ make cov\n```\n\n#### Run API\n\nYou need to run this on a server or service that supports HTTPS. I use ngrok and nginx locally.\n\n```bash\n  $ export PYPI_GPT_SERVER_HOSTNAME=(YOUR HOST NAME HERE!)\n  $ make api\n```\n\n### Screenshots\n\n\n#### Configure Custom GPT\n\n\u003cimg src=\"images/configure-gpt.png\" width=\"400\"/\u003e\n\n\n#### OpenAPI Spec\n\n\u003cimg src=\"images/open-api-spec.png\" width=\"400\"/\u003e\n\n\n#### Import Actions\n\n\u003cimg src=\"images/configure-action.png\" width=\"400\"/\u003e\n\n\n#### Chat Calls Server\n\n\u003cimg src=\"images/chat-call-server.png\" width=\"400\"/\u003e\n\n\n#### OpenAPI Response\n\n\u003cimg src=\"images/open-api-response.png\" width=\"400\"/\u003e\n\n\n#### Chat Formats Result\n\n\u003cimg src=\"images/chat-gpt-screenshot.png\" width=\"400\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaurer%2Fpypi-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimaurer%2Fpypi-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaurer%2Fpypi-gpt/lists"}