semvec/pypi-packages huggingface dataset:
jsonrpc-server-py 0.2.0
A simple JSON-RPC server
License: MIT
Requires Python: >=3.6

# JSON-RPC Server for Python

A lightweight, easy-to-use JSON-RPC 2.0 server implementation in Python, designed for simplicity and minimal dependencies. This package allows you to quickly set up a JSON-RPC server to handle remote procedure calls in a standardized way, supporting both single and batch requests.

## Features

- Simple and straightforward JSON-RPC 2.0 compliance.
- Supports method registration for handling RPC calls.
- Handles single and batch requests.
- Built-in support for notifications (requests without response).
- Easy integration into existing Python applications.

## Installation

To install the JSON-RPC Server, simply use pip:

```bash
pip install jsonrpc-server-py
```

## Quick Start

Define the methods you want to expose through JSON-RPC, register your methods with the server, and run the server


```python
from jsonrpc_server import register_method, run

def add(a, b):
    return a + b

register_method('add', add)

if __name__ == "__main__":
    run(address='localhost', port=8000)
```


## Example

Request:

```bash
{
  "jsonrpc": "2.0",
  "method": "add",
  "params": [1, 2],
  "id": 1
}
```

Result:

```bash
{
  "jsonrpc": "2.0",
  "result": 3,
  "id": 1
}
```

## Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to improve the project.

## License

This project is licensed under the MIT License - see the LICENSE file for details.
idgeneratortempv1 0.0.10
An id generator that generated various types and lengths ids
License: MIT
Requires Python: >=3.9

# ID Generator
A package used to generate random ids of variable lengths and types.

## How to use
_After installing the package use following import:_ <br>

**from idgenerator import generate_password,generate_guid,generate_credit_card_number,
    generate_pin_number,
    generate_object_id**

_Then use following commands:_

**password = generate_password(length= 'your_desired_length')<br>**

**guid = generate_guid()<br>**

**credit_card_number = generate_credit_card_number(length='your_desired_length') <br>**

**pin = generate_pin_number(length='your_desired_length') <br>**

**objid = generate_object_id() <br>**