semvec/pypi-packages huggingface dataset:
kmakepdf 0.1.2
Add your description here
Requires Python: >=3.12

# kmakepdf

**kmakepdf** is a simple yet powerful CLI tool to convert folders containing images and existing PDFs into a single merged PDF file.

## Features

- **Recursive Processing**: Automatically traverse subdirectories to create separate PDFs for each folder.
- **Smart Merging**: Combines both images (`.jpg`, `.jpeg`, `.png`) and existing `.pdf` files.
- **Rich Logging**: Professional, colored console output for better visibility.
- **CLI Interface**: Easy-to-use command line interface.

## Installation

```bash
pip install kmakepdf
```

## Usage

### Basic Usage

Convert a single folder to a PDF:

```bash
kmakepdf /path/to/folder
```

This will create `/path/to/folder.pdf` by default.

### Specify Output File

You can specify a custom output filename:

```bash
kmakepdf /path/to/folder -o my_output.pdf
```

### Recursive Mode

Process all subfolders within a directory:

```bash
kmakepdf /path/to/parent_folder -r
```

This will create a PDF for each subfolder inside `parent_folder`.

## Development

This project uses `uv` for dependency management and `nox` for testing.

### Setup

```bash
# Install dependencies
uv sync
```

### Running Tests

```bash
uv run nox -s tests
```

## License

MIT License. Copyright (c) 2025 Kihoa Nam.
ofg-auth-service-layer 0.1.0
Auth service layer (HubSpot token via AWS Secrets + API)
Requires Python: >=3.9

# ofg-auth-service-layer

Auth service layer for fetching HubSpot access tokens. This package retrieves an API token from AWS Secrets Manager and uses it to call an HTTP endpoint that returns a HubSpot access token.

## Install

pip install ofg-auth-service-layer

## Requirements

- Python 3.9+
- AWS credentials configured (env vars, ~/.aws/credentials, IAM role, etc.)
- An AWS Secrets Manager secret containing JSON with an API_TOKEN field

## Quick Start

Example (async):

import asyncio
from ofg_auth_service_layer import AuthService

async def main():
token = await AuthService.get_hubspot_access_token(app="crm")
print(token)

asyncio.run(main)

## API

AuthService.get_hubspot_access_token(app="crm", secret_name="hs-oauth-manager", api_url=..., timeout_seconds=20.0) -> str

Parameters:

- app:
  HubSpot app identifier used as a query param (default: "crm")
- secret_name:
  AWS Secrets Manager secret name that contains {"API_TOKEN": "..."} (default: "hs-oauth-manager")
- api_url:
  Endpoint used to fetch the HubSpot token
  Default:
  https://6jp43hzm45.execute-api.ca-central-1.amazonaws.com/prod/get-secret
- timeout_seconds:
  HTTP timeout in seconds (default: 20.0)

Returns:

- token (str): The access token returned by the endpoint (expects JSON {"token": "..."})

## AWS Secret Format

The secret string should be JSON, for example:

{
"API_TOKEN": "YOUR_API_TOKEN_VALUE"
}

## Notes

- This package uses AWS Secrets Manager (boto3) and makes HTTP requests using httpx.
- If the endpoint returns a non-2xx response, an AppError is raised.
- On unexpected failures, an AppError with status code 401 is raised.
pytex-lib 0.1.13
Decorate your functions to direct the output to a LaTeX file.
Requires Python: >=3.12

# pytex-lib

**pytex-lib** is a Python library for inserting function outputs directly into LaTeX documents.
The `@write_to_latex` decorator automatically writes a function’s return value into a LaTeX
file at a specified keyword location.

This is useful for generating LaTeX reports, papers, or documents that include computed
results without manual editing.

## Example Usage

### Import the Library

```python
from pytex_lib import write_to_latex
````

### Define a Function Using the Decorator

Decorate a function that returns a string:

```python
@write_to_latex
def compute_square(x):
    return f"The square of {x} is {x**2}"
```

### Initial LaTeX Document (`document.tex`)

The output will be inserted **immediately after** the line containing the keyword.

```latex
\documentclass{article}
\begin{document}

Here is the computed result:
% RESULT_PLACEHOLDER

\end{document}
```

### Call the Function

Provide the LaTeX file path and keyword at call time:

```python
compute_square(
    4,
    file_path="document.tex",
    keyword="RESULT_PLACEHOLDER",
)
```

### Updated LaTeX Document

After execution, `document.tex` becomes:

```latex
\documentclass{article}
\begin{document}

Here is the computed result:
% RESULT_PLACEHOLDER
The square of 4 is 16

\end{document}
```

## Installation

```bash
pip install pytex-lib
```