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.2.tar.gz
(27.4 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.1.2.tar.gz.
File metadata
- Download URL: pypatchwork-0.1.2.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21924c513a7e9ea248450c86d518a91d6ec93d93a70c781693d08a6e22db65d8
|
|
| MD5 |
efde30604368be781b0600f07fbe8c37
|
|
| BLAKE2b-256 |
431e815d426c68961b798795883aed2c798ca2181e1b626804774d94fd1cfee2
|
File details
Details for the file pypatchwork-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pypatchwork-0.1.2-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b7ff214476bcee84eace8e99fa55309c13a4c985bd8b65708f6b588430bf82
|
|
| MD5 |
c2e999c0f1aa75212902b75df00ddbb0
|
|
| BLAKE2b-256 |
6e7abd67bd4f7efa77d499fe4f20225c167fecd22db56cede502de43b2ed8ebd
|