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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for PyPatchwork-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571cf6fb5a372d9190799af4ab15d34f8edec4208ab3ecb06fa537cdae6aa45a |
|
MD5 | b2c3c8ec15762ea50ee4d36841826979 |
|
BLAKE2b-256 | ff86ecddb3ed2f42c21ad567536b8a455638532b9c9ed5cf279c080d1df56467 |