semvec/pypi-packages huggingface dataset:
RxBagExtractor 0.1.6
Filter OCR text from prescriptions to extract drug-related texts
Requires Python: >=3.7

# RxBagExtractor

RxBagExtractor 약봉투 사진을 OCR로 읽은 뒤, 해당 텍스트에서 약물명 관련 텍스트를 추출하는 파이썬 라이브러리입니다. 한글로 작성된 처방전 텍스트 처리에 최적화되어 있습니다. 

## Installation

```bash
pip install RxBagExtractor
```
## Usage

### Required Parameter

-   `ocr_text`: OCR로 읽은 후 얻은 텍스트로, 각 줄이 엔터로 구분된 긴 문자열입니다.

### Optional Parameters

-   `stopwords_customize`: 기본 불용어 리스트 외에 추가적으로 필터링하고 싶은 단어들을 문자열 리스트로 입력할 수 있습니다.
-   `patterns_exact_customize`: OCR 텍스트의 각 줄에서 정확히 매치되어야 할 정규 표현식을 포함하는 리스트. 기본적으로 설정된 정규표현식 외에 추가적으로 필터링하고 싶은 정규표현식이 있을시 사용합니다. 각 항목은 re.compile(r"정규표현식") 형식으로 입력됩니다.
-   `patterns_include_customize`: OCR 텍스트의 각 줄에 이 정규표현식이 포함되어 있으면 해당 줄을 삭제합니다. 기본적으로 설정된 정규표현식 외에 추가적으로 필터링하고 싶은 정규표현식이 있을시 사용합니다. re.compile(r"정규표현식") 형식으로 입력됩니다.

## Example
``` python
from RxBagExtractor import extractor

# 약봉투 사진에 대한 OCR 결과 텍스트
ocr_text = "여기에 OCR로 읽은 텍스트 입력"

# Parameter 정의
stopwords_customize = ['유아용', '방문시']
patterns_exact_customize = [re.compile(r"^\d{4}-\d{2}-\d{2}$")]
patterns_include_customize = [re.compile(r"^\d+-\d+-\d+$")]

# 함수 실행
result = extractor(ocr_text, stopwords_customize, patterns_exact_customize, patterns_include_customize)
print(result)
```
record-msg 0.1.3
Record message parse helper function
Requires Python: >=3.6

# record_msg
record message parse helper function. It needs to be used in combination with [**cyber_record**](https://github.com/daohu527/cyber_record)

## Parser record
First read the record file through `cyber_record`, then `record_msg` provides 3 interfaces to help parsing cyber record file.

#### csv format
you can use `to_csv` to format objects so that they can be easily saved in csv format.
```python
import csv
from record_msg.parser import to_csv

f = open("message.csv", 'w')
writer = csv.writer(f)

def parse_pose(pose):
  '''
  save pose to csv file
  '''
  line = to_csv([pose.header.timestamp_sec, pose.pose])
  writer.writerow(line)

f.close()
```

#### image
you can use `ImageParser` to parse and save images in `output_path`.
```python
from record_msg.parser import ImageParser

image_parser = ImageParser(output_path='../test')
for topic, message, t in record.read_messages():
  if topic == "/apollo/sensor/camera/front_6mm/image":
    image_parser.parse(message)
    # or use timestamp as image file name
    # image_parser.parse(image, t)
```

#### lidar
you can use `PointCloudParser` to parse and save pointclouds in `output_path`.
```python
from record_msg.parser import PointCloudParser

pointcloud_parser = PointCloudParser('../test')
for topic, message, t in record.read_messages():
  if topic == "/apollo/sensor/lidar32/compensator/PointCloud2":
    pointcloud_parser.parse(message)
    # other modes, default is 'ascii'
    # pointcloud_parser.parse(message, mode='binary')
    # pointcloud_parser.parse(message, mode='binary_compressed')
```
useful-funcs 0.2.2
Useful Functions
Keywords: python, useful, useful functions, unit conversion, date conversion, calendar functions

# useful_funcs
## _Useful functions for various applications_

## Installation
```sh
pip install useful-funcs
```

## Versions
Detailed descriptions of changes in various versions is given below
| Version | Date |
| ------ | ------ |
| 0.2.2 | 2024-07-16 |
| 0.2.1 | 2024-07-16 |
| 0.2.0 | 2024-07-16 |
| 0.1.1 | 2024-06-05 |
| 0.1.0 | 2024-06-05 |
| 0.0.5 | 2024-03-31 |
| 0.0.4 | 2024-03-31 |
| 0.0.3 | 2024-01-22 |
| 0.0.2 | 2024-01-22 |
| 0.0.1 | 2024-01-22 |

## Version 0.2.2
- Fixed some bugs

## Version 0.2.1
- Improved code

## Version 0.2.0
- Added useful_thermodynamics

## Version 0.1.1
- Updated missing files

## Version 0.1.0
- Added fast_interpolator method to useful_interpol
- It can be used for linear and nearest neighbour interpolations.

## Version 0.0.5
- Updated README.md

## Version 0.0.4
- Added useful_colors
- Added useful_file_rename
- Added useful_interpol
- Added useful_isolated_points
- Added useful_stats_functions

## Version 0.0.3
- Added README.md

## Version 0.0.2
- Made basic improvements

## Version 0.0.1
- Added useful_calendar
- Added useful_closest
- Added useful_datetime


## Development

Want to contribute? Great!
Will be open to take suggestions soon.
microsignal 0.1.1
A lightweight library for handling custom signals with synchronous and asynchronous callbacks in Python.
Requires Python: >=3.6

# MicroSignal

## Description
MicroSignal provides a lightweight library for handling custom signals with synchronous and asynchronous callbacks in Python. It supports both function-based and method-based callbacks, allowing for flexible signal handling in various contexts.

The library was born out of the need for a very simple event subscription model functionality, similar to the systems used in QT or PyPubSub (inspired by these libraries), but without being overloaded with unnecessary functionality and features. It also needed to work with both synchronous and asynchronous functions and class methods, something that was sorely lacking in PyPubSub.

Or as Michael Abrash said in his book "[Graphics Programming Black Book](https://www.jagregory.com/abrash-black-book/)": "No code runs faster than no code."


## Features
- Synchronous and asynchronous callback support
- Function and class method callback support
- Easy-to-use decorator and method for subscribing to signals

## Installation

To install MicroSignal, you can use pip:

```sh
pip install microsignal
```