semvec/pypi-packages huggingface dataset:
pdfino 0.1.0
A thin wrapper around ReportLab designed to simplify PDF document creation.
License: MIT
Requires Python: >=3.8,<4
Keywords: pdf,reportlab

PDFino
======

[![github-tests-badge]][github-tests]
[![github-mypy-badge]][github-mypy]
[![codecov-badge]][codecov]
[![pypi-badge]][pypi]
[![pypi-versions]][pypi]
[![license-badge]](LICENSE)


PDFino (/pəˈdɪfino/) is a Python library for generating PDF files. It is built on top of [ReportLab][reportlab],
a powerful PDF generation library for Python. PDFino is designed to be simple and easy to use.
It provides a high-level API for generating PDF files without having to deal with the low-level details of ReportLab.

### Getting started 🌯

```python
from pdfino import Document


doc = Document()
doc.h1("Hello World", options={"color": "blue", "margin_bottom": 30})
doc.p("Generate PDFs effortlessly with PDFino.")
doc.hr(height=2, options={"color": "#ffa500", "margins": (30, 100, 0, 100)})
data = doc.bytes
```

PDFino keeps things streamlined, but **it won't replace all of ReportLab's powers**. You can always add ReportLab
flowables directly to your document if you need to.

```python
from pdfino import Document
from reportlab.platypus import Paragraph


doc = Document()
doc.add(Paragraph("Hello World", doc.stylesheet["h1"]))
doc.save_as("hello_world.pdf")
```

For detailed usage, check out [pdfino.readthedocs.io][readthedocs].

### Run the tests 🧪

```bash
poetry run pytest --cov=pdfino --cov-report=term
```

### Style guide 📖

Tab size is 4 spaces. Keep lines under 120 characters. Feeling iffy? Run `ruff` before you commit:

```bash
poetry run ruff format . && poetry run ruff check pdfino
```


[codecov]: https://codecov.io/gh/eillarra/pdfino
[codecov-badge]: https://codecov.io/gh/eillarra/pdfino/graph/badge.svg?token=w93ZuZTpkW
[github-mypy]: https://github.com/eillarra/pdfino/actions?query=workflow%3Amypy
[github-mypy-badge]: https://github.com/eillarra/pdfino/workflows/mypy/badge.svg
[github-tests]: https://github.com/eillarra/pdfino/actions?query=workflow%3Atests
[github-tests-badge]: https://github.com/eillarra/pdfino/workflows/tests/badge.svg
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[pypi]: https://pypi.org/project/pdfino/
[pypi-badge]: https://badge.fury.io/py/pdfino.svg
[pypi-versions]: https://img.shields.io/pypi/pyversions/pdfino.svg
[readthedocs]: https://pdfino.readthedocs.io/en/latest/

[reportlab]: https://www.reportlab.com/opensource/
xbridge 1.2.0
A Securely Data Transmitting Tool
License: MIT
Requires Python: >=3.8,<4.0


# xbridge

An xrpc based tool for securely transmitting in a local network


## Command line Usage

### Install
suggest using `pipx` to install command
```sh
pipx install xbridge
```

### 帮助
```sh
xbridge [-h|--help]
```

### 搜索服务
```sh
xbridge -d
```

### 启动服务
```sh
xbridge [-c <config_dir>] <name> start
```
> `<config_dir>`是本地配置目录, 包含密钥和未结束的sessions. 默认路径`$HOME/.xbridge`
> `<name>`是建议的服务名, 实际服务名以启动后为准

### 发起请求

#### 一般命令格式
```sh
xbridge [-c <config_dir>] <name> request [<action> <params...> [ --with-files <files...> ]]
```
> `<name>`可以是服务名, 也可以是`[protocal://]ip:port`格式字符串


#### 快捷子命令

- 查看服务支持的所有请求

```sh
xbridge <server> info
# 等价于:
xbridge <server> request info
```

- 发送文件:
```sh
xbridge <server> send <files...>
# 等价于:
xbridge <server> request send_files <files...> --with-files <files...>
```
- 获取文件
```sh
xbridge <server> get <files...>
# 等价于:
xbridge <server> request get_files <files...>
```
- 列出文件

```sh
xbridge <server> ls [<files...>]
# 等价于:
xbridge <server> request list_files [<files...>]
```

### 断点继续
```sh
xbridge [-c <config_dir>] <server> resume <session> <msg_type> [ <params...> [ --with-files <files...> ]]
```
> `<msg_type>`: reply/done/get_file
> 

### Configuration

configuration dir is by default located in `$HOME/.xbridge/`.
You can specify the dir by `-c <config_dir>`

#### RSA keys
rsa key用来表明自己的身份.
`prikey.pem` 私钥
`pubkey.pem` 公钥

> 密钥会在首次使用时自动生成
#### Permissions

```json
// permissions.json
[
    {
        "client_hash": "xxxx",
        "allow_connect": true,
        "always_allow_actions": {
            "send_files": true,
            "get_files": false,
            "list_files": true,
        }
    }
]

```

#### Sessions
该目录用户存放所有未结束的sessions