semvec/pypi-packages huggingface dataset:
Franko 25.5.12
Project for declension of Ukrainian names
License: MIT
Requires Python: >=3.10

# Franko ― Ukrainian Name Declension Library

[![Documentation](https://img.shields.io/badge/Documentation-Read%20The%20Docs-blue.svg)](https://franko.readthedocs.io/en/latest/index.html)
[![GitHub](https://img.shields.io/badge/GitHub-Repository-FF5733.svg)](https://github.com/TheDanielll/franko)


## Description
Franko is a simple yet powerful tool for automatic declension of Ukrainian personal names (family name, given name, patronymic).  
It uses the [shevchenko-js](https://shevchenko-js.tooleks.com/) engine under the hood and provides:

- A **Node.js** CLI (`decline.js` / `decline.bundle.js`) for quick command-line usage.  
- A **Python** module (`Franko.py`) with a `Franko` class, allowing you to integrate declension directly into your scripts.  
- A **build script** (`build.js`) based on esbuild that bundles the CLI into a single file for distribution.

## Main Components
1. **`decline.js` / `decline.bundle.js`**  
   - Parses positional arguments (`<Surname> <Name> <Patronymic> [masculine|feminine]`).  
   - Calls the shevchenko-js API to generate all seven Ukrainian cases.  
   - Outputs a formatted JSON object.

2. **`Franko.py`**  
   - Locates `decline.bundle.js` and the Node.js executable at initialization.  
   - Exposes `generate(text: str, gender: str = 'masculine') -> dict`, returning a dictionary with keys  
     `nominative`, `genitive`, `dative`, `accusative`, `instrumental`, `locative`, and `vocative`.

3. **`build.js`**  
   - Uses esbuild to bundle `decline.js` and its dependencies into `decline.bundle.js`.  
   - Targets Node.js 14 (`platform: 'node'`, `target: ['node14']`).

## Usage

### Installation
#### Node.js must be installed
From PyPI :
```bash
pip install franko
```

Python code

```python

   from Franko import Franko

   # Create a single instance
   f = Franko()

   # Decline a masculine name
   result = f.generate("Шевченко Тарас Григорович", "masculine")
   print(result)

   # You can call generate() multiple times with different inputs
   for name, gender in [
       ("Шевченко Тарас Григорович", "masculine"),
       ("Чуєнко Катерина Віталіївна", "feminine")
   ]:
       forms = f.generate(name, gender)
       print(forms)
```
bitcaster-sdk 0.2
Bitcaster Python SDK
License: MIT
Requires Python: >=3.8

Bitcaster Python SDK
--------------------


How to use it:

Setupt environemnt

- Set Bitcaster application-end-point using Bitcaster Key, get it at <bc_instance>/o/<org>/a/<app>/key/

    ```
    export BITCASTER_BAE=http://<KEY>@<SERVER>/api/o/<organization_slug>/p/<project_slug>/a/<application_slug>/

    ```

- in your code

    ```
    import bitcaster_sdk
        bitcaster_sdk.init()
        from bitcaster_sdk import trigger
        trigger(11)

    ```



- from command line

    ```
    $ bitcaster
    Usage: bitcaster [OPTIONS] COMMAND [ARGS]...

    Options:
      --bae BAE  Bitcaster BAE. Not needed if $BITCASTER_BAE is set
      --debug
      --help     Show this message and exit.

    Commands:
      events   lists Application's Events
      lists    lists Project's DistributionList
      members  lists DistributionList Members
      ping     ping Bitcaster server
      trigger  trigger Application's Event
      users    displays Organization's Users

    ```
RapidHtml2Pdf 0.1.5
Convert HTML (with CSS, SCSS, icons, and images) to PDF with async/threaded support
License: MIT
Requires Python: >=3.8

# RapidHtml2Pdf

Convert HTML (with CSS, SCSS, icons, and images) to PDF with async and threaded support.

## Features

* Parse and inline HTML, CSS/SCSS, and inline, internal external stylesheets
* Embed images, fonts (including Font Awesome, Google Fonts) as base64
* Asynchronous asset fetching for performance
* Dynamic single-page fitting to avoid blank pages
* CLI command `h2p` for easy usage

## Installation

```bash
pip install h2p
# Then install Playwright browsers:
python -m playwright install
```

## Usage

### Synchronous

```python
from RapidHtml2Pdf import html_to_pdf, PDFOptions

html = '<html><body><h1>Hello PDF</h1></body></html>'
options = PDFOptions(fit_to_one_page=True)
html_to_pdf(html, 'output.pdf', options)
```

### Asynchronous

```python
import asyncio
from RapidHtml2Pdf import html_to_pdf_async, PDFOptions

async def main():
    html = '<html><body><h1>Async PDF</h1></body></html>'
    options = PDFOptions(fit_to_one_page=False)
    await html_to_pdf_async(html, 'async_output.pdf', options)

asyncio.run(main())
```

## CLI

```bash
RapidHtml2Pdf input.html output.pdf --fit-to-one-page
```

## Configuration

Customize options via `PDFOptions`:

| Option            | Type   | Default                      | Description                                   |
| ----------------- | ------ | ---------------------------- | --------------------------------------------- |
| `page_size`       | `str`  | `A4`                         | Paper size (A4, Letter, etc.)                 |
| `orientation`     | `str`  | `portrait`                   | `portrait` or `landscape`                     |
| `margins`         | `dict` | top/bottom/left/right = 10mm | Margins in mm                                 |
| `fit_to_one_page` | `bool` | `True`                       | Auto-fit content to a single page if possible |

## Development & Testing

```bash
git clone https://github.com/Xyhercode/h2p.git
cd RapidHtml2Pdf
pip install -e .
pytest
```

## CI Workflow

Continuous integration runs on push and PR, testing on Linux, Windows, and macOS with Python 3.8 & 3.11, builds distributions.

## License

MIT © RAKESH SHARMA