Skip to content

Repository files navigation

PyPatchwork

PyPatchwork is a Python library to access the Patchwork REST API.

Installation

This package can be installed from Python Package Index(PyPi).

$ pip install PyPatchwork

Usage

frompatchworkimportPatchwork# Create patchwork objectpw=Patchwork('https://patchwork.kernel.org')
# Create patchwork object with access tokenpw=Patchwork('https://patchwork.kernel.org', 'your_access_token')

Examples

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)

Class references

See Patchwork Classes for the details of class

Note

  • 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

About

Python library to access the Patchwork REST API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages