semvec/pypi-packages huggingface dataset:
netlink-ipc 3.0.0
A Basic inter-process communication (IPC) library for Client to Server communication.
Requires Python: >=3.8

# NetLink

NetLink is a Python library for client-to-server communication, designed to simplify the process of building networked applications. It provides a simple way to establish communication between clients and servers.

## Features

- Easy setup and integration into your Python projects.
- Secure authentication using a secret key.
- Supports multiple routes for handling different types of requests.
- Error handling for common communication issues.
- Asynchronous support for improved performance.

## Installation

```
python -m pip install netlink_ipc
```

## Examples

# Server
- Setting up a server with NetLink is straightforward. Here's an example of how to create a basic server:
```py
from netlink import NetLinkServer, Payload

# Initialize the server with a host, port, and secret key
server = NetLinkServer(host="0.0.0.0", port=3000, secret_key="my_secret_key")

# Define a route and the corresponding function
@server.route(name="greet") # We can either pass a name or not, if no name is given the function name is used
def greet(payload: Payload):
    return f"Hello, {payload.name}!"

# Start the server
server.start()
```

# Client
- Connecting to the server and sending requests from the client is equally easy:
```py
from netlink import NetLinkClient

# Initialize the client with the server's host, port, and secret key
client = NetLinkClient(host="127.0.0.1", port=3000, secret_key="my_secret_key")

# Send a request to the "greet" route with a name kwarg
response = client.request("greet", name="Bob")

# Print the ServerResponse, response
print(response.response)
```

## Asynchronous Examples


# Server
- NetLink supports asynchronous communication for improved performance. Here's an example of an asynchronous server:
```py
import asyncio
from netlink import NetLinkAsyncServer, Payload

server = NetLinkAsyncServer(host="0.0.0.0", port=3000, secret_key="my_secret_key")

@server.route(name="greet")
async def greet(payload: Payload):
    return f"Hello, {payload.name}!"

async def main():
    await server.start()

asyncio.run(main())
```

# Client
- Here's an example of an asynchronous client:
```py
import asyncio
from netlink import NetLinkAsyncClient

async def main():
    client = NetLinkAsyncClient(host="127.0.0.1", port=3000, secret_key="my_secret_key")

    response = await client.request("greet", name="Bob")

    print(response)

# Run the asynchronous client and request the 'greet' route
asyncio.run(main())
```
requirement-compare 0.1.1
A CLI that generate a version changelog based on git history and local requirement file.
Requires Python: >=3.10

# Requirement Compare

A CLI that generate a version changelog based on git history and local requirement file.

## Installation

```bash
pip install --upgrade pip
pip install requirement-compare
```

## Usage

```bash
$ requirement-compare requirements.txt
- Added `last_package` version `1.0.0`
- Bump `example_package` from `1.0.0` to `2.0.0`
- Removed `another_package` version `1.0.0`
```
emonic-admin 1.0.3
A battery startup for Emonic web framework

## Emonic-Admin 

Emonic-Admin a battery startup for newly emonic v1.0.3

[![IMG-20230823-151908.jpg](https://i.postimg.cc/Vsd2Qym0/IMG-20230823-151908.jpg)](https://postimg.cc/dDc5rx7J)

## Available scripts

```bash
emonic-admin create-project {projectname}
```

```bash
emonic-admin setup --migrate
```

```bash
emonic-admin build -p {root_project_name}
```

```bash
emonic-admin manage engine
```

```bash
emonic-admin gradle --production
```

- emonic-admin createproject {project_name} for building the floor of Emonic app.
- emonic-admin setup --migration for setting up the migration to root project.
- emonic-admin build -p {root_project_name} building the root project.
- emonic-admin manage engine for setting up all the templates and static files.
- emonic-admin gradle --production for production usage.