semvec/pypi-packages huggingface dataset:
NESP-Lib 1.0.3
New Era Syringe Pump Library for Python
License: MIT
Keywords: New-Era-Pump-Systems, Syringe-Pump

# NESP-Lib – New Era Syringe Pump Library for Python

This project aims to offer a clean high-level interface to the New Era syringe pumps by New Era Pump
Systems.

These pumps are also distributed under different names, like Aladdin by World Precision Instruments
(WPI) and LA by Landgraf Laborsysteme.

## Features

- Object-oriented design
- Documented public elements via type hints and docstrings
- Signaling errors via exceptions
- Blocking and non-blocking running
- Sending heartbeat messages automatically

## Installing

```
pip install NESP-Lib
```

## Importing

``` python
import nesp_lib
```

## Examples

### Opening and Closing a Port

#### Manual Closing

``` python
from nesp_lib import Port

# Constructs and opens the port to which the pump is connected.
port = Port('COM1')

# Do something here while the port is open.
...

# Closes the port.
port.close()
```

#### Automatic Closing

``` python
from nesp_lib import Port

# Constructs, opens and automatically closes the port to which the pump is connected.
with Port('COM1') as port :
    # Do something here while the port is open.
    ...
```

### Configuring a Pump

``` python
from nesp_lib import Pump, PumpingDirection

# Constructs the pump connected to the port.
pump = Pump(port)

# Sets the syringe diameter of the pump in units of millimeters.
pump.syringe_diameter = 30.0

# Sets the pumping direction of the pump.
pump.pumping_direction = PumpingDirection.INFUSE

# Sets the pumping volume of the pump in units of milliliters.
pump.pumping_volume = 1.0

# Sets the pumping rate of the pump in units of milliliters per minute.
pump.pumping_rate = 20.0
```

### Identifying a Pump

``` python
# Prints the model number of the pump (e.g. "1000" for NE-1000).
print(pump.model_number)

# Prints the firmware version of the pump (e.g. "(3, 928)" for 3.928).
print(pump.firmware_version)
```

### Running a Pump

#### Blocking

Blocking running waits while the pump is running.

``` python
# Runs the pump considering the direction, volume, and rate set.
pump.run()
```

#### Non-blocking

Non-blocking running returns immediately after starting the running.

``` python
# Starts running the pump considering the direction, volume, and rate set.
pump.run(False)

# Waits while the pump is running.
pump.wait_while_running()

# Starts running the pump considering the direction, volume, and rate set.
pump.run(False)

# Waits while the pump is running.
while pump.running :
    # Do something here while the pump is running.
    ...

# Starts running the pump considering the direction, volume, and rate set.
pump.run(False)

# Do something here while the pump is running.
...

# Stops the pump.
pump.stop()
```
text-in-pattern 1.0.0
It is a simple Python library that transforms user input text into a stylized pattern using a user-defined symbol.
License: MIT
Requires Python: >=3.6

readme_content = """# text_in_pattern

**`text_in_pattern`** is a Python library that prints user input text in a stylized ASCII-art pattern using any symbol of your choice. Each letter of the alphabet is custom-designed to form a visually striking output that can be printed to the console.

## ✨ Features

- Convert any input text into a custom visual pattern
- Choose any symbol to decorate your text
- Lightweight and beginner-friendly

## 📦 Installation

Install the package via pip:

```bash

pip install text_in_pattern

```

## 📦 Usage

```bash

from text_in_pattern import text

# Your input string and the symbol to use
name = "Hello World"
symbol = "*"

text(name, symbol)

```


## 🛠️ Function

```bash

text(name: str, symbol: str) -> None
name: The input text to display

symbol: The character used to draw the pattern

Prints the stylized text directly to the console

```