semvec/pypi-packages huggingface dataset:
socker 2.1.0
redis pubsub websocket proxy
License: MIT

=======================================================
socker - pubsub websocket proxy server built on asyncio
=======================================================

socker runs as a single-process service, using asyncio for non-blocking I/O.

socker uses a single redis pubsub channel, and has its own channel
subscription logic, this means that you may share redis database with other
applications.

socker runs as a single-process service. socker opens up a websocket
server port and establishes a redis connection. The redis connection creates
a subscription on the socker channel.


------------
Installation
------------

.. code-block:: bash

    pip install socker

-----
Usage
-----

.. code-block:: bash

    $ socker -h
    Start the socker websocket server

    Usage:
      socker [options]
      socker -? | --help
      socker --version

    Options:
      -i INTERFACE    Listening interface [default: localhost]
      -p PORT         Listening port [default: 8765]

      -v              Enable verbose output

      --redis-host=HOST             Redis host [default: localhost]
      --redis-port=PORT             Redis port [default: 6379]
      --redis-db=DB                 Redis database [default: 0]
      --redis-password=PASSWORD     Redis password

      --logto FILE    Log output to FILE instead of console

      --version       show version
      -? --help       Show this screen


To publish a message to socker from another application:

.. code-block:: python

    from socker import Message


    channel = 'foo.bar.42'
    data = {
        'yes': [
            'yes',
            'no',
            'baz'
        ]
    }

    redis_client.publish('socker', Message(channel, data))

Any websocket clients subscribed to

-   ``foo.*``
-   ``foo.bar.*``
-   ``foo.bar.42``

will receive that message.

-------------------------------
Releasing a new version to PyPi
-------------------------------

1. Bump the version in ``VERSION``.
2. Commit the change and tag it with the new version identifier.
3. Build a source distribution: ``python setup.py sdist``.
4. Build a wheel: ``python setup.py bdist_wheel``.
5. Upload the built distribution using Twine_: ``twine upload dist/*``.

.. _Twine: https://github.com/pypa/twine

------
Thanks
------

Thanks to

- https://github.com/aaugustin/websockets
- https://github.com/jonathanslenders/asyncio-redis

for their brilliant asyncio packages.
healthinsight 0.0.1
A unified package for health indicators and indices e.g. BMI, BAI, etc.
License: MIT
Requires Python: >=3.8
Keywords: health, bmi, bai, body indices, health insights

# healthInsight-pkg
HealthInsight – A Unified Python Package for Health Indicators

# HealthInsight

## Purpose of the Package
HealthInsight is a Python package designed to calculate various health indicators, including BMI, BAI, BSI, total body water, and mortality rates. It helps individuals and researchers assess different aspects of health and wellness using scientifically accepted formulas.

## Features
- **BMI Calculation** - Body Mass Index classification
- **BAI Calculation** - Body Adipose Index
- **BSI Calculation** - Body Shape Index
- **Total Body Water Calculation**
- **Corpulence Index**
- **Waist-to-Hip Ratio**
- **Mortality Rate Calculations** (Perinatal, Maternal, Infant)
- **Birth Rate Calculation**

## Getting Started
This package is built using Python and follows object-oriented programming principles. It is designed to be lightweight and easy to use for health-related calculations. HealthInsight is available on PyPI, so you can install it using the standard installation methods provided below.

## Installation
To install HealthInsight, ensure you have Python installed (>=3.12) and run:
```sh
pip install healthinsight
```
Or, if using Poetry:
```sh
poetry add healthinsight
```

## Usage
Import the `HealthCalc` class and use the available static methods for different health calculations.
```python
from healthinsight.calculations import HealthCalc
```

## Example
```python
from healthinsight.calculations import HealthCalc

# Calculate BMI
bmi_value, category = HealthCalc.bmi(65, 1.70)
print(f"BMI: {bmi_value}, Category: {category}")

# Calculate BAI
bai_value = HealthCalc.bai(90, 1.75)
print(f"BAI: {bai_value}")
```

## Contributions
Contributions are welcome! To contribute:
1. Fork the repository.
2. Create a new branch for your feature/fix.
3. Commit your changes.
4. Submit a pull request.

Ensure to run tests before submitting:
```sh
pytest tests/
```

## Author
Developed by Olajide Oluwafemi Richard. Feel free to reach out for collaboration or inquiries!