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.
Metadata
Release files for pytypecho 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytypecho-2.1.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytypecho-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / pytypecho-2.1.0.tar.gz
| Download URL | pytypecho-2.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
207ec5e32d807ed47f86ff5a2d3dfb6fcee6d740c3005022e18534a99d1e9354
|
|
BLAKE2b-256 checksum How to use checksums |
e60a9b318c8dbc8c66934abf1cfa058e86df6c65496b959ca511e8ff51b185e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|
Release files / pytypecho-2.1.0-py3-none-any.whl
| Download URL | pytypecho-2.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
104a4e2de7f3acc74239ae3958a90763b9fa9bbcd73ab587f3f4a5b112e9ac09
|
|
BLAKE2b-256 checksum How to use checksums |
590a6015d4fce15d0a50580b872e6306cf104107160ac4a653e471c051037084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|