{"id":21653827,"url":"https://github.com/aadewunmi/url-shortener-fastapi-python","last_synced_at":"2026-02-27T14:42:05.415Z","repository":{"id":109354203,"uuid":"582356690","full_name":"AAdewunmi/URL-Shortener-FastAPI-Python","owner":"AAdewunmi","description":"URL Shortener With FastAPI and Python | Tech Stack: Python 3, FastAPI, SQLite, SQLAlchemy, Uvicorn","archived":false,"fork":false,"pushed_at":"2023-01-03T16:07:54.000Z","size":82,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T06:12:40.538Z","etag":null,"topics":["fastapi","fastapi-crud","fastapi-sqlalchemy","python","python3","sqlalchemy","sqlalchemy-orm-queries","sqlalchemy-python","sqlite-database","swagger-ui","uvicorn","uvicorn-gunicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AAdewunmi.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}},"created_at":"2022-12-26T15:08:31.000Z","updated_at":"2023-12-21T23:36:26.000Z","dependencies_parsed_at":"2023-04-18T05:04:26.002Z","dependency_job_id":null,"html_url":"https://github.com/AAdewunmi/URL-Shortener-FastAPI-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AAdewunmi/URL-Shortener-FastAPI-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FURL-Shortener-FastAPI-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FURL-Shortener-FastAPI-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FURL-Shortener-FastAPI-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FURL-Shortener-FastAPI-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AAdewunmi","download_url":"https://codeload.github.com/AAdewunmi/URL-Shortener-FastAPI-Python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FURL-Shortener-FastAPI-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29900053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:30:36.354Z","status":"ssl_error","status_checked_at":"2026-02-27T14:30:01.989Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","fastapi-crud","fastapi-sqlalchemy","python","python3","sqlalchemy","sqlalchemy-orm-queries","sqlalchemy-python","sqlite-database","swagger-ui","uvicorn","uvicorn-gunicorn"],"created_at":"2024-11-25T08:20:56.647Z","updated_at":"2026-02-27T14:42:05.388Z","avatar_url":"https://github.com/AAdewunmi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Title:\n\nURL Shortener With FastAPI and Python\n\n\n## 1. What is the project?\n\nIn this tutorial, we have built a fully functional FastAPI-driven Python web app that creates shortened URLs that forward to target URLs. URLs can be extremely long and not user-friendly. This is where a URL shortener can come in handy. A URL shortener reduces the number of characters in a URL, making it easier to read, remember, and share.\n\n\n## 2. Tech Stack:\n\n- Swagger UI\n- Python 3\n- FastAPI\n- SQLite\n- SQLAlchemy\n- Uvicorn server\n\n## 3. Project Dependencies:\n\n - Installation(s)\n```\n(venv) $ python -m pip install fastapi==0.75.0 uvicorn==0.17.6\n(venv) $ python -m pip install sqlalchemy==1.4.32\n(venv) $ python -m pip install python-dotenv==0.19.2\n(venv) $ python -m pip install validators==0.18.2\n```\n\n- .env file\n\n```\nENV_NAME=\"XXXXXXXX\"\nBASE_URL=\"http://127.0.0.1:XXXX\"\nDB_URL=\"sqlite:///./XXXXXXXXXX.db\"\n```\n\n\n## 4. Installing:\n\ni. Clone the git repo\n\n```\nhttps://github.com/AAdewunmi/URL-Shortener-FastAPI-Python.git\n```\n\nii. Open project folder\n\niii. Explore\n\n😎\n\n\n## 5. How To Use:\n\ni. Open project in preferred IDE. I'm using PyCharm.\n\nii. Run the live server using uvicorn.\n\n```commandline\n(venv) $ uvicorn shortener_app.main:app --reload\n```\n\n- Create SQLite database\n\n\u003e When the server restarted, sqlalchemy automatically created your database in the location that you defined in your DB_URL environment variable. If you used sqlite:///./shortener.db as the value of DB_URL, then there should be a file named shortener.db in the root directory of your project now. That’s your SQLite database!\n\niii. Open \"http://127.0.0.1:8000/docs\" in any web browser\n\n\n## 6. Demo:\n\n![This is an image](screenshot.png)\n\n\n## 7. Contributing:\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\n## 8. Original Creator:\n\nAuthor: Philipp Acsany\n\nURL: https://realpython.com/build-a-python-url-shortener-with-fastapi/#demo-your-python-url-shortener\n\nDate: 18 May, 2022\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faadewunmi%2Furl-shortener-fastapi-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faadewunmi%2Furl-shortener-fastapi-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faadewunmi%2Furl-shortener-fastapi-python/lists"}