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.1.tar.gz
(27.2 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.1.tar.gz.
File metadata
- Download URL: PyPatchwork-0.1.1.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f61a853c0767bdfac6d3c96b02a6a2d1ee8973b61e29a79c821eada4195371d
|
|
| MD5 |
d557e402342bd6cfb00137d024ed6070
|
|
| BLAKE2b-256 |
bc196085bb94a54d0e0e2e225811618e54bbe58397d5f8eab599fe8f5a2a884f
|
File details
Details for the file PyPatchwork-0.1.1-py3-none-any.whl.
File metadata
- Download URL: PyPatchwork-0.1.1-py3-none-any.whl
- Upload date:
- Size: 49.4 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 |
72fafecb425f3c6610b0603090dd8377cf1fb2cea23f6b8cfc0ab9b515a0abca
|
|
| MD5 |
32e0bdba10e9fb3505706ee10610c2c9
|
|
| BLAKE2b-256 |
c4f25a28053a787b3886cc1fed01c9242acfec36b86dba729eadfc17344a0100
|