semvec/pypi-packages huggingface dataset:
SRW 0.1
Objects to make your own realistic games, simulators, and every thing you want
License: MIT

# Simulator of Realistic Worlds library
Simulator of Relistic worlds library is a project that will have all the particles to make a simulation, game and every thing you want

# How can I help
You can help if you are physical, mathematical or programmer

If you don' t now any of that three you can help using the project, talking about it to people you now or telling me what do you think about it
SRM 0.1
Objects to make your own realistic games, simulators, and every thing you want
License: MIT

# Simulator of Realistic Worlds library
Simulator of Relistic worlds library is a project that will have all the particles to make a simulation, game and every thing you want

# How can I help
You can help if you are physical, mathematical or programmer

If you don' t now any of that three you can help using the project, talking about it to people you now or telling me what do you think about it
yun-ir 1.0
A Python client for Yun.ir URL shortener API
License: MIT

# Yun.ir Python Client

A Python client for the [Yun.ir](https://yun.ir/) URL shortener API.

## Installation

Install with `pip`:

```sh
pip install yun-ir
```

## Usage

```python
from yun import Yun

login = Yun.Api('YOUR tOKEN')
result = login.short('title', 'url')

print(result)
```
## API

`yun_ir.Yun(token: str)`

Create a new Yun.ir client instance.

`token`: Your Yun.ir API token.

`yun_ir.Yun.short(title: str, url: str) -> dict`

Shorten a URL using Yun.ir API.

`title`: Title for the URL


`url`: URL to shorten

Returns:

A dictionary containing the shortened URL, or an error message if the request fails.
tombulled-annotate 0.1.15
Python Annotation System
License: MIT
Requires Python: >=3.8,<4.0
Keywords: python,annotate,annotation,marker,label,mark,tag

# annotate
Python Annotation System

## About
Annotations are tags that store object metadata (e.g. for functions/classes)

## Installation
### From PyPI
```console
pip install tombulled-annotate
```
### From GitHub
```console
pip install git+https://github.com/tombulled/annotate@main
```

## Usage

### Marker
An annotation with a fixed value
```python
import annotate

@annotate.marker
def deprecated() -> bool:
    return True

@deprecated
def foo():
    pass
```

```python
>>> annotate.get_annotations(foo)
{'deprecated': True}
```

### Annotation
An annotation with a configurable value
```python
import annotate

@annotate.annotation
def metadata(*, author: str, version: str) -> dict:
    return dict(
        author = author,
        version = version,
    )

@metadata(author='sam', version='1.0.1')
def foo():
    pass
```

```python
>>> annotate.get_annotations(foo)
{'metadata': {'author': 'sam', 'version': '1.0.1'}}
```

## Repeatable Annotation
An annotation that can be used to annotate the same object multiple times
```python
import annotate

@annotate.annotation(repeatable=True)
def tag(tag: str, /) -> str:
    return tag

@tag('awesome')
@tag('cool')
@tag('funky')
def foo():
    pass
```

```python
>>> annotate.get_annotations(foo)
{'tag': ['funky', 'cool', 'awesome']}
```

## Inherited Annotation
An annotation that gets added to subclasses of an annotated class
```python
import annotate

@annotate.annotation(inherited=True)
def identifier(identifier: str, /) -> str:
    return identifier

@identifier('abc')
class Class:
    pass

class Subclass(Class):
    pass
```

```python
>>> annotate.get_annotations(Class)
{'identifier': 'abc'}
>>> annotate.get_annotations(Subclass)
{'identifier': 'abc'}
```

## Targetted Annotation
An annotation that targets objects of specific types
```python
import annotate
import types

@annotate.annotation(targets=(types.FunctionType,))
def description(description: str, /) -> str:
    return description

@description('A really cool function')
def foo():
    pass
```

```python
>>> annotate.get_annotations(foo)
{'description': 'A really cool function'}
```

### Non-Stored Annotation
```python
import annotate

@annotate.annotation(stored=False)
def author(name: str, /) -> None:
    pass

@author('Tim')
def foo():
    pass
```

```python
>>> annotate.get_annotations(foo)
{}
```
chatgpt-api-cli 0.2.1
A CLI wrapper for OpenAI's ChatGPT API
License: MIT
Requires Python: >=3.11

# ChatGPT CLI
[![PyPI version](https://badge.fury.io/py/chatgpt-api-cli.svg)](https://badge.fury.io/py/chatgpt-api-cli)
[![Semantic Release](https://github.com/AumitLeon/chatgpt-cli/actions/workflows/semantic-release.yaml/badge.svg?branch=main)](https://github.com/AumitLeon/chatgpt-cli/actions/workflows/semantic-release.yaml)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


A simple python CLI wrapper for the [ChatGPT API](https://platform.openai.com/docs/guides/chat/introduction). 

## Installation
```
$ pip install chatgpt-api-cli
```

## Setup
```
$ chatgpt init "your openai API key"
```

## Usage

### Single prompts:
```
$ chatgpt prompt "Explain the current state of the economy as if you're Christopher Moltisanti from the Sopranos"


"Listen up, Tony. The economy? Fuggedaboudit. It's in the shitter. The recession's got us all by the balls, and businesses are falling like dead flies. The GDP's down, unemployment's up - it's a real shitshow. People are struggling just to make ends meet, while the fat cats on Wall Street keep raking in the dough. And we all know who's responsible for this mess - the damn politicians and their crooked deals. I'm telling you, Tone, this whole system is screwed up, and it's getting worse every day. It's enough to make a guy wanna start his own damn business, just so he can make a buck without getting screwed over by the man."
```

### Continuous chat:
```
$ chatgpt chat
To exit, type `exit` or press CTRL+C

You: why did the chicken cross the road?
ChatGPT: As an AI language model, I don't have access to the context as to why the chicken might cross the road. However, the most common answer to that age-old question has been "to get to the other side."
```
qtpy-led 0.1.2
Simple LED widget for QyPt
License: MIT
Requires Python: >=3.8,<4.0

# qtpy_led
Simple LED widget for QtPy.  
Forked from [pyqt_led](https://github.com/Neur1n/pyqt_led) by Neur1n and modified to work with QtPy.

![on](./screenshots/on.png)
![off](./screenshots/off.png)

## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Tips](#tips)
- [License](#license)

## Installation
### pip
```
$ pip install qtpy-led
```

### poetry
```
$ poetry install
```

## Usage
The following example is also provided in the package, and will result in the screenshots shown above.

```python
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QApplication
from qtpy.QtWidgets import QGridLayout
from qtpy.QtWidgets import QWidget
from qtpy_led import Led
import numpy as np
import sys


class Demo(QWidget):
    def __init__(self, parent=None):
        QWidget.__init__(self, parent)
        self._shape = np.array(["capsule", "circle", "rectangle"])
        self._color = np.array(
            ["blue", "green", "orange", "purple", "red", "yellow"]
        )
        self._layout = QGridLayout(self)
        self._create_leds()
        self._arrange_leds()

    def keyPressEvent(self, e):
        if e.key() == Qt.Key_Escape:
            self.close()

    def _create_leds(self):
        for s in self._shape:
            for c in self._color:
                exec(
                    'self._{}_{} = Led(self, on_color=Led.{}, \
                      shape=Led.{}, build="debug")'.format(
                        s, c, c, s
                    )
                )
                exec("self._{}_{}.setFocusPolicy(Qt.NoFocus)".format(s, c))

    def _arrange_leds(self):
        for r in range(3):
            for c in range(6):
                exec(
                    "self._layout.addWidget(self._{}_{}, {}, {}, 1, 1, \
                      Qt.AlignCenter)".format(
                        self._shape[r], self._color[c], r, c
                    )
                )
                c += 1
            r += 1


app = QApplication(sys.argv)  # type: ignore
demo = Demo()
demo.show()
sys.exit(app.exec_())

```

## Tips
- If you want to be able to toggle the LED, then either use `setEnable(True)` or pass an empty string to the `build` argument in Led.
- The `status_changed` signal will emit a boolean when the LED's state has changed.
- Currently, the only way to shrink the LED beyond the default size is to use `setFixedSize` 

## License

[MIT License](LICENSE). Copyright (c) 2023 crash8229.
mediate 0.1.8
Middleware for every occasion
License: MIT
Requires Python: >=3.8,<4.0
Keywords: python,middleware,mediate

# mediate
Middleware for every occasion

## Installation
`mediate` can be installed from [PyPI](https://pypi.org/project/mediate/)
```console
pip install mediate
```

## Usage
### `@middleware`
```python
from mediate import middleware

def shout(call_next, name):
    return call_next(name.upper())

def exclaim(call_next, name):
    return call_next(name + "!")

@middleware(shout, exclaim)
def hello(name):
    print(f"Hello, {name}")
```

```python
>>> hello("sam")
Hello, SAM!
```

### `Middleware`
#### `Middleware.bind`
```python
import mediate

middleware = mediate.Middleware()

@middleware
def shout(call_next, name):
    return call_next(name.upper())

@middleware
def exclaim(call_next, name):
    return call_next(name + "!")

@middleware.bind
def hello(name):
    print(f"Hello, {name}")
```

```python
>>> hello("sam")
Hello, SAM!
```

#### `Middleware.compose`
```python
import mediate

middleware = mediate.Middleware()

@middleware
def shout(call_next, name):
    return call_next(name.upper())

@middleware
def exclaim(call_next, name):
    return call_next(name + "!")

def hello(name):
    print(f"Hello, {name}")

composed_hello = middleware.compose(hello)
```

```python
>>> hello("sam")
Hello, sam
>>> composed_hello("sam")
Hello, SAM!
```
yusholib-yusho 0.0.1
A small utility package
License: MIT
Requires Python: >=3.7

# yusholib
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/yushodev/SnakeCord) ![GitHub issues](https://img.shields.io/github/issues/yushodev/SnakeCord) ![GitHub contributors](https://img.shields.io/github/contributors/yushodev/SnakeCord) ![GitHub](https://img.shields.io/github/license/yushodev/SnakeCord) ![GitHub Repo stars](https://img.shields.io/github/stars/yushodev/SnakeCord?style=social)<br />

Just a python library to make some repetitive things easier and useful things more accessible.

## Installation
### PyPI
PyPI coming soon.
### Build from source
```bash
git clone https://github.com/yushodev/yusholib.git
cd yusholib
python setup.py bdist_wheel
```
Now the wheel is built, we just need to pip install it.
```bash
py -m pip install ./dist/yusholib-<version>-py3-none-any.whl
                            or
pip install ./dist/yusholib-<version>-py3-none-any.whl
```
Make sure to replace `<version>` with the current version of the library.

## Docs
Docs are [here](https://github.com/yushodev/yusholib/wiki)

## Credits
Event System - [timofurrer](https://github.com/timofurrer/observable)