semvec/pypi-packages huggingface dataset:
pylibreoffice 0.1.4
A Python library for handling Microsoft Office documents, built with LibreOfficeKit.
Keywords: office, libreoffice, doc, ppt, xls, docx, xlsx, pptx, pdf, libreofficekit, cython, pybind11

# pylibreoffice

A Python library for handling Microsoft Office documents, built with [LibreOfficeKit](https://docs.libreoffice.org/libreofficekit.html).

## Features

- Convert Microsoft Office documents to PDF

## Installation
### Requirements
- Python 3.10 or higher

- LibreOffice 7.2 or higher
```bash
sudo apt-get install -y libreoffice libreoffice-dev libreoffice-dev-doc
```

- The fonts used in the document must be installed on the system.For example,use Chinese, on Ubuntu, you can install the fonts by running the following command:
```bash
sudo apt-get install -y fonts-wqy-zenhei fonts-wqy-microhei xfonts-intl-chinese ttf-wqy-zenhei ttf-wqy-microhei language-pack-zh-hans language-pack-zh-hant && \
sudo dpkg-reconfigure locales && \
sudo update-locale LANG=zh_CN.UTF-8
```

```bash
pip install pylibreoffice
```

## Example

```python
from pylibreoffice.core import PyOffice


class Example:
    def __init__(self):
        self.office = PyOffice("/usr/lib/libreoffice/program/")

    def doc(self):
        # Convert the doc file to pdf
        print(self.office.save_as("./test.doc", "./test.pdf", "pdf"))

    def xls(self):
        # Convert the xls file to pdf
        print(self.office.save_as("./test.xls", "./test_xls.pdf", "pdf"))


if __name__ == '__main__':
    ex = Example()
    ex.xls()
    ex.doc()
```
isync 0.0.0
.
Requires Python: >=3.9

isync
=====

[![](https://github.com/lycantropos/isync/workflows/CI/badge.svg)](https://github.com/lycantropos/isync/actions/workflows/ci.yml "Github Actions")
[![](https://codecov.io/gh/lycantropos/isync/branch/master/graph/badge.svg)](https://codecov.io/gh/lycantropos/isync "Codecov")
[![](https://img.shields.io/github/license/lycantropos/isync.svg)](https://github.com/lycantropos/isync/blob/master/LICENSE "License")
[![](https://badge.fury.io/py/isync.svg)](https://badge.fury.io/py/isync "PyPI")
[![](https://img.shields.io/crates/v/isync.svg)](https://crates.io/crates/isync "crates.io")

In what follows `python` is an alias for `python3.9` or `pypy3.9`
or any later version (`python3.10`, `pypy3.10` and so on).

Installation
------------

Install the latest `pip` & `setuptools` packages versions
```bash
python -m pip install --upgrade pip setuptools
```

### User

Download and install the latest stable version from `PyPI` repository
```bash
python -m pip install --upgrade isync
```

### Developer

Download the latest version from `GitHub` repository
```bash
git clone https://github.com/lycantropos/isync.git
cd isync
```

Install
```bash
python setup.py install
```

Development
-----------

### Bumping version

#### Preparation

Install
[bump2version](https://github.com/c4urself/bump2version#installation).

#### Pre-release

Choose which version number category to bump following [semver
specification](http://semver.org/).

Test bumping version
```bash
bump2version --dry-run --verbose $CATEGORY
```

where `$CATEGORY` is the target version number category name, possible
values are `patch`/`minor`/`major`.

Bump version
```bash
bump2version --verbose $CATEGORY
```

This will set version to `major.minor.patch-alpha`. 

#### Release

Test bumping version
```bash
bump2version --dry-run --verbose release
```

Bump version
```bash
bump2version --verbose release
```

This will set version to `major.minor.patch`.

### Running tests

Install dependencies
```bash
python -m pip install -e .[tests]
```

Plain
```bash
pytest
```

Inside `Docker` container:
- with `CPython`
  ```bash
  docker-compose --file docker-compose.cpython.yml up
  ```
- with `PyPy`
  ```bash
  docker-compose --file docker-compose.pypy.yml up
  ```

`Bash` script:
- with `CPython`
  ```bash
  ./run-tests.sh
  ```
  or
  ```bash
  ./run-tests.sh cpython
  ```

- with `PyPy`
  ```bash
  ./run-tests.sh pypy
  ```

`PowerShell` script:
- with `CPython`
  ```powershell
  .\run-tests.ps1
  ```
  or
  ```powershell
  .\run-tests.ps1 cpython
  ```
- with `PyPy`
  ```powershell
  .\run-tests.ps1 pypy
  ```
TextInParseX 1.0.8
A text-in parser engine for pdf to markdown processing
Requires Python: >=3.6

为了让用户获得文档解析引擎返回的丰富版面元素，我们开发了一系列的sdk函数，包括目录树、公式、表格、图片、全文markdown等结果的获取函数。一些场景中，部分用户希望通过api进行调用，还有一部分用户希望能够直接可视化文件解析的结果，且可以进行编辑修正，此次我们也将textin.com上面的前端可视化组件进行了开源，请用户批评指正。

目前已实现了java、python两种语言的sdk。具体使用方法请参考各语言的ReadMe.md文件。