Python Typecho Client (XMLRPC)
Project description
PyTypecho
Python Typecho Client (XMLRPC).
Introduction
Requirements
- Python >= 3.7
Install
pip install pytypecho
Usage
from pytypecho import Typecho
te = Typecho('http://127.0.0.1/index.php/action/xmlrpc', username='admin', password='admin')
print(te.get_posts())
or
import asyncio
from pytypecho import AsyncTypecho
async def main():
te = AsyncTypecho('http://127.0.0.1/index.php/action/xmlrpc', username='admin', password='admin', semaphore=4)
print(await te.get_posts())
asyncio.run(main())
Documents
Status
Functions
- Post
- get Post/Posts
- new Post (Not fully tested!)
- edit Post
- delete Post
- Page
- get Page/Pages
- new Page (Not fully tested!)
- edit Page
- delete Page
- Category
- get Categories
- new Category (Not work on typecho >= 1.2)
- delete Category
- Tag
- get Tags
- Attachment
- get attachment/attachments
- new attachment
- Comment
- get comment/comments
- new comment
- edit comment
- delete comment
Others
- Tests
- Documentations
License
PyTypecho is released under the MIT License. See LICENSE for more information.
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
pytypecho-2.1.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file pytypecho-2.1.0.tar.gz
.
File metadata
- Download URL: pytypecho-2.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207ec5e32d807ed47f86ff5a2d3dfb6fcee6d740c3005022e18534a99d1e9354 |
|
MD5 | 6c040d57610044546c77265a8186e463 |
|
BLAKE2b-256 | e60a9b318c8dbc8c66934abf1cfa058e86df6c65496b959ca511e8ff51b185e6 |
File details
Details for the file pytypecho-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: pytypecho-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104a4e2de7f3acc74239ae3958a90763b9fa9bbcd73ab587f3f4a5b112e9ac09 |
|
MD5 | b6ac80e054c8747d928d1352767826f4 |
|
BLAKE2b-256 | 590a6015d4fce15d0a50580b872e6306cf104107160ac4a653e471c051037084 |