{"id":17930205,"url":"https://github.com/samwillis/py-pwinty","last_synced_at":"2025-06-28T02:05:17.137Z","repository":{"id":13142245,"uuid":"15824588","full_name":"samwillis/py-pwinty","owner":"samwillis","description":"Python client for the Pwinty photo printing API","archived":false,"fork":false,"pushed_at":"2019-12-04T18:42:25.000Z","size":152,"stargazers_count":6,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-27T22:53:04.073Z","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":"CraigMason/DoctrineSqlServerExtensions","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samwillis.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}},"created_at":"2014-01-11T15:20:51.000Z","updated_at":"2018-03-07T07:30:41.000Z","dependencies_parsed_at":"2022-09-04T22:23:07.294Z","dependency_job_id":null,"html_url":"https://github.com/samwillis/py-pwinty","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/samwillis/py-pwinty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwillis%2Fpy-pwinty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwillis%2Fpy-pwinty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwillis%2Fpy-pwinty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwillis%2Fpy-pwinty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samwillis","download_url":"https://codeload.github.com/samwillis/py-pwinty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwillis%2Fpy-pwinty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262362064,"owners_count":23299122,"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":[],"created_at":"2024-10-28T21:12:25.662Z","updated_at":"2025-06-28T02:05:17.116Z","avatar_url":"https://github.com/samwillis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"py-pwinty\n=========\n\nThis library implements a Python client for the [Pwinty photo printing API](http://www.pwinty.com/Api). to make things a little more \"Pythonic\" all attributes are avalible in CamelCase as well as their original under_score notation.\n\n\nRequirements\n------------\n\n* This has only been tested on Python 2.7, it will probably work on 2.6+. It does not currently support Python 3.\n\n* The [requests library](http://docs.python-requests.org/)\n\n\nInstalling\n----------\nIt can be installed using PIP from PyPi:\n\n    \u003e pip install pwinty\n\n\nPlacing an order\n----------------\n\nImport pwinty and set your API Key and Merchent ID:\n\n    import pwinty\n    pwinty.apikey = \"xxxxxxx\"\n    pwinty.merchantid = \"xxxxxxx\"\n\nCreate an Order:\n\n    order = pwinty.Order.create(\n        recipient_name =         \t'Mr Jones',\n        address_1 =              \t'The Hollies',\n        address_2 =              \t'',\n        address_town_or_city =   \t'Cardiff',\n        state_or_county =        \t'Glamorgan',\n        postal_or_zip_code =     \t'CF11 1AX',\n        destination_country_code =\t'GB',\n        country_code =           \t'GB',\n        qualityLevel =           \t'Pro'\n    )\n\nAdd photos to the order:\n\n\tphoto = order.photos.create(\n\t    type =   \t'8x12',\n\t    url =    \t'http://www.testserver.com/aphoto.jpg',\n\t    md5Hash =\t'79054025255fb1a26e4bc422aef54eb4',\n\t    copies = \t'2',\n\t    sizing = \t'Crop'\n\t)\n\nCheck the order is valid:\n\n\torder_status = order.get_submission_status()\n\tif not order_status.is_valid:\n\t\tprint \"Invalid Order\"\n\nSubmit the order:\n\n    order.submit()\n\n\nRetrieving a previous order\n---------------------------\n\nYou can retrieve a previous order and check its status like so:\n\n    order = pwinty.Order.get(8765)\n    if order.status == 'Complete':\n    \tprint \"Order has dispatched\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwillis%2Fpy-pwinty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamwillis%2Fpy-pwinty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwillis%2Fpy-pwinty/lists"}