semvec/pypi-packages huggingface dataset:
fast-pdf-gen 1.0.1
A fast PDF generation package using Handlebars templates

# Fast PDF Generator

Fast PDF Generator is a Python package that allows you to generate PDF files using Handlebars templates quickly. It provides a simple and efficient way to compile Handlebars templates and convert them into PDF documents.

## Features

- **Handlebars Template Compilation:** Compile Handlebars templates to HTML strings.
- **PDF Generation:** Generate PDF files from compiled HTML content.
- **Path Handling:** Support for both absolute and relative file paths on Linux, macOS, and Windows.

## Installation

You can install the `fast_pdf_gen` package using `pip`:

`pip install fast_pdf_gen`



## Usage

```python
from fast_pdf_gen import compile_handlebars_template, generate_pdf

# Handlebars Template Compilation
template_key = 'template1'
template_path_or_string = 'path/to/template.html'  # Or a template string
context = {'variable': 'value'}
compiled_template = compile_handlebars_template(template_key, template_path_or_string, context=context)
#Options
pdf_options = {
    'format': 'A3',
    'margin': {
       'top': '10mm',
       'right': '10mm',
       'bottom': '10mm',
       'left': '10mm'
    }
}

# PDF Generation
output_path = 'output.pdf'
generate_pdf(template_key, template_string, output_path, context=context, pdf_options=pdf_options)
```

### Options

* `template_key` (str): Unique identifier for the template.
* `template_path_or_string` (str): Path to the HTML template file or a template string.
* `compiled_template` (str): Compiled HTML content obtained from `compile_handlebars_template`.
* `output_path` (str): Path where the generated PDF will be saved.
* `context` (optional, dict): Dictionary containing variables to be substituted in the Handlebars template.

### Contributing

1. Fork the repository and clone it locally.
2. Create a new branch for your feature: `git checkout -b feature-name`.
3. Make your changes and commit them: `git commit -m 'Add new feature'`.
4. Push to the branch: `git push origin feature-name`.
5. Create a pull request on GitHub.

### License

This project is licensed under the MIT License.
corpus-cephalon 0.1.0
User management models and auxilaries for Corpus
Requires Python: >=3.9,<4.0

## corpus-cephalon

corpus-cephalon is a support package for user management of the Corpus headless proteomics server.

### Installation

```bash
pip install corpus-cephalon
```

### Usage

```python
INSTALLED_APPS = [
    #...
    'cephalon',
    #...
]
```
NIADic-py 0.0.1
Unofficial Python Wrapper for NIADic dataset
Requires Python: >=3.9

# NIADic_Py

Unofficial Python Wrapper for NIADic dataset

# Description

This is Python wrapper for the NIADic provided by the K-ICT Big Data Center.

# Column

* term : korean words
* tag : word class
  * Using [Korean POS tags comparison chart](https://docs.google.com/spreadsheets/d/1OGAjUvalBuX-oZvZ_-9tEfYD2gQe7hTGsgUpiiBSXI8/edit#gid=0)
* category: Category of words

# Tokenizer Example

* input : "저는 오늘 아침에 하나의 빵을 먹고 학교로 급하게 갔습니다."
* output : ['저', '오늘', '아침', '하나', '빵', '먹', '학교', '급하', '갔습니']

# License 

'NIADic_py' contains the bundled NIADic files and available under the CC BY-SA 2.0 license.
pp-paths 1.0.1
A python program to pretty print directory structures

# `pp_paths`: A python script to pretty print directory structures

pass the paths of files to be printed through `stdin`. They will be printed as a tree using ascii art.

# Installation

    pip install pp_paths --user

> pp_paths [-c] [-b]

*-c* collapse directory sequences

*-b* print trees with a common base named '////'. The default is to print all the
    trees formed separated with a '*////*'

## Examples

    > find b -type f|pp_paths
    b/
    ├─a/
    │ └─b/
    │   └─c/
    │     └─d/
    │       ├─1
    │       ├─2
    │       └─3
    ├─s
    ├─b/
    │ ├─w/
    │ │ └─a
    │ ├─q
    │ └─x
    ├─r
    └─q/
      ├─e
      └─y


    > find b -type f|pp_paths -c
    b/
    ├─a/b/c/d/
    │ ├─1
    │ ├─2
    │ └─3
    ├─s
    ├─b/
    │ ├─w/a
    │ ├─q
    │ └─x
    ├─r
    └─q/
      ├─e
      └─y

    > {find b -type d; find a}|pp_paths
    b/
    ├─a/
    │ └─b/
    │   └─c/
    │     └─d
    ├─b/
    │ └─w
    ├─z
    └─q
    
    -*-*-
    a/
    └─b
    
    user@machine /dev/pts/4 /home/user/src/pp_paths
    > {find b -type d; find a}|pp_paths -b
    ////
    ├─b/
    │ ├─a/
    │ │ └─b/
    │ │   └─c/
    │ │     └─d
    │ ├─b/
    │ │ └─w
    │ │
    │ ├─z
    │ └─q
    └─a/
      └─b

You can easily integrate it with other tools which output list of files:

    > pacman -Ql tmux |awk '{print $2}'|pp_paths -c -b
    /usr/
    ├─bin/tmux
    └─share/
      ├─licenses/tmux/LICENSE
      └─man/man1/tmux.1.gz


    > bsdtar tf ~/Downloads/emacs-for-clojure-book1.zip |pp_paths -c
    emacs-for-clojure-book1/
    ├─.gitignore
    ├─README.md
    ├─customizations/
    │ ├─editing.el
    │ ├─elisp-editing.el
    │ ├─misc.el
    │ ├─navigation.el
    │ ├─setup-clojure.el
    │ ├─setup-js.el
    │ ├─shell-integration.el
    │ └─ui.el
    │
    ...