Metadata-Version: 2.1
Name: pywpsrpc
Version: 1.0.0b2
Requires-Python: >=3.5
Summary: Python bindings for the WPS Office RPC
Home-Page: https://github.com/timxx/pywpsrpc
Author: Weitian Leung
Author-Email: weitianleung@gmail.com
License: MIT
Description-Content-Type: text/markdown
Platform: Linux

# pywpsrpc

[![Build Status](https://travis-ci.org/timxx/pywpsrpc.svg?branch=master)](https://travis-ci.org/timxx/pywpsrpc)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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](https://dev.tencent.com/u/zouyingfeng/p/wps/git/tree/master/cpp) with *no changes*:
```
Copyright @ 2012-2019, Kingsoft office,All rights reserved.
```

For full API references, go to [https://open.wps.cn/docs/office](https://open.wps.cn/docs/office)
or [https://docs.microsoft.com/en-us/office/vba/api/overview/](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
