{"id":17143935,"url":"https://github.com/adamlwgriffiths/woob","last_synced_at":"2025-07-20T09:41:44.488Z","repository":{"id":142682818,"uuid":"568057883","full_name":"adamlwgriffiths/woob","owner":"adamlwgriffiths","description":"Pythonic Woo Commerce API wrapper","archived":false,"fork":false,"pushed_at":"2022-11-19T10:15:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T15:35:03.262Z","etag":null,"topics":["python","woocommerce","woocommerce-api","wrapper","wrapper-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamlwgriffiths.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":"2022-11-19T10:14:29.000Z","updated_at":"2022-11-19T10:15:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f3d3be8-580c-4a57-9976-432d59ad1121","html_url":"https://github.com/adamlwgriffiths/woob","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlwgriffiths%2Fwoob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlwgriffiths%2Fwoob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlwgriffiths%2Fwoob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlwgriffiths%2Fwoob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlwgriffiths","download_url":"https://codeload.github.com/adamlwgriffiths/woob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245249229,"owners_count":20584497,"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":["python","woocommerce","woocommerce-api","wrapper","wrapper-api"],"created_at":"2024-10-14T20:42:43.093Z","updated_at":"2025-03-24T10:17:12.966Z","avatar_url":"https://github.com/adamlwgriffiths.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Woob\n\nPythonic WooCommerce API wrapper.\n\n## Usage\n\n```\nfrom woob import Woo\nfrom datetime import datetime, timedelta\n\n# either pass in your woocommerce credentials\nwoo = Woo(\n    url=url,\n    consumer_key=consumer_key,\n    consumer_secret=consumer_secret,\n)\n# or pass an existing api connection directly\n# woo = Woo(api=existing_woo_api)\n\n# collections support iteration\nfor order in woo.orders:\n    print(order)\n    for refund in order.refunds:\n        print(refund)\n\nfor customer in woo.customers:\n    print(customer)\n\nfor product in woo.products:\n    print(product)\n\n# iterate taxes\nfor tax_rate in woo.taxes:\n    print(tax_rate)\n\n\n\n# filter objects using woo api filters\nend_date = datetime.now()\nstart_date = end_date - timedelta(days=7)\n\nlast_7_days = woo.orders.filter_by(\n    modified_after=start_date.isoformat(),\n    modified_before=end_date.isoformat()\n)\n\n\n# collections support access by id\n# in this case, an order\norder_id = '123'\norder = woo.orders[order_id]\n\n# all objects support serialisation\ndata = order.serialise()\n\n# all collections support serialisation\norders = woo.orders.serialise()\n\n\n\n# convenience functions / wrappers around filter_by\n\n# get orders by customer\ncustomer_id = '123'\nfor order in woo.orders.for_customer(customer_id):\n    print(order)\n\n# orders after a certain date\nfor order in woo.orders.modified_after(start_date):\n    print(order)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlwgriffiths%2Fwoob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlwgriffiths%2Fwoob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlwgriffiths%2Fwoob/lists"}