{"id":18276917,"url":"https://github.com/vncsmyrnk/python-cups-example","last_synced_at":"2026-05-09T14:12:12.525Z","repository":{"id":241379575,"uuid":"806703268","full_name":"vncsmyrnk/python-cups-example","owner":"vncsmyrnk","description":"An example of a web server with a cups integration for printing files","archived":false,"fork":false,"pushed_at":"2024-05-27T22:13:59.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T22:44:04.614Z","etag":null,"topics":["cups","flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vncsmyrnk.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":"2024-05-27T18:09:25.000Z","updated_at":"2024-05-27T22:14:02.000Z","dependencies_parsed_at":"2024-05-28T03:48:22.508Z","dependency_job_id":null,"html_url":"https://github.com/vncsmyrnk/python-cups-example","commit_stats":null,"previous_names":["vncsmyrnk/python-cups-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmyrnk%2Fpython-cups-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmyrnk%2Fpython-cups-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmyrnk%2Fpython-cups-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmyrnk%2Fpython-cups-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vncsmyrnk","download_url":"https://codeload.github.com/vncsmyrnk/python-cups-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247979396,"owners_count":21027683,"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":["cups","flask","python"],"created_at":"2024-11-05T12:17:42.050Z","updated_at":"2026-05-09T14:12:07.491Z","avatar_url":"https://github.com/vncsmyrnk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)\n\n# Python Cups Example\n\nThis example uses flask and pycups for creating a web server that prints files.\n\n## Run with Docker\n\n```bash\ndocker build -t example-cups-api\ndocker run --rm -it -p 5000:5000 example-cups-api\n```\n\n## Examples\n\n```bash\ncurl -X GET localhost:5000/printers-info\n```\n\n```json\n{\n   \"hp-casa\":{\n      \"device-uri\":\"ipp://192.168.X.Y/ipp/print\",\n      \"printer-info\":\"hp-casa\",\n      \"printer-is-shared\":true,\n      \"printer-location\":\"\",\n      \"printer-make-and-model\":\"HP LaserJet Professional - IPP Everywhere\",\n      \"printer-state\":3,\n      \"printer-state-message\":\"\",\n      \"printer-state-reasons\":[\n         \"cups-ipp-conformance-failure-report\",\n         \"cups-ipp-missing-send-document\"\n      ],\n      \"printer-type\":4100,\n      \"printer-uri-supported\":\"ipp://localhost/printers/hp-casa\"\n   }\n}\n```\n\n---\n\n```bash\ncurl -X GET 192.168.100.7:5000/print-file\n```\n\nOutput:\n\n```json\n{\n   \"job_id\":2\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvncsmyrnk%2Fpython-cups-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvncsmyrnk%2Fpython-cups-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvncsmyrnk%2Fpython-cups-example/lists"}