{"id":31893786,"url":"https://github.com/mlapaglia/prism2lychee","last_synced_at":"2025-10-13T09:23:31.713Z","repository":{"id":303987918,"uuid":"1017351223","full_name":"mlapaglia/Prism2Lychee","owner":"mlapaglia","description":"A script for sending photos from PhotoPrism to Lychee","archived":false,"fork":false,"pushed_at":"2025-07-10T13:57:18.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-12T13:44:57.177Z","etag":null,"topics":["lychee","photoprism","python"],"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/mlapaglia.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,"zenodo":null}},"created_at":"2025-07-10T12:00:53.000Z","updated_at":"2025-07-10T13:57:21.000Z","dependencies_parsed_at":"2025-07-10T20:55:54.709Z","dependency_job_id":null,"html_url":"https://github.com/mlapaglia/Prism2Lychee","commit_stats":null,"previous_names":["mlapaglia/prism2lychee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlapaglia/Prism2Lychee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlapaglia%2FPrism2Lychee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlapaglia%2FPrism2Lychee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlapaglia%2FPrism2Lychee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlapaglia%2FPrism2Lychee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlapaglia","download_url":"https://codeload.github.com/mlapaglia/Prism2Lychee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlapaglia%2FPrism2Lychee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014518,"owners_count":26085535,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["lychee","photoprism","python"],"created_at":"2025-10-13T09:23:29.867Z","updated_at":"2025-10-13T09:23:31.707Z","avatar_url":"https://github.com/mlapaglia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhotoSync - PhotoPrism to Lychee Sync Tool\n\nA clean, modular Python application for syncing photos from PhotoPrism to Lychee galleries.\n\n## Features\n\n- **Easy Configuration**: Simple UI for setting up PhotoPrism and Lychee connections\n- **Date-based Search**: Browse photos by specific dates\n- **Visual Photo Grid**: Responsive thumbnail grid with async loading\n- **Album Management**: Upload photos to specific Lychee albums\n- **Robust Download**: Multiple fallback methods for photo downloading\n- **Clean Architecture**: Modular design for easy maintenance and extension\n\n## Installation\n\n1. Clone or download the project files\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\nRun the application:\n```bash\npython main.py\n```\n\n### Setup Process\n\n1. **Configure Connections**:\n   - Enter your PhotoPrism URL and credentials\n   - Enter your Lychee URL and credentials\n   - Click \"Connect PhotoPrism\" and \"Connect Lychee\"\n\n2. **Browse Photos**:\n   - Select a date using the date picker\n   - Click \"Search Photos\" to load thumbnails\n   - Use \"Previous Day\" / \"Next Day\" for easy navigation\n\n3. **Upload Photos**:\n   - Click \"Select\" on any photo thumbnail\n   - Choose a destination album (or use root album)\n   - Click \"Upload Selected to Lychee\"\n\n4. **Save Configuration**:\n   - Click \"Save Config\" to persist your settings\n\n## File Structure\n\n```\nphoto_sync/\n├── main.py                 # Main application entry point\n├── config.py              # Configuration management\n├── photoprism_client.py   # PhotoPrism API client\n├── lychee_client.py       # Lychee API client\n├── photo_grid.py          # Photo grid widget\n├── requirements.txt       # Python dependencies\n└── README.md             # This file\n```\n\n## Architecture\n\nThe application follows a clean, modular architecture:\n\n- **`main.py`**: Main application class and UI setup\n- **`config.py`**: Configuration management with dataclasses\n- **`photoprism_client.py`**: Handles all PhotoPrism API interactions\n- **`lychee_client.py`**: Manages Lychee API communication\n- **`photo_grid.py`**: Reusable photo grid widget with async thumbnail loading\n\n## Key Improvements\n\n✅ **Separation of Concerns**: Each module has a single responsibility\n✅ **Type Safety**: Uses type hints throughout\n✅ **Error Handling**: Comprehensive error handling with user-friendly messages\n✅ **Async Loading**: Non-blocking thumbnail loading\n✅ **Responsive Design**: Grid adapts to window size\n✅ **Clean APIs**: Well-defined interfaces between components\n✅ **Configuration Management**: Structured config with validation\n\n## Requirements\n\n- Python 3.7+\n- tkinter (usually included with Python)\n- requests\n- Pillow (PIL)\n- requests-toolbelt (optional, for better upload handling)\n\n## Troubleshooting\n\n### Connection Issues\n- Ensure URLs don't have trailing slashes\n- Check that credentials are correct\n- Verify network connectivity to both services\n\n### Upload Issues\n- Ensure you're connected to both services\n- Check that the selected album exists\n- Verify file permissions and sizes\n\n### Photo Loading Issues\n- Some photos may not have thumbnails available\n- Check PhotoPrism's file indexing status\n- Verify file formats are supported\n\n## Future Enhancements\n\n- Batch upload functionality\n- Progress bars for long operations\n- Photo metadata preservation\n- Automatic daily sync scheduling\n- Support for additional photo services","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlapaglia%2Fprism2lychee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlapaglia%2Fprism2lychee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlapaglia%2Fprism2lychee/lists"}