{"id":20755977,"url":"https://github.com/josewebdev2000/py-pic-box","last_synced_at":"2026-05-06T19:05:38.738Z","repository":{"id":229256111,"uuid":"776247163","full_name":"josewebdev2000/Py-Pic-Box","owner":"josewebdev2000","description":"Simple API that receives the HTML Base 64 String for an image and returns a URL for that image in the server","archived":false,"fork":false,"pushed_at":"2024-03-28T03:09:20.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T15:52:24.326Z","etag":null,"topics":["base64","flask","image-provider","image-upload","pillow","python","vercel","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://py-pic-box.vercel.app/","language":"PHP","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/josewebdev2000.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-23T01:41:27.000Z","updated_at":"2024-03-28T03:09:23.000Z","dependencies_parsed_at":"2024-03-24T23:21:30.500Z","dependency_job_id":"90df563a-a320-452c-8b7a-b93202d9145d","html_url":"https://github.com/josewebdev2000/Py-Pic-Box","commit_stats":null,"previous_names":["josewebdev2000/py-pic-box"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/josewebdev2000/Py-Pic-Box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josewebdev2000%2FPy-Pic-Box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josewebdev2000%2FPy-Pic-Box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josewebdev2000%2FPy-Pic-Box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josewebdev2000%2FPy-Pic-Box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josewebdev2000","download_url":"https://codeload.github.com/josewebdev2000/Py-Pic-Box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josewebdev2000%2FPy-Pic-Box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261700832,"owners_count":23196504,"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":["base64","flask","image-provider","image-upload","pillow","python","vercel","vercel-deployment"],"created_at":"2024-11-17T09:28:19.847Z","updated_at":"2026-05-06T19:05:38.637Z","avatar_url":"https://github.com/josewebdev2000.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Py Pic Box\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"photo.png\" alt=\"Py Pic Icon\" width=\"700\"\u003e\n\u003c/div\u003e\n\n## Overview\n\n\u003cdiv\u003e\n    \u003cp\u003eThis project is my personal Web API to upload images to an online web server.\u003c/p\u003e\n    \u003ch4\u003eWhy is this required?\u003c/h4\u003e\n    \u003cp\u003eImagine you are working on a programming project that requires you to share images.\u003c/p\u003e\n    \u003cp\u003e\u003cb\u003eHow will you share those images to people that use other computers?\u003c/b\u003e\u003c/p\u003e\n    \u003cp\u003e\u003cb\u003eWhere will you host those images and access them through code?\u003c/b\u003e\u003c/p\u003e\n    \u003cp\u003eWell, I have answered those questions for myself by building this project.\u003c/p\u003e\n    \u003col\u003e\n        \u003cli\u003eI will share images to people of other computer by uploading those images online and sharing the url of the image\u003c/li\u003e\n        \u003cli\u003eI will host them in my own web server that has a web service that gives me back the url for the images I uploaded\u003c/li\u003e\n    \u003c/ol\u003e\n\u003c/div\u003e\n\n## Mechanism\n\u003cdiv\u003e\n    \u003cp\u003eMy Web API has three routes:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003e/upload\u003c/b\u003e: Route used to upload images to the server (POST Request Only)\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003e/delete\u003c/b\u003e: Route used to delete images to the server (POST Request Only)\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003e/pics: Route used to show images stored in the web server (GET Request Only)\u003c/b\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eMy Web API takes a JSON string with the following fields for the \u003cb\u003e/upload\u003c/b\u003e route:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003ekey\u003c/b\u003e: \u003cb\u003eAPI KEY\u003c/b\u003e required to use the API\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eimgbase64\u003c/b\u003e: Base 64 Code that contains the data that describes the image\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003ename\u003c/b\u003e: Name the user wants for this image to have\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eThe \u003cb\u003eimgbase64\u003c/b\u003e field expects the HTML Base 64 encoded version for image data that follows the following format: \u003c/p\u003e\n    \u003cp\u003e\u003ccode\u003edata:[mediatype];base64,\u003c/code\u003e\u003c/p\u003e\n    \u003cp\u003eExample:\u003c/p\u003e\n    \u003cp\u003e\u003ccode\u003edata:image/png;base64,{base64 pure code starts from here on}\u003c/code\u003e\u003c/p\u003e\n    \u003cp\u003eA successful response for the \u003cb\u003e/upload\u003c/b\u003e route will contain this following JSON field:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003eimg_url\u003c/b\u003e: URL to the image the user just uploaded through Base 64 Code\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eMy Web API takes a JSON string with the following fields for the \u003cb\u003e/delete\u003c/b\u003e route:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003ekey\u003c/b\u003e: \u003cb\u003eAPI KEY\u003c/b\u003e required to used the API\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eimgurl:\u003c/b\u003e URL for the image hosted in the web server that is to be deleted\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eA successful response for the \u003cb\u003e/delete\u003c/b\u003e route will contain this following JSON field:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003emessage\u003c/b\u003e: A confirmation that contains the old URL of the deleted image which leads to a 404 response\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eAn erroneous response for either the \u003cb\u003e/upload\u003c/b\u003e route the \u003cb\u003e/delete\u003c/b\u003e route will contain the following JSON field:\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003eerror\u003c/b\u003e: Description of the error raised\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cp\u003eTo trigger a successful response from the \u003cb\u003e/pics\u003c/b\u003e route:\u003c/p\u003e\n    \u003col \u003e\n        \u003cli\u003eTrigger a GET request to \u003ccode\u003ehttps://py-pic-box.vercel.app/pics/{image-filename}\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003eReceive the image\u003c/li\u003e\n    \u003c/ol\u003e\n\u003c/div\u003e\n\n## Skills\n\u003cdiv\u003e\n    \u003cp\u003eThe following technologies were required to compelte this project\u003c/p\u003e\n    \u003cul style=\"list-style-type: square;\"\u003e\n        \u003cli\u003e\u003cb\u003ePython\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eFlask\u003c/b\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\u003c/div\u003e\n\n## Copyright\n\u003cdiv\u003e\n    \u003cblockquote\u003e\n        \u003ca href=\"https://github.com/josewebdev2000\"\u003e\u0026copy; josewebdev2000\u003c/a\u003e 2024\n    \u003c/blockquote\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosewebdev2000%2Fpy-pic-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosewebdev2000%2Fpy-pic-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosewebdev2000%2Fpy-pic-box/lists"}