semvec/pypi-packages huggingface dataset:
QuLab-RPC 2.2.6
RPC for QuLab
License: MIT
Requires Python: >=3.6
Keywords: rpc qulab

# Qulab_RPC
[![View build status](https://travis-ci.org/feihoo87/Qulab_RPC.svg?branch=master)](https://travis-ci.org/feihoo87/Qulab_RPC)
[![Coverage Status](https://coveralls.io/repos/github/feihoo87/Qulab_RPC/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/Qulab_RPC?branch=master)
[![Updates](https://pyup.io/repos/github/feihoo87/Qulab_RPC/shield.svg)](https://pyup.io/repos/github/feihoo87/Qulab_RPC/)
[![Python 3](https://pyup.io/repos/github/feihoo87/Qulab_RPC/python-3-shield.svg)](https://pyup.io/repos/github/feihoo87/Qulab_RPC/)
[![PyPI version](https://badge.fury.io/py/QuLab-RPC.svg)](https://badge.fury.io/py/QuLab-RPC)

RPC for Qulab

## Installation
We encourage installing QuLab-RPC via the pip tool (a python package manager):
```bash
python -m pip install QuLab-RPC
```

To install from the latest source, you need to clone the GitHub repository on your machine.
```bash
git clone https://github.com/feihoo87/QuLab_RPC.git
```

Then dependencies and QuLab can be installed in this way:
```bash
cd QuLab_RPC
python -m pip install -r requirements.txt
python -m pip install -e .
```

## Usage

Server

```python
import asyncio
import math
from qurpc import ZMQServer


def start(loop):
    module = math
    server = ZMQServer(port=8765, loop=loop)
    server.set_module(module)
    server.start()

if __name__ == "__main__":
    import asyncio

    loop = asyncio.get_event_loop()

    start(loop)

    try:
        loop.run_forever()
    finally:
        loop.close()
```

Client
```python
from qurpc import ZMQClient

addr = "tcp://127.0.0.1:8765"
client = ZMQClient(addr)

y = await client.sin(3.14)
```


## Running Tests
To run tests:

```
python -m pytest
```

## Reporting Issues
Please report all issues [on github](https://github.com/feihoo87/QuLab_RPC/issues).

## License

[MIT](https://opensource.org/licenses/MIT)
pyco 1.0.0
Colorized console printing and input, ANSI escape codes, and logging functions.
License: MIT
Requires Python: >=3.6.8
Keywords: console,terminal,ansi,color,logging

# Pyco
Created by [Duplexes](https://github.com/Duplexes) and [LemonPi314](https://github.com/LemonPi314)

Pyco is a Python package designed to help developers make better command line applications faster. It has cross-platform compatibility for Windows and Linux. Some of the included features are a built-in error logger, colorized terminal input and output, progress bars, and an extensive list of ANSI escape code functions.  
Full documentation can be found at <https://duplexes.me/pyco>.

## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Pyco. 
```bash
pip install pyco
```

## Usage
Basic usage of included functions and constants.
```python
from pyco import *
from pyco.color import Fore, Back
# Print a message with a prefix
print_message("message", "prefix")
# Print a message with color
print_message(Fore.RED + "message")
# Print a message with a prefix and color
print_message(Fore.BRIGHT_YELLOW + "message", prefix=Fore.BLUE + "prefix")
# Prompt for user input with color
user_input(Back.GREEN + "prompt", input_color=Fore.BRIGHT_WHITE)
# Log a message into a log file
logging.log("message", "prefix")
```

## Contributing
This project is a work-in-progress, so any issues and bug reports are greatly appreciated. Pull requests are welcome. For major changes and feature requests, please [open an issue](https://github.com/Duplexes/pyco/issues/new) first to discuss what you would like to change.

## License
[MIT License](https://choosealicense.com/licenses/mit/)