Skip to main content

Python Typecho Client (XMLRPC)

Project description

PyTypecho

PyTypecho Documentation Status

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

ReadTheDocs

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 hashes)

Uploaded source

Built Distribution

pytypecho-2.1.0-py3-none-any.whl (7.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page