semvec/pypi-packages huggingface dataset:
escpos-python 1.0.2
ESC/POS receipt printing library in pure Python
Requires Python: >=3.8

# escpos-python

A **pure Python 3** library for printing **ESC/POS receipts**, **barcodes**, and **QR codes** directly via the operating system print spooler.  
Works on **macOS**, **Linux**, and **Windows** using `lp` or `print` system commands.

---

## 🚀 Features

✅ ESC/POS command generation  
✅ Text formatting (bold, underline, alignments, double width/height)  
✅ Barcodes (EAN13, Code128, and more)  
✅ QR codes (size, error correction)  
✅ Cross-platform printing (no C extensions)  
✅ Mock printer for testing

---

## 📦 Installation

```bash
pip install escpos-python
```

> Or build from source using `flit` or `twine`

---

## 🖨️ Usage Example

```python
from escpos import (
    POSPrinter,
    POSReceiptBuilder,
    POSTextBuilder,
    POSPrintStyle,
    POSTextAlignment,
    POSBarcodeBuilder,
    POSBarcodeType,
    POSQRCodeBuilder,
    POSQRCodeSize,
    POSQRCodeErrorCorrection
)

printer = POSPrinter("Your_Printer_Name")

receipt = (
    POSReceiptBuilder()
    .set_title("ESC/POS PYTHON DEMO")
    .add_component(POSTextBuilder("Left").set_alignment(POSTextAlignment.LEFT).build())
    .add_component(POSTextBuilder("Center").set_alignment(POSTextAlignment.CENTER).build())
    .add_component(POSTextBuilder("Right").set_alignment(POSTextAlignment.RIGHT).build())
    .add_component(POSTextBuilder("Bold").set_style(POSPrintStyle.BOLD).build())
    .add_component(POSTextBuilder("Underlined").set_style(POSPrintStyle.UNDERLINE).build())
    .add_item("Item A", 3.5)
    .add_item("Item B", 5.0)
    .add_component(
        POSBarcodeBuilder("123456789012")
        .set_type(POSBarcodeType.JAN13_EAN13)
        .build()
    )
    .add_component(
        POSQRCodeBuilder("https://example.com")
        .set_size(POSQRCodeSize.LARGE)
        .set_error_correction(POSQRCodeErrorCorrection.HIGH)
        .build()
    )
    .set_footer("Thank you!")
    .build()
)

printer.print(receipt)
```

---

## 🖨️ How to Find Printer Names

### macOS / Linux
```bash
lpstat -p
```

### Windows (PowerShell)
```powershell
Get-Printer | Select Name
```

---

## 🧪 Testing with a Mock Printer

```python
from escpos import POSPrinterMock, POSReceiptBuilder, POSTextBuilder

mock = POSPrinterMock()
receipt = (
    POSReceiptBuilder()
    .set_title("Test Receipt")
    .add_component(POSTextBuilder("Line 1").build())
    .build()
)

mock.print(receipt)
print("Printed buffers:", len(mock.get_printed_data()))
```

---

## 📣 Feature Request?

This repository is only for **bug reports and maintenance** related to the language-specific implementation.

Please open all **feature requests, enhancements, and cross-language discussions** in the **central repository**:  

👉 [DrBackmischung/ESCPOS](https://github.com/DrBackmischung/ESCPOS/issues)

---

## 📜 License

MIT
simgle 1.1.2
Save time and money by easily finding the cheapest virtual numbers on OnlineSim.
Requires Python: >=3.9

# Simgle
Helps you save time and money by easily finding the cheapest virtual numbers on [OnlineSim](https://onlinesim.io).

## Installation
> [!IMPORTANT]
> Make sure you have Python 3.9+ installed.

Install the utility from PyPI:
```sh
pip install simgle
```

## Usage
After installing, you can use it like this:
```sh
simgle [arguments]
```

> [!TIP]
> To see all available flags and arguments, run:
> ```sh
> simgle --help
> ```
> This will display a list of all the options and how to use them.

### Example
![Usage showcase](https://raw.githubusercontent.com/zelevar/simgle/b5076c591e897e175c393a42d0e7491650ad87eb/images/showcase.png)
sr.comp.scorer 1.8.0
Student Robotics Competition Score Entry Application
Requires Python: >=3.9

SRComp Scorer
=============

|Build Status|

A web UI to edit scores from SRComp score files.

Deployment
----------

For using the scorer at an event:

.. code:: shell

    script/install.sh

The install script prints instructions regarding the setup of the corresponding
compstate as well as how to run the resulting instance. Currently this is aimed
at install on a user's own machine rather than being hosted externally.

Publishing Scores
~~~~~~~~~~~~~~~~~

Scores are expected to be published using the SRComp CLI ``deploy`` command.

Typically this is arranged by having SSHD running on the machine at the
score-entry desk, allowing the person who deploys the scores to *pull* them onto
their own machine before both deploying them to the various compboxes and
pushing them to archival storage (typically GitHub).

From the perspective of the person deploying the scores these steps might look like:

.. code:: shell

    git pull $SCORER_MACHINE master
    git push
    srcomp deploy .
    ssh $SCORER_MACHINE 'cd compstate && git pull --ff-only'

This setup enables the person deploying the scores to optionally act as a
reviewer, perhaps by running the scorer on their own machine in order to view
the scores without relying on physical proximity to the score-entry desk.

Development
-----------

**Install**:

.. code:: shell

    pip install -e .

**Run**:
``python -m sr.comp.scorer`` (see the ``--help``) for details.

Developers may wish to use the `SRComp Dev`_ repo to setup a dev instance.


.. |Build Status| image:: https://circleci.com/gh/PeterJCLaw/srcomp-scorer.png?branch=main
   :target: https://circleci.com/gh/PeterJCLaw/srcomp-scorer

.. _`SRComp Dev`: https://github.com/PeterJCLaw/srcomp-dev
agentId 0.0.1
连接Au互联网络的库
Requires Python: >=3.6
Keywords: socket client server message

# Server Message Client

一个简单的Python库，用于连接连接Au互联网络的库

## 安装

```bash
pip install server-message
```

## 使用示例

```python
from server_message import MessageClient

# 使用上下文管理器自动管理连接
with MessageClient(host='example.com', port=8080) as client:
    client.send_message({
        'type': 'alert',
        'content': '系统警告信息',
        'priority': 'high'
    })
```

## 功能特性

- 简单的服务器连接管理
- 自动JSON消息序列化
- 支持上下文管理器协议
- 自定义异常处理
- 线程安全

## 开发

安装开发依赖:

```bash
pip install -r requirements.txt
```

运行测试:

```bash
python -m pytest tests/
```

## 许可证

MIT
validat 0.0.7
Library for data validation
Requires Python: >=3.10

# Validat

[![pypi](https://img.shields.io/pypi/v/validat?color=blue)](https://pypi.org/project/validat/)
[![versions](https://img.shields.io/pypi/pyversions/validat)](https://pypi.org/project/validat/)
[![license](https://img.shields.io/github/license/AliakseiYafremau/validat)](https://github.com/AliakseiYafremau/validat/blob/main/LICENSE)

Validat is a Python library for data validation. It provides a simple and flexible way to validate data structures, ensuring that your data meets the required criteria.

## Features

- Easy to use and integrate
- Supports various data types and structures
- Customizable validation rules
- Detailed error messages

## Installation

You can install Validat using pip:

```bash
pip install validat
```

## Usage

Here's a basic example of how to use Validat:

```python
import validat

correct_email = "username@example.com"
is_valid = validat.validate_email(correct_email)
print(is_valid) # True

wrong_email = "username@@example.com"
is_valid = validat.validate_email(wrong_email)
print(is_valid) # False
```

## Documentation

For more detailed information, please refer to the [official documentation](https://aliakseiyafremau.github.io/validat/).