Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.14 KB

index.rst

File metadata and controls

60 lines (38 loc) · 1.14 KB

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

from patchwork import Patchwork

# Create Patchwork object
pw = Patchwork('https://patchwork.kernel.org')

# Create Patchwork object with access token
pw = Patchwork('https://patchwork.kernel.org', 'access_token')

Examples

from patchwork import Patchwork

pw = Patchwork('https://patchwork.kernel.org')

# Get projects
project = pw.get_project(395)

# Get Series
series = pw.get_series(565705)
.. toctree::
   :maxdepth: 1
   :caption: API Reference

   classes

.. toctree::
   :maxdepth: 1
   :caption: TODO

   TODO