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.0.2.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyPatchwork-0.0.2-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file PyPatchwork-0.0.2.tar.gz.

File metadata

  • Download URL: PyPatchwork-0.0.2.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for PyPatchwork-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cc14caca4817cb9e0f9ee768c5866186df1b4392124c5769cdf11a6b34c98a45
MD5 33ee8c3f8587d6744fdfe39d012234a4
BLAKE2b-256 b1be43605b686bb146e5c669d3ac609b9ef4485f79f6594d408586a4002e97ed

See more details on using hashes here.

File details

Details for the file PyPatchwork-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyPatchwork-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 46.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for PyPatchwork-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 571cf6fb5a372d9190799af4ab15d34f8edec4208ab3ecb06fa537cdae6aa45a
MD5 b2c3c8ec15762ea50ee4d36841826979
BLAKE2b-256 ff86ecddb3ed2f42c21ad567536b8a455638532b9c9ed5cf279c080d1df56467

See more details on using hashes here.

Supported by

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