semvec/pypi-packages huggingface dataset:
wwr-api 0.0.3
WorkWechat Robot APIs
Requires Python: >=3.4
Keywords: api workwechat

企业微信机器人 API 接口
=======================

准备
----

1. 企业微信机器人 Hook 地址，形如:
   ``https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0azd012d-efs9-4add-bcw9-10fb01db70ca``
   (此条已脱敏)
2. Python3 环境

安装方式
--------

``shell script pip3 install wwr_api``

使用方式
--------

.. code:: python

    from wwr_api import WorkWechatRobotAPI

    api = WorkWechatRobotAPI("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0azd012d-efs9-4add-bcw9-10fb01db70ca")
    api.send_markdown("**`Hello World!`**")
    api.send_pic("https://github.com/Thoxvi/one-click-man/blob/master/demo.png?raw=true")
    api.send_pic("/home/thoxvi/demo.png")

建议/Bug
--------

请提 Issue。
tinymon 0.1.11
tinymon

# Tinymon

## Usage

------------------------------------------------------------------------------

### **TinyMon**

#### class

- TinyMon(baseimagepath=None, fbdev=None, previewdev=None, brightness=15, sleep_time=0.01, timeout=7)
  - parameters
    - baseimagepath
      - background image
      - default None
    - fbdev
      - frame buffer device
      - should use Ssd1362
      - fbdev=Ssd1362()
    - previewdev
      - preview video device
      - experimental
    - brightness
      - 0 ~ 15
    - sleep_time
      - sleep for cpu idle time
      - recommend 0.01
    - timeout
      - timeout for preview udp 
      - default 7 seconds

#### methods

- addctrl(id, ctrl)
  - parameters
    - id : str
      - ctrl name for internal dictionary
    - ctrl : ImageCtrl, TextCtrl
      - ImageCtrl, TextCtrl instance

- delImageCtrl(id)
  - parameters
    - id : str
      - ctrl name for internal dictionary
- delTextCtrl(id)
  - parameters
    - id : str
      - ctrl name for internal dictionary

------------------------------------------------------------------------------

### **ImageCtrl**

#### class

- ImageCtrl(pos=(0,0), size=(MAX_WIDTH,MAX_HEIGHT), path=None)
  - parameters
    - pos : tuple (x,y)
      - image position top-left
    - size : tuple (width, height)
      - image size : max(256, 64)
    - path
      - image path

#### methods

- open(path, pos=None, size=None)
  - description
    - change an image in ctrl instance
  - parameters
    - pos : tuple (x,y)
      - image position top-left
    - size : tuple (width, height)
      - image size : max(256, 64)

- changePos(pos)
  - parameters
    - pos : tuple (x,y)
      - image position top-left

- paste(im, box=(0,0))
  - description
    - pastes another image into this image
  - parameters
    - im
      - pillow image instance
    - box : (x,y), (x, y, width, height)
      - (x, y) : top left position
      - (x, y, width, height) : top left and size

- clear(image)
  - description
    - paste image whole area
    - for background image
  - parameters
    - image
      - pillow image

------------------------------------------------------------------------------

### **TextCtrl**

#### class

- TextCtrl(pos=(10,10) , fontsize=14, font='font/NanumBarunGothicLight.ttf', text=None):
  - parameters
    - pos : tuple (x,y)
      - text position top-left
    - fontsize
    - font
      - font path
    - text : str
      - input text

#### methods

- setText(text)
  - parameters
    - text : str
      - input text

- draw(im=None, fill=255)
  - description
    - for internal use
  - parameters
    - im
      - pillow image
    - fill
      - gray level : 0~255
  - returns
    - pillow image
    - text added image

------------------------------------------------------------------------------

## requirements

### g4l (gpio python package)

>- link : <https://gitlab.com/telelian/peripheral-library/g4l>

### ssd1362-py

>- link : <https://gitlab.com/telelian/peripheral-library/ssd1362.git>
hakilo 1.1.1
A tool for splitting a text into sentences.
Requires Python: >=3.5

# Hakilo - For splitting a text into sentences, and sentences into words.

Hakilo (meaning 'axe' in Esperanto) chops a text into sentences for analysis.

Sentences usually end with a period, a question mark, or an exclamation mark,
but not every period indicates the end of a sentence. For example:

&nbsp;&nbsp;&nbsp;&nbsp;Mrs. C. Bisset is 1.6 meters tall.

The above sentence has four periods, but only the last ends the sentence.

If there is an end quote mark or an end bracket after a period, the sentence will include the end mark. For example:

&nbsp;&nbsp;&nbsp;&nbsp;The tactical officer said, "Shields are down to 30 percent."

The last character of the above sentence is a quote mark.

When the program encounters a blank line, or any vertical space, it treats this as the end of a sentence.

Lines with a length of 0, and lines without any alphabetic characters, are excluded from output. Thus the line:

&nbsp;&nbsp;&nbsp;&nbsp;\- 2.7

will not be included in the output.

## Requirements

Hakilo was developed and tested on Python 3.7 .

## Links

Github: [https://github.com/Indrikoterio/hakilo-python](https://github.com/Indrikoterio/hakilo-python)

PyPi: [https://pypi.org/project/hakilo/1.1.1/](https://pypi.org/project/hakilo/1.1.1/)

## Installation

Try this:

```
$ python3 -m pip install hakilo
```

## Usage

### Importing

```
import hakilo
```

### read_file

This utility function reads in the entire file as a UTF-8 string.

```
the_text = hakilo.read_file("frankenstein.txt")
```

### split_text

This function splits the text and returns a list of sentences.

```
sentences = hakilo.split_text(the_text)
```

### split_sentence

This function splits the sentence into words and punctuation.

```
words = hakilo.split_sentence("You can do better.")
```

## Developer

Hakilo was developed by Cleve (Klivo) Lendon.

## Contact

To contact the developer, send email to indriko@yahoo.com . Preferred languages
are English and Esperanto. Comments, suggestions and criticism are welcomed.

## History

First release, October 2020.

Version 1.1.0 - Added split_sentence() - October 2020.

Version 1.1.1 - Fix bug in split_sentence() - October 2020.

## License

Hakilo is free software. It is distributed free of charge, without conditions, and without guarantees. You may use, modify and distribute it as you wish. There is no need to ask for permission. If you use Hakilo's code in your own project, and publish it, I request only that you acknowledge the source.