semvec/pypi-packages huggingface dataset:
swar00pduthks-marquez-python 0.52.40
Marquez Python Client
Requires Python: >=3.6
Keywords: marquez

# Marquez Python Client

Python client for [Marquez](https://github.com/MarquezProject/marquez).

## Documentation

See the [API docs](https://marquezproject.github.io/marquez/openapi.html).

## Requirements

* [Python 3.6](https://www.python.org/downloads)+

## Installation

```bash
$ pip3 install marquez-python
```

To install from source run:

```bash
$ python3 setup.py install
```

## Usage

### Reading Metadata
```python
from marquez_client import MarquezClient

client = MarquezClient(url='http://localhost:5000')

# list namespaces
client.list_namespaces()
```

To enable logging, set the environment variable `MARQUEZ_LOG_LEVEL` to `DEBUG`, `INFO`, or `ERROR`:

```
$ export MARQUEZ_LOG_LEVEL='INFO'
```

### Writing Metadata
To collect OpenLineage events using Marquez, please use the [openlineage-python](https://pypi.org/project/openlineage-python/) library. OpenLineage is an Open Standard for lineage metadata collection designed to collect metadata for a job in execution.

## Development

To install all dependencies for _local_ development:

```bash
$ pip3 install -e .[dev]
```

To run the entire test suite:

```bash
$ pytest
```

----
SPDX-License-Identifier: Apache-2.0
Copyright 2018-2023 contributors to the Marquez project.
streamdoc-dl 0.2.4
Download PDFs from ePapyrus StreamDocs viewers
Requires Python: >=3.10

# streamdoc-dl

> Slop coded. PRs welcome.

Download PDFs from ePapyrus StreamDocs viewers.

StreamDocs is an HTML5 document viewer by ePapyrus used on Korean government sites
(standard.go.kr, e-book.scourt.go.kr, etc.) that renders PDFs as page images
in-browser with download disabled. This tool reconstructs the PDF by downloading
page images and text data, producing a searchable PDF with selectable text.

## Install

```
pip install streamdoc-dl
```

## Usage

```
streamdoc-dl 'https://www.standard.go.kr/streamdocs/view/sd;streamdocsId=1234567890'
```

Output filename is auto-detected from the server metadata.

### Options

```
streamdoc-dl URL [-o OUTPUT] [-z ZOOM] [-j JOBS] [--font FONT] [--compress [LEVEL]] [--tor]
```

| Option | Default | Description |
|--------|---------|-------------|
| `-o` | auto | Output PDF path |
| `-z` | max | Zoom level: `max` for highest quality, or a number (100=native, 200=2x, 300=3x) |
| `-j` | 4 | Concurrent download threads |
| `--font` | auto | Path to TTF font for text layer |
| `--compress` | off | Compress with Ghostscript (screen/ebook/printer/prepress) |
| `--tor` | off | Route traffic through Tor (SOCKS5 proxy on 127.0.0.1:9050) |
| `--no-strip-watermark` | off | Keep watermark characters in the text layer |

### Compression

Use `--compress` to reduce output size via Ghostscript (`gs` must be installed):

```
streamdoc-dl URL --compress          # default: ebook quality
streamdoc-dl URL --compress printer  # higher quality
```

### Font Requirements

**Important:** A Korean-capable font is required for the text layer to work properly.

The tool tries to auto-detect in this order:
1. NanumGothic from common system paths
2. `fc-match :lang=ko` (Linux with fontconfig)
3. Fallback to reportlab built-in CID font (may not work on all platforms)

**Installation:**
- Arch/Manjaro: `sudo pacman -S noto-fonts-cjk`
- Debian/Ubuntu: `sudo apt install fonts-noto-cjk`
- Termux (Android): `pkg install noto-fonts-cjk`
- macOS: `brew install font-noto-sans-cjk`
- Windows: Download from [Google Fonts](https://fonts.google.com/noto/specimen/Noto+Sans+KR)

Or specify manually: `--font /path/to/font.ttf`

### Tor

Use `--tor` to route all traffic through Tor (must be running on port 9050):

```
tor &
streamdoc-dl URL --tor
```

### Resume

Interrupted downloads are automatically resumed. Page images and text are cached
as they download. Re-run the same command to continue from where it left off.
The cache is cleaned up after the PDF is built.

Cache location:
- Linux: `$XDG_CACHE_HOME/streamdoc-dl/` or `~/.cache/streamdoc-dl/`
- macOS: `~/Library/Caches/streamdoc-dl/`
- Windows: `%LOCALAPPDATA%\streamdoc-dl\`

## How it works

1. Fetches document metadata from the StreamDocs v4 API
2. If the server allows direct download, fetches the original PDF
3. Otherwise, downloads page images and text data concurrently
4. Fixes the corrupted first byte on each image (server-side anti-scrape)
5. Builds a PDF with image backgrounds and invisible text overlay

## License

GPL-3.0-or-later
dtutils-dimitristerzz 0.0.4
DTUtils is a collection of utility functions purely made for convinience.
Requires Python: >=3.9

# `DTUtils`
DTUtils is a collection of utility functions purely made for convinience.

**Note:** This package uses ES modules. To use it in Node.js add `"type": "module"` to your project's package.json or use .mjs extensions.

## Usage
```js
import { formatColor } from "@dimitristerzz/dtutils";

console.log(formatColor("#FFFFFF", "hsl"));
console.log(formatColor("255,255,255", "hsl"));
console.log(formatColor({ r: 255, g: 255, b: 255 }, "hex"));
```

## Utilities
formatcolor, randomint