semvec/pypi-packages huggingface dataset:
xchainpy-util 0.1.8
Utility helpers for XChain clients
License: MIT
Keywords: THORChain,XChainpy,xchainpy_util

# `xchainpy/xchainpy-util`

Utitity helpers for XChain clients

## Modules (in alphabetical order)

- `asset` - Utilities for handling assets
- `chain` - Utilities for multi-chain

-----------

## Usage

```bash
pip install xchainpy_util
```

Asset
-----------------

```python
from xchainpy_util.asset import Asset

asset = Asset(chain='BNB', symbol='RUNE-67C')
print(asset.chain)
print(asset.symbol)
print(asset.ticker)

asset = Asset(chain='BNB', symbol='RUNE-67C', ticker='RUNE')
print(asset)
 ```

Chain
-----------------

```python
from xchainpy_util import chain
from xchainpy_util.chain import Chain
is_chain = chain.is_chain(Chain.Binance)
print(is_chain)

is_chain = chain.is_chain('BNB')
print(is_chain)
 ```
    

## Tests

These packages needed to run tests:

- pytest `pip install pytest`

How to run tests?

```bash
$ python -m pytest xchainpy/xchainpy_util/tests
```
easywave 0.0.1
Easywave Library
License: MIT
Keywords: easywave eldat rx09 domotica

Python Easywave library
=====================

Library and CLI tool for interacting with Eldat RX09 Easywave transceiver.

Requirements
------------

- Python 2.7 or 3.6 (or higher)

Description
-----------

This package is a library for interacting with an Eldat RX09 Easywave transceiver. See https://www.eldat.de/produkte/schnittstellen/rx09e_en.html
I created this to be able to control my window screens.
Specification of how to use the transceiver: https://www.eldat.de/produkte/_div/rx09e_sp_en.pdf
I don't know if this also works Niko Easywave, so be my guest to test it...

Installation
------------

.. code-block:: bash

    $ pip install easywave

Usage of Easywave CLI
-------------------------

.. code-block::

    $ easywave -h
    Command line interface for easywave library.

    Usage:
      easywave [-v | -vv] [options]
      easywave [-v | -vv] [options] <command> <id>
      easywave (-h | --help)
      easywave --version

    Options:
      -p --port=<port>   Serial port to connect to [default: auto detect],
                           or TCP port in TCP mode.
      --baud=<baud>      Serial baud rate [default: 57600].
      --host=<host>      TCP mode, connect to host instead of serial port.
      -m=<handling>      How to handle incoming packets [default: event].
      -h --help          Show this screen.
      -v                 Increase verbosity
      --version          Show version.

Command can be code "A", "B", "C" or "D". ID is channel id.

Intercept and display Easywave packets:

.. code-block::

    $ easywave
    packet {'header': 'receive', 'id': '1c14a3', 'command': 'A'}

Send a command:

.. code-block::

    $ easywave A 01
databasebaseclass 0.1.1
This is some boilerplate code that I commonly use in my database classes.
License: MIT

===================
databasebaseclass
===================


This is some boilerplate code that I commonly use in my database classes.


Description
===========

There are a handful of things that I commonly use in my database classes, and I decided to put them in one spot.

* insert_or_merge replicates the ``MERGE`` function in SQL. I mostly use SqlAlchemy in my database projects, and there is currently no ``MERGE`` function. This is really only tested in Sqlite and Sql Server. (https://github.com/sqlalchemy/sqlalchemy/issues/5441)
* Logic to determine which dates have mot been processed. This makes it easier to run the script on a large set of days, and process any unprocessed days. If the server goes down, or the data flow stops working for some reason, this will back fill days. It makes the code more flexible.

Note
====

This project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold see https://pyscaffold.org/.
selfcaffeinate 0.1.0
Python module to prevent macOS system sleep using the caffeinate(1) command
License: MIT
Requires Python: >=3.7

# selfcaffeinate

## Description

Python module to prevent macOS system sleep using the `caffeinate(1)` command

### Introduction to `caffeinate(1)`

macOS users can prevent system sleep using the system command `caffeinate` like so:

```console
$ caffeinate sh -c "echo sleeping; sleep 60; echo done"
sleeping
done
$
```

Or hold a power management assertion on an existing process:
```console
$ pgrep long-running-process
555
$ caffeinate -w 555 && echo "done"
done
```

This module allows `caffeinate` to be used programmatically from Python code to prevent system sleep, without having to run the command externally.

## Example usage

```python
def main():
    print("Self caffeinating")
    SLEEP_PERIOD = 60
    sc = SelfCaffeinate()
    for i in range(0, 60):
        print("Sleeping {}".format(SLEEP_PERIOD))
        time.sleep(SLEEP_PERIOD)
```

Or use the `with` pattern:

```python
def main():
    print("Self caffeinating")
    SLEEP_PERIOD = 60
    with SelfCaffeinate():
      for i in range(0, 60):
          print("Sleeping {}".format(SLEEP_PERIOD))
          time.sleep(SLEEP_PERIOD)
```

The default path to macOS's `caffeinate` should work, but if you have an alternate path, you can specify that:

```python
def main():
    print("Self caffeinating")
    SLEEP_PERIOD = 60
    sc = SelfCaffeinate(caffeinate_path="/path/to/my/weird/caffeinate")
    for i in range(0, 60):
        print("Sleeping {}".format(SLEEP_PERIOD))
        time.sleep(SLEEP_PERIOD)
```
blazingdocs 1.0.1
BlazingDocs Python client
License: MIT
Requires Python: >=3.4
Keywords: doc,docx,pdf,odt,report,document,template,office,openoffice,merge,xml,json,csv

# BlazingDocs Python client
High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring.

## Installation

Run this line from Terminal:

```
pip install blazingdocs
```

## Integration basics

### Setup

You can get your API Key at https://app.blazingdocs.com

```python
client = BlazingClient('API-KEY')
```

### Getting account info

```python
account = client.get_account()
```

### Getting merge templates list

```python
templates = client.get_templates()
```

### Getting usage info

```python
usage = client.get_usage()
```

### Executing merge

```python
client = BlazingClient('API-KEY')
parameters = MergeParameters()

with open('templates/PO-Template.json', 'r', encoding='utf-8') as f:
    data = f.read()

with open('templates/PO-Template.docx', 'rb') as f:
    file = FormFile('PO-Template.docx')
    file.content = f.read()

operation = client.merge_with_form_file(
    data=data,
    filename='output.pdf',
    parameters=parameters,
    template=file
)
```

## Documentation

See more details here https://docs.blazingdocs.com