semvec/pypi-packages huggingface dataset:
media-calc 0.2.5
A comprehensive Python library for statistical calculations including mean, median, mode, variance, and standard deviation
License: MIT
Requires Python: >=3.6
Keywords: mathematics, statistics, average, mean, calculator, median, mode, variance, standard deviation, data analysis

# media-calc

[![PyPI version](https://badge.fury.io/py/media-calc.svg)](https://badge.fury.io/py/media-calc)
[![Python Versions](https://img.shields.io/pypi/pyversions/media-calc.svg)](https://pypi.org/project/media-calc/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A comprehensive Python library for statistical calculations. Simple, efficient, and easy to use.

## Description

This library provides a set of robust statistical functions for data analysis. Perfect for students, researchers, and data analysts who need quick and reliable statistical calculations.

### Key Features
- Basic and advanced statistical analysis
- Clean and intuitive API
- Comprehensive documentation
- No external dependencies
- Efficient calculations
- Handles empty lists gracefully

## Installation

```bash
pip install media-calc
```

## Usage

```python
from media import (
    media, 
    mediana, 
    moda, 
    varianza, 
    desviacion_estandar
)

# Sample data
numbers = [2, 4, 4, 4, 5, 5, 7, 9]

# Calculate basic statistics
print(f"Mean: {media(numbers)}")          # Output: 5.0
print(f"Median: {mediana(numbers)}")      # Output: 4.5
print(f"Mode: {moda(numbers)}")           # Output: 4
print(f"Variance: {varianza(numbers)}")   # Output: 4.0
print(f"Std Dev: {desviacion_estandar(numbers)}")  # Output: 2.0
```

## Available Functions

### Basic Statistics
- `media(lista)`: Calculate arithmetic mean of a list of numbers
- `mediana(lista)`: Find the middle value of a sorted list
- `moda(lista)`: Find the most frequent value

### Advanced Statistics
- `varianza(lista)`: Calculate the variance of the data
- `desviacion_estandar(lista)`: Calculate the standard deviation

### Empty List Handling
All functions handle empty lists gracefully:
- `media()`: returns 0
- `mediana()`: returns 0
- `moda()`: returns None
- `varianza()`: returns 0
- `desviacion_estandar()`: returns 0

### Version Information
You can check the current version of the library:
```python
import media
print(media.__version__)  # Shows current version
```

# 2.0: more funcioanalities added
# 2.1: better documentation
## License

This project is licensed under the MIT License.
s2c 0.0.7
Secure End to End encrypted video chat over terminal.
License: MIT
Requires Python: >=3.10

# S2C

![demo](./demo.gif)

A secret video chat "in terminal" using PGP encryptions and AES encryptions.
No Browser needed !

## Features

- Video + Audio Chat in terminal

### Requirements

- Python (>3.10 is recommended)
- poraudio.h (for the audio forwarding, more details later)

## How to use

### Installation

Install bindings librairies for pyaudio !
- On linux/Mac : `sudo apt install -y portaudio19-dev` and `sudo apt install -y pyaudio`


Because it's a pip package, you need to install it using pypi !
```shell
pip install s2c
```

### Manual

#### Client

The manual of s2c :
```shell
usage: s2c [-h] [-s SESSION_ID] [-c CLIENT_ID] [-k KEY] [-i IP] [-p PORT]

optional arguments:
  -h, --help            show this help message and exit
  -s SESSION_ID, --session_id SESSION_ID
                        The sesion_id, if noting is provide,it will generate
                        for you
  -c CLIENT_ID, --client_id CLIENT_ID
                        Your id or name in the session, if noting is
                        provide,it will generate for you
  -k KEY, --key KEY     To provide the custom key for the AES encryption
  -i IP, --ip IP        The host of the server where websockets will transits
  -p PORT, --port PORT  The port of the host
```

For example : `$s2c -s 1 -c 1 -i 127.0.0.1 -p 1122`
Will connect you to the server '127.0.0.1:1122' in the session '1', your id is '1' !

#### Server

NB : At this step, the server should be running on ip : 127.0.0.1 and on port 1122, don't forget to allow the port using ufw (on linux)

To run the server :
```
s2c_server -p 1122
```

## FROM SOURCES

### HOW TO INSTALL

Install bindings librairies for pyaudio !
- On linux/Mac : `sudo apt install -y portaudio19-dev` and `sudo apt install -y pyaudio`

Clone and set the virtualenvironment :
```shell
# We clone the repository
git clone https://github.com/sanix-darker/s2c

# Install uv if you haven't
pip install uv

# Build the package (will use pyproject.toml)
uv pip install .

# Or for development install
uv pip install -e .
```

### HOW TO LAUNCH

#### SERVER

The server take only one parameter, the port, where it's going to run !
```shell
python3 -m server.main -h

usage: main.py [-h] [-p PORT]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  The port where the server will be running
```

#### CLIENT

Just as the section Manual under How to use, you just have to replace `s2c` by `python3 -m client.main`

## About

- [d4rk3r](https://github,com/sanix-darker)