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.1.1.tar.gz
(27.2 kB
view hashes)
Built Distribution
Close
Hashes for PyPatchwork-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fafecb425f3c6610b0603090dd8377cf1fb2cea23f6b8cfc0ab9b515a0abca |
|
MD5 | 32e0bdba10e9fb3505706ee10610c2c9 |
|
BLAKE2b-256 | c4f25a28053a787b3886cc1fed01c9242acfec36b86dba729eadfc17344a0100 |