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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc14caca4817cb9e0f9ee768c5866186df1b4392124c5769cdf11a6b34c98a45
|
|
| MD5 |
33ee8c3f8587d6744fdfe39d012234a4
|
|
| BLAKE2b-256 |
b1be43605b686bb146e5c669d3ac609b9ef4485f79f6594d408586a4002e97ed
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571cf6fb5a372d9190799af4ab15d34f8edec4208ab3ecb06fa537cdae6aa45a
|
|
| MD5 |
b2c3c8ec15762ea50ee4d36841826979
|
|
| BLAKE2b-256 |
ff86ecddb3ed2f42c21ad567536b8a455638532b9c9ed5cf279c080d1df56467
|