Skip to main content

A Python library to access the Patchwork REST API.

Project description

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', 'your_access_token')

Examples

from patchwork import Patchwork

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

# Search project
projects = pw.get_all_projects()
for project in projects:
    if project.name == "Bluetooth":
        break

# Get Project
project = pw.get_project(395)

# Get Series
series = 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyPatchwork-0.1.1.tar.gz (27.2 kB view hashes)

Uploaded Source

Built Distribution

PyPatchwork-0.1.1-py3-none-any.whl (49.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page