PyPatchwork is a Python library to access the Patchwork REST API.
This package can be installed from Python Package Index(PyPi).
$ pip install PyPatchworkfrompatchworkimportPatchwork# Create patchwork objectpw=Patchwork('https://patchwork.kernel.org')
# Create patchwork object with access tokenpw=Patchwork('https://patchwork.kernel.org', 'your_access_token')frompatchworkimportPatchworkpw=Patchwork('https://patchwork.kernel.org')
# Search projectprojects=pw.get_all_projects()
forprojectinprojects:
ifproject.name=="Bluetooth":
break# Get Projectproject=pw.get_project(395)
# Get Seriesseries=pw.get_series(565705)See Patchwork Classes for the details of class
- Only support the basic GET method
- Need to improve the Pagination such as slice and get page
- Need to support query parameters
- Need to support more methods like PUT, and PATCH
- more to come