Python bindings for the WPS Office RPC
Project description
pywpsrpc
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pywpsrpc-1.0.0b2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eee100a7f4c4ef0ad484e06e5052874ad2d0b021ee6b52a7aced247f61ea665 |
|
MD5 | 9bd382fcb982d444299061307669518c |
|
BLAKE2b-256 | 01a10b4233665cc587f4e25bc7204f5441b02f61fe9c00671aa0bf2aafd86985 |