semvec/pypi-packages huggingface dataset:
pydigidoc 0.0.4
Python bindings for libdigidocpp - create, validate and handle digitally signed documents
Requires Python: >=3.10
Keywords: digidoc, digital-signature, xades, asice, bdoc, estonia, id-card, libdigidocpp

# pydigidoc

Python bindings for [libdigidocpp](https://github.com/open-eid/libdigidocpp) — create, validate and handle digitally signed documents (ASiC-E, BDOC, etc).

## Installation

```bash
pip install pydigidoc
```

## Usage

```python
import pydigidoc

# Initialize the library
pydigidoc.initialize("MyApp")

# Create a container and add files
doc = pydigidoc.Container.create("document.asice")
doc.add_data_file("report.pdf", "application/pdf")

# Sign with a PKCS#12 certificate
signer = pydigidoc.PKCS12Signer("certificate.p12", "password")
doc.sign(signer)
doc.save()

# Open and verify an existing container
doc = pydigidoc.Container.open("document.asice")
for sig in doc.signatures():
    print(f"Signed by: {sig.signed_by()}")
    sig.validate()

# Clean up
pydigidoc.terminate()
```

## Building from source

### Prerequisites

- Python 3.10+
- CMake 3.20+
- SWIG 4.0+
- C++23 compiler (GCC 13+, Clang 16+, MSVC 2022+)
- OpenSSL 3.5+, libxml2, zlib, xmlsec1

### Build

```bash
git clone --recurse-submodules https://github.com/namespace-ee/pydigidoc.git
cd pydigidoc
uv build --wheel
```

## License

LGPL-2.1-or-later. See [LICENSE](LICENSE) for the full text and [RELINKING.md](RELINKING.md) for relinking instructions.
loki-cactus01 1.7.0
Utilities and scrapers toolkit
Requires Python: >=3.9

# loki

一个可被其它项目复用的工具库（同时包含部分 scraper）。

## 作为依赖安装

**本地源码引用（推荐开发阶段）**

```bash
pip install -e .
```

**启用 scraper 相关依赖**

```bash
pip install -e ".[scrapers]"
```

Playwright 还需要安装浏览器（首次一次性）：

```bash
python -m playwright install chromium
```

## 在其它项目里引用

```python
from loki.scrapers import RequestMixin, Method
from loki.scrapers.javdb import JavDB
```

## 构建 wheel（用于分发/离线安装）

```bash
python -m build
pip install dist/loki-*.whl
```

## 说明

- 依赖在 `pyproject.toml` 的 `[project.dependencies]` / `[project.optional-dependencies]` 中维护。
- 命令行入口 `loki` 指向 `loki.__main__:main`（目前仅做日志初始化）。