Skip to main content

Python bindings for the WPS Office RPC

Project description

pywpsrpc

Build Status License: MIT

Python bindings for WPS Office RPC (for Linux version only).

What is WPS Office RPC?

To make it simple, it means you can use the rpc (api) get working with WPS Office, open, edit and save documents, extend the WPS Office functionals etc.

The C++ SDK headers was taken from wps_cpp with no changes:

Copyright @ 2012-2019, Kingsoft office,All rights reserved.

For full API references, go to https://open.wps.cn/docs/office or https://docs.microsoft.com/en-us/office/vba/api/overview/.

Requirements

  • Python 3.5+
  • Qt5 (the SDK required both for building & running)
  • WPS Office for Linux 11.1.0.9080+
  • sip 5.x or sip 4.x (for building)
  • python-sip (for running, sip 4.x only)
  • qmake (for building)
  • gcc (for building)

How to build

  • For sip 5.x (recommended)

    run sip-build under the project root directory

  • For sip 4.x

    run python configure.py under the project root directory

append --verbose for getting the progress of building

TODO

  • Memory managerment

    It seems that the bingings now cause memory leaks.

  • Python attribute bindings

    Since now the SDK DOES NOT provide the IDispatch way's invoke, we have to find out a way to make it easy calling those get_XXX & put_XXX mehtods

  • Implement the registerEvent

    We need binding the C++ function pointer

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

pywpsrpc-1.0.0b2.tar.gz (1.7 MB view hashes)

Uploaded Source

Built Distribution

pywpsrpc-1.0.0b2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.5+ CPython 3.6+ CPython 3.7+ CPython 3.8+

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page