semvec/pypi-packages huggingface dataset:
FairShare 0.1.0
Simple fair queue implementation on Python
License: MIT

# FairShare - a fair way to queue messages

## Installation

    pip install fairshare

## Usage Example

```python3
import asyncio

from fairshare.base import BaseMessage
from fairshare.core import FairQueue
from fairshare.helpers import init_redis


class DownloadRequest(BaseMessage):
    image_url: str


async def main():
    redis_url = "redis://127.0.0.1:6379/0"

    async with init_redis(redis_url) as client:
        queue = FairQueue("downloads", client)

        for i in range(2):
            share_id = f"user-{i + 1}"
            for _ in range(3):
                await queue.put(
                    DownloadRequest(
                        share_id=share_id,
                        image_url="https://picsum.photos/200"
                    )
                )

        async for message in queue.poll():
            print(f"Message from {message.share_id}")


if __name__ == '__main__':
    with asyncio.Runner() as runner:
        runner.run(main())

```

Running the above code should produce the following output:

```bash
$ python main.py

Output: "Message from user-1"
Output: "Message from user-2"
Output: "Message from user-1"
Output: "Message from user-2"
Output: "Message from user-1"
Output: "Message from user-2"
```
registerrecordobject 0.0.2
Register Record Object
License: MIT
Requires Python: >=3.8

# Register Record Object
Register Record Object is a Python package that simplifies the process of registering metrics and testing a service through HTTP requests.
There is a synchronous and an asynchronous version of the object.

## Installation
To use this module, you need to have Node.js installed on your machine. Then, you can install it using npm:

```bash
pip install recordregisterobject
```
## Usage
1. Import the package into your project:
```python
from registerrecordobject import RegisterRecordObjectSync
```
2. Create an instance of RegisterRecordObject by providing the base URL of your service:
```python
registerRecord = RegisterRecordObjectSync('http://localhost:3001/');
```
3. Use the register method to send metrics data:
```python
registerRecord.register({ "key1": 'value1', "key2": 'value2', "timestamp": time.time(), "service": 'service1' })
```
4. Use the test method to test your service:
```python
response = registerRecord.test()
assert(response.status_code == 200)
```
Ensure that your service has the corresponding endpoints for metrics registration and testing.


Full code example:
```python
from registerrecordobject import RegisterRecordObjectSync
from registerrecordobject import RegisterRecordObjectAsync
def run_sync():
    register_record = RegisterRecordObjectSync(url="http://localhost:3001")
    response_test = register_record.test()
    assert(response_test.status_code == 200)

    response_register = register_record.register(data={"test": "test", "service": "test-python"})
    assert(response_register.status_code == 200)

async def run_async():
    register_record = RegisterRecordObjectAsync(url="http://localhost:3001")
    response_test = await register_record.test()
    assert (response_test.status == 200)

    response_register = await register_record.register(data={"test": "test", "service": "test-python"})
    assert (response_register.status == 200)  
    
```
License
This project is licensed under the MIT License - see the LICENSE file for details.

Feel free to customize this README to include more details or specific instructions related to your project.
SDR3423312 0.0.1
calculate golden ratio
License: MIT
Keywords: golden_ratio,golden

# Golden Ratio Calculation
Bruh calculate Golden Ratio (phi)

## Installation
```shell
pip install gold33423302
```

## Usage
Basic Usage:
```python
from gold33423302 import goldenratio

phi = goldenratio.calculate_golden_ratio()
print(f"golden ratio: {phi}")
```
gold33423322 2.0
Simple library to calculate golden ratio
License: MIT
Keywords: golden_ratio,golden

# Golden Ratio Calculation
Python simple library to calculate Golden Ratio (phi)

## Installation
```shell
pip install gold33423322
```

## Usage
Basic Usage:
```python
from gold33423307 import GoldenRatio

phi = GoldenRatio.calculatePhi()
print(f"Golden Ratio: {phi}")
```
tox-pyenv-redux 1.1.0
A tox Python discovery plugin for pyenv-installed interpreters
License: MIT
Requires Python: >=3.8
Keywords: tox,pyenv

# tox-pyenv-redux

A [tox][tox] Python discovery plugin for [pyenv][pyenv]–installed interpreters

## Compatibility

* For legacy versions of tox (0.x—3.x), use tox-pyenv-redux 0.x (`tox-pyenv-redux < 1`). These versions do not rely on [virtualenv-pyenv][virtualenv-pyenv] and **DO NOT** support the `pyenv_discovery` setting.
* For the current version of tox (4.x), use tox-pyenv-redux 1.x (`tox-pyenv-redux >= 1, < 2`). These versions delegate the discovery job to [virtualenv-pyenv][virtualenv-pyenv].

## Installation

```shell
pip install tox-pyenv-redux
```

## Usage

The plugin is enabled by default and configured to use the default discovery [operation mode][virtualenv-pyenv-docs-operation-mode]. To change the mode or disable the plugin, set the `pyenv_discovery` environment setting to one of the following values:

* One of the [operation modes][virtualenv-pyenv-docs-operation-mode] (e.g., `fallback`) to use the specific operation mode. `pyenv_discovery = fallback` is equivalent to `export VIRTUALENV_DISCOVERY=pyenv-fallback`.
* `default` to use the default operation mode. This is the default value. `pyenv_discovery = default` (or no setting) is equivalent to `export VIRTUALENV_DISCOVERY=pyenv`.
* `off` to disable the plugin. The plugin will not touch the `VIRTUALENV_DISCOVERY` environment variable, but the [virtualenv-pyenv][virtualenv-pyenv] discovery can still be in effect if virtualenv is already configured to use it (via the `VIRTUALENV_DISCOVERY` environment variable or the `discovery` config setting).

## Examples

* Set the `fallback` operation mode via a config file:

  ```ini
  [tox]
  min_version = 4.0
  requires = tox-pyenv-redux

  [testenv]
  pyenv_discovery = fallback
  deps = pytest
  commands = pytest {posargs}
  ```

* Disable the plugin via command line arguments:

  ```shell
  tox run -x testenv.pyenv_discovery=off
  ```


[tox]: https://tox.wiki/
[pyenv]: https://github.com/pyenv/pyenv
[virtualenv-pyenv]: https://github.com/un-def/virtualenv-pyenv
[virtualenv-pyenv-docs-operation-mode]: https://github.com/un-def/virtualenv-pyenv/blob/master/README.md#operation-mode