semvec/pypi-packages huggingface dataset:
event-listener-sharp 0.1.0
Have c# event handler
License: MIT
Requires Python: >=3.6

# Event-Driven Framework

## Overview

This package provides a flexible event-driven mechanism designed for applications requiring custom event handling. At its core is the EventListener class, which allows you to easily subscribe, unsubscribe, and invoke listeners (callbacks). This class is particularly suited for event-driven architectures such as GUI applications, asynchronous programming, and custom event handling in various types of software.

## Key Features

- Event Subscription: Easily subscribe single or multiple callbacks to events.
- Event Invocation: Trigger all registered listeners with specified arguments.
- Listener Management: Unsubscribe listeners individually or clear all listeners at once.
- Safe Execution: Ensures that all listeners are invoked safely.

## Installation

To install the package, simply run:

```bash
pip install event_listener
```

## Usage

### Basic Example

```python
from event_listener import EventListener

# Create an event listener instance
event = EventListener(name="SampleEvent")

# Define some example callback functions
def on_event_fired(arg1, arg2):
    print(f"Event fired with arguments: {arg1}, {arg2}")

def on_event_fired_again(arg1, arg2):
    print(f"Event fired again with arguments: {arg1}, {arg2}")

# Subscribe the callbacks to the event
event.subscribe(on_event_fired)
event.subscribe(on_event_fired_again)

# Invoke the event with some arguments
event.invoke("Hello", "World")

# Output:
# Event fired with arguments: Hello, World
# Event fired again with arguments: Hello, World

# Clear all listeners
event.clear()

# Or unsubscribe a specific listener
event.unsubscribe(on_event_fired)
```

### Async listener

```python
from event_listener import EventListenerAsync

# Create an event listener instance
event = EventListenerAsync(name="SampleEvent")

# Define some example callback functions
def on_event_fired(arg1, arg2):
    print(f"Event fired with arguments: {arg1}, {arg2}")

def on_event_fired_again(arg1, arg2):
    print(f"Event fired again with arguments: {arg1}, {arg2}")

# Subscribe the callbacks to the event
event.subscribe(on_event_fired)
event.subscribe(on_event_fired_again)

# Invoke will call every method in separate threads.
event.invoke_async("Hello", "World")
```

License
This project is licensed under the MIT License. See the LICENSE file for details.
102218026upper-case-change 1.0.0
It uppercases whole folder
License: MIT

# Upper-case-change
lowercase to uppercase

## Installation
```pip installupper-case-change```

## How to use it?
Open terminal and type square and then input the sentance

## License

Â© 2020 shubham aggarwal

This repository is licensed under the MIT license. See LICENSE for details.
mobase-stubs 2.6.0.dev1
PEP561 stub files for the mobase Python API.
License: MIT
Requires Python: <4.0,>=3.12

<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/>

[![PyPI version](https://badge.fury.io/py/mobase-stubs.svg)](https://badge.fury.io/py/mobase-stubs)
[![mypy checked](https://camo.githubusercontent.com/34b3a249cd6502d0a521ab2f42c8830b7cfd03fa/687474703a2f2f7777772e6d7970792d6c616e672e6f72672f7374617469632f6d7970795f62616467652e737667)](http://mypy-lang.org/)

# Mypy stubs for the mobase Python API

This repository holds the stubs of the `mobase` python module, which contains the Python plugin
interface for [Mod Organizer 2](https://github.com/modorganizer2/modorganizer) plugins.
It uses the stub files that are produced by https://github.com/ModOrganizer2/pystubs-generation/.

# Installation

Simply install `mobase-stubs` with pip:

    $ pip install mobase-stubs