{"id":21710301,"url":"https://github.com/cloudinary-devs/python_product_recommendations","last_synced_at":"2026-02-22T02:35:09.328Z","repository":{"id":109429172,"uuid":"572051317","full_name":"cloudinary-devs/python_product_recommendations","owner":"cloudinary-devs","description":"Implement product recommendations on your e-commerce app using Python and Cloudinary’s AI auto-tagging capabilities.","archived":false,"fork":false,"pushed_at":"2025-02-06T11:21:45.000Z","size":4593,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T10:11:22.483Z","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/cloudinary-devs.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":"2022-11-29T13:01:41.000Z","updated_at":"2025-02-06T11:21:49.000Z","dependencies_parsed_at":"2025-01-25T16:31:28.266Z","dependency_job_id":"a25bff38-8b88-4c5d-8020-1cd5140370b2","html_url":"https://github.com/cloudinary-devs/python_product_recommendations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudinary-devs/python_product_recommendations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudinary-devs%2Fpython_product_recommendations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudinary-devs%2Fpython_product_recommendations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudinary-devs%2Fpython_product_recommendations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudinary-devs%2Fpython_product_recommendations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudinary-devs","download_url":"https://codeload.github.com/cloudinary-devs/python_product_recommendations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudinary-devs%2Fpython_product_recommendations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"online","status_checked_at":"2026-02-22T02:00:08.193Z","response_time":110,"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-11-25T23:14:38.134Z","updated_at":"2026-02-22T02:35:09.294Z","avatar_url":"https://github.com/cloudinary-devs.png","language":"Python","readme":"Cloudinary Product Recommendation App\n======================================================\n\nThis is a Flask-based application that uses Cloudinary's API for image management, tagging, and generating image recommendations based on user-selected content.\n\n## Features\n\n* **Image Upload**: Automatically uploads images from a local directory to Cloudinary, tagging them with AI-powered categorization (AWS Rekognition).\n* **Dynamic Recommendations**: Suggests additional images based on shared tags with user-selected images.\n* **Optimized Image Display**:\n  * Images are transformed dynamically for consistent quality and format.\n  * Delivered via Cloudinary’s CDN for optimal performance.\n\n## How It Works\n\n1. **Image Upload**:\n    * Images in the `Images` directory are uploaded to Cloudinary with auto-tagging enabled.\n    * Images are stored in a `tagged_images` folder with relevant tags.\n2. **Homepage (/)**:\n    * Displays up to 10 uploaded images.\n    * Users can select images to receive recommendations.\n3. **Recommendations Page (/output)**:\n    * Based on selected images, the app analyzes tags and suggests similar images.\n\n## Running the App\n\n### Use It on Glitch\n\nYou can use [this app](https://glitch.com/edit/#!/python-product-recommendations) without any setup!\n\n### Use Your Own Product Environment\n\nHowever, if you want to work off of your own product environment:\n\n* [Sign up](https://cloudinary.com/users/register_free) for a free Cloudinary account.\n* [Register](https://console.cloudinary.com/settings/addons) for the [Google Tagging](https://cloudinary.com/documentation/google_auto_tagging_addon) and [Amazon Rekognition AI Moderation](https://cloudinary.com/documentation/aws_rekognition_ai_moderation_addon) add-ons. \n\n#### Remix on Glitch (optional)\n\n1. **Remix** it on Glitch.\n2. Enter your **API Environment Variable** value (can be found on the [API Keys](https://console.cloudinary.com/settings/api-keys) page of the Cloudinary Console) in the `.env` file of your Glitch directory.\n3. Place images in an `Images` folder at the root of the project.\n\n### Run Locally (Optional)\n\n1. Clone this [GitHub](https://github.com/cloudinary-devs/python_product_recommendations) repository.\n2. Install the required Python packages:\n   ```bash\n   pip install flask cloudinary requests\n   ```\n3. Place images in an `Images` folder at the root of the project.\n4. Run the app.\n\n## Key Files\n\n* `app.py`: Core Flask app handling routing, image uploads, and recommendations.\n* `templates/index.html`: Displays uploaded images for selection.\n* `templates/output.html`: Shows recommended images based on user-selected tags.\n\n## Dependencies\n\nThis app uses the following libraries:\n\n* **Flask**: Python web framework.\n* **[Cloudinary](https://cloudinary.com/)**: For image management and transformations.\n* `urllib3`: HTTP client for accessing Cloudinary lists.\n* `collections`: For counting tag frequencies.\n* `ssl`: For handling secure HTTP requests.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudinary-devs%2Fpython_product_recommendations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudinary-devs%2Fpython_product_recommendations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudinary-devs%2Fpython_product_recommendations/lists"}