semvec/pypi-packages huggingface dataset:
Siena-MES 18
Multimedia Environment for Students

# Siena-MES : Multimedia Environment for Students
This is a pure python implementation of [gatech-csl/jes]([https://github.com/vuejs/vue](https://github.com/gatech-csl/jes)) with the goal to maintain API Compatibility between the implementations. It contains enhancements from the base implementations which are listed in further sections below. 
This is a development environment designed for [Media Computation](http://web.eecs.umich.edu/~mjguz/mediacomp/mediaComp-teach/). The package can be imported into any Python 3.11 envornment to allow students to use the Python programming language to manipulate images, sounds, and videos.  The current API documentation is consistent with the usage of JES in the book, and the subset of functions implemented so far is published here. 
The library is developed for The Introduction to Computer Science (CSIS 110) course at Siena College and the college's high school CS programs.
PySide6-Fluent-Widgets-TextInputDialog 0.0.3
It provides a simple way to create text input dialogs.
Requires Python: >=3.6, <3.12
Keywords: PySide6,Fluent-Widgets,Widget,Python


## PySide6-Fluent-Widgets-TextInputDialog

TextInputDialog is a library for creating text input dialogs based on PySide6-Fluent-Widgets. It provides a simple way to create text input dialogs.


### Usage

```python
from qfluentwidgets_textinputdialog import TextInputDialog

# Set the language (default is English)
TextInputDialog.setLanguage(TextInputDialog.Language.ENGLISH)

# Get the text input
text, success = TextInputDialog.getText(parent, title=..., placeholder=..., yesButton=..., noButton=..., mode=...)
```

### Parameters

- `parent`: The parent widget.
- `title`: The title of the dialog (optional, default is "Please enter").
- `placeholder`: The placeholder text for the input field (optional).
- `yesButton`: The text for the confirm button (optional, default is "Confirm").
- `noButton`: The text for the cancel button (optional, default is "Cancel").
- `mode`: The input mode (optional, default is LINEEDIT, can be LINEEDIT or TEXTEDIT).

### Example

```python
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton
from qfluentwidgets_textinputdialog import TextInputDialog

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("TextInputDialog Example")
        self.setGeometry(100, 100, 500, 500)

        button = QPushButton("Open Dialog", self)
        button.setGeometry(100, 100, 200, 50)
        button.clicked.connect(self.open_dialog)

    def open_dialog(self):
        text, success = TextInputDialog.getText(self, title="Please enter your name", placeholder="Enter your name", yesButton="OK", noButton="Cancel")
        if success:
            print("Your name is:", text)

app = QApplication([])
window = MainWindow()
window.show()
app.exec()
```

### Version

Current version: 0.0.2
PyQt6-Fluent-Widgets-TextInputDialog 0.0.3
It provides a simple way to create text input dialogs.
Requires Python: >=3.6, <3.12
Keywords: PyQt6,Fluent-Widgets


## PyQt6-Fluent-Widgets-TextInputDialog

TextInputDialog is a library for creating text input dialogs based on PyQt6-Fluent-Widgets. It provides a simple way to create text input dialogs.


### Usage

```python
from qfluentwidgets_textinputdialog import TextInputDialog

# Set the language (default is English)
TextInputDialog.setLanguage(TextInputDialog.Language.ENGLISH)

# Get the text input
text, success = TextInputDialog.getText(parent, title=..., placeholder=..., yesButton=..., noButton=..., mode=...)
```

### Parameters

- `parent`: The parent widget.
- `title`: The title of the dialog (optional, default is "Please enter").
- `placeholder`: The placeholder text for the input field (optional).
- `yesButton`: The text for the confirm button (optional, default is "Confirm").
- `noButton`: The text for the cancel button (optional, default is "Cancel").
- `mode`: The input mode (optional, default is LINEEDIT, can be LINEEDIT or TEXTEDIT).

### Example

```python
from PyQt6.QtWidgets import QApplication, QMainWindow, QPushButton
from qfluentwidgets_textinputdialog import TextInputDialog

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("TextInputDialog Example")
        self.setGeometry(100, 100, 500, 500)

        button = QPushButton("Open Dialog", self)
        button.setGeometry(100, 100, 200, 50)
        button.clicked.connect(self.open_dialog)

    def open_dialog(self):
        text, success = TextInputDialog.getText(self, title="Please enter your name", placeholder="Enter your name", yesButton="OK", noButton="Cancel")
        if success:
            print("Your name is:", text)

app = QApplication([])
window = MainWindow()
window.show()
app.exec()
```

### Version

Current version: 0.0.3
cbebirr 0.0.19
CBEBirr integration
Keywords: python,cbebirr,payment,ethiopia,CBE,Commercial bank of Ethiopia


# CBEBirr integration

```python
import cbebirr

if __name__ == '__main__':
    cbebirr.push_ussd(
        thirdPartyID='THIRD_PARTY_ID', 
        primaryPartyIdentifier='PHONE',
        receiverPartyIdentifier='CUSTOMER_ID',
        intiatorIdentifier='IDENTIFIER',
        securityCredential='SECURITY_CREDENTIAL',
        posDeviceID='POS_DEVICE_ID', 
        shortCode='SHORT_CODE', 
        amount='10', 
        password='PASSWORD',
        timestamp='TIME_STAMP',
        resultURL='RETURN_URL', )

    # See PyCharm help at https://www.jetbrains.com/help/pycharm/

```
zsdk 1.1.3.1
Unofficial Python SDK for Zscaler public API endpoints.
Requires Python: >=3.9

# Zscaler SDK (zsdk)

The Zscaler SDK (zsdk) is a Python library designed to provide an easy and programmatic way to interact with publicly available Zscaler API endpoints. With zsdk, developers can manage and automate tasks across Zscaler's suite of security services, including Zscaler Internet Access (ZIA), Zscaler Private Access (ZPA), and Zscaler Digital Experience (ZDX).

## Features

- Comprehensive coverage of Zscaler's public API.
- Easy-to-use Pythonic interfaces.
- Examples and guides to get started quickly.
- Easy to use Docker files to build container with zsdk pre-installed.

## Installation

You can install zsdk via pip:

```bash
pip install zsdk
```

## Getting Started

Here's a quick example to get you started with ZIA:

```python
from zsdk.zia import ZIA
zscaler = ZIA(username='YOUR_USERNAME', password='YOUR_PASSWORD', api_key='YOUR_API_KEY', cloud_name="zscaler.net")
print(zscaler.locations.list())
```

See the [examples](https://github.com/SYNically-ACKward/zsdk/tree/main/examples) directory for more comprehensive examples and the [documentation](https://help.zscaler.com/zia/getting-started-zia-api) for detailed API reference.

## Using Docker

See the [Docker instruction and discussion](docs/docker.md) documentation.  We provide instructions on how to load 
zsdk into a container using either this repos' version or the PyPi hosted version of zsdk.  We also provide 
instructions on how to do so using `docker` or `docker-compose` methods.

## Support and Contributions

For questions, issues, or contributions, please see the [CONTRIBUTING.md](https://github.com/SYNically-ACKward/zsdk/blob/1bfe49df609474e7820274460238fac2288d3964/CONTRIBUTING.md) file.

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/SYNically-ACKward/zsdk/blob/1bfe49df609474e7820274460238fac2288d3964/LICENSE) file for details.
midjpy 1.0.4
Python client for the MIDJ API


# MIDJPy

The MIDJPy package provides a simple and efficient way to interact with the MIDJ API. Utilize the power of MIDJ with just a few lines of Python code in your applications.

## Prerequisites

To use this package, you need to have a [midj.app subscription](https://midj.app/pricing).

## Features

- Generate content with `generate` method.
- Fetch content using the trigger ID with `get_by_trigger` method.
- Generate a variation of content with `generate_variation` method.
- Upscale images with `upscale_image` method.

## Installation

To install the MIDJPy package, use pip:

```bash
pip install midjpy
```

## Usage

Start by importing and initializing the MIDJ class:

```python
from midjpy.midj import MIDJ

midj = MIDJ(authorization='YOUR_AUTHORIZATION_TOKEN')
```

### Methods

#### For Subscription Users

##### `generate(prompt)`

Generate content based on a provided prompt:

```python
response = midj.generate('Hello, world!')
print(response)
```

##### `generate_variation(index, trigger_id, msg_hash)`

Generate a variation of content:

```python
response = midj.generate_variation(1, 'trigger_id_here', 'msg_hash_here')
print(response)
```

##### `upscale_image(index, trigger_id, msg_hash)`

Upscale an image:

```python
response = midj.upscale_image(1, 'trigger_id_here', 'msg_hash_here')
print(response)
```

#### For Pre-paid Users

##### `pregenerate(prompt)`

Generate content based on a provided prompt:

```python
response = midj.pregenerate('Hello, world!')
print(response)
```

##### `pregenerate_variation(index, trigger_id, msg_hash)`

Generate a variation of content:

```python
response = midj.pregenerate_variation(1, 'trigger_id_here', 'msg_hash_here')
print(response)
```

##### `preupscale_image(index, trigger_id, msg_hash)`

Upscale an image:

```python
response = midj.preupscale_image(1, 'trigger_id_here', 'msg_hash_here')
print(response)
```

#### Common API

##### `get_by_trigger(trigger_id)`

Fetch generated content by its trigger ID:

```python
response = midj.get_by_trigger('trigger_id_here')
print(response)
```

### Configuration

The `MIDJ` constructor accepts a configuration dictionary:

```python
config = {
    'baseURL': 'https://api.midj.app',  # Optional. This is the default.
    'authorization': 'YOUR_AUTHORIZATION_TOKEN'  # Required.
}

midj = MIDJ(config)
```

> ⚠️ Always keep your authorization token secret. Do not expose it in client-side code.

### Error Handling

All methods return an error object in case of any issues:

```python
response = midj.generate('Hello, world!')

if 'error' in response:
    print('Error:', response['error'])
else:
    print('Generated Content:', response)
```

## Contributing

For any bugs or feature requests, please open an issue on GitHub.

Please replace `'YOUR_AUTHORIZATION_TOKEN'` with your actual MIDJ API authorization token.
dconfig 1.5.0
A Django config for the Django framework.

Dconfig - Bootstrap Configuration for Django project
======

[![Downloads](https://img.shields.io/travis/shinznatkid/django-config.svg)](https://travis-ci.org/shinznatkid/django-config/)
[![Downloads](https://img.shields.io/pypi/dm/dconfig.svg)](https://pypi.python.org/pypi/dconfig/)
[![Downloads](https://img.shields.io/pypi/v/dconfig.svg)](https://pypi.python.org/pypi/dconfig/)
[![Downloads](https://img.shields.io/badge/license-MIT-blue.svg)](https://pypi.python.org/pypi/dconfig/)

Dconfig is configuration by console for the Django web
development framework.

Support Django >= 2.2

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

1. Python package

        pip install dconfig

2. Add 'dconfig' to INSTALLED_APPS:

        'dconfig',

Usage
--------

`python manage.py conf`

Help
--------

`python manage.py conf`

`>>> help`

Wizard Setup
--------

`python manage.py conf`

`>>> init`

**WARNING: this action will wipeout all data in settings.py**
st-star-rating 0.0.6
Streamlit Component for Star Ratings
Requires Python: >=3.6

Streamlit Star Rating Component
===

This streamlit component adds a star selector to Streamlit Apps. 

It implements the Baseui Rating implementation: https://baseweb.design/components/rating/

Installation
-----------

    $ pip install st-star-rating


Usage
------------

## Import the Component

    $ from streamlit_star_rating import st_star_rating

    $ stars = st_star_rating("Please rate you experience", maxValue=5, defaultValue=3, key="rating")

maxValue : Determines how many Stars will be shown
defaultValue: Amount of preselected Stars


## Choose between a dark and light theme

    $ stars = st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", dark_theme = True )

## Read-Only Mode

    Users can not change the amout of selected stars

    st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", read_only = True )


## Emojis instead of Stars
Note: The maximum value is limited to 5 when using emojis instead of stars.

    st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", emoticons = True )


## Update 2023-06


It is possible to add a reset button to the component. The reset button will reset the rating to the default value.

    st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True )

Furthermore, the label of the button can be determined by setting the resetLabel parameter. Note: HTML tags will be interpreted.

    st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True, resetLabel = "Reset" )

Additionally it is possible to provide custom CSS to the component. The CSS can be provided as string and will be rendered in `<style>` tags.

    st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True, resetLabel = "Reset", customCSS = "div {background-color: red;}" )


## Update 2023-10

Added an on_click parameter. Using this parameter enables user to execute a python function that gets executed once the value component gets clicked.
trinary-tree 0.1.23
Python package for the Trinary Tree algorithm
Requires Python: >=3.6

# Trinary Tree

[![PyPI version](https://badge.fury.io/py/trinary_tree.svg)](https://pypi.org/project/trinary_tree/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/henningzakrisson/trinary_tree/blob/main/LICENSE)

The Trinary Tree is a algorithm based on the Classification and Regression Tree (CART).
It provides a novel way to handle missing data by assigning missing values to a third node in the originally binary 
split of the CART.
For details on the algorithm, se the arXiV preprint at https://arxiv.org/abs/2309.03561

Note that this code is in no way optimized for speed and
training of the trees takes a lot of time compared to other tree packages.
The package is a proof-of-concept and it is recommended
to re-implement the algorithm if it is to be used in settings where computational speed
matters.
## Installation

You can install the `trinary_tree` package via pip:

```bash
pip install trinary_tree
```
or via GitHub
````bash
pip install git+https://github.com/henningzakrisson/trinary_tree.git
````

## Usage example
Fitting a Trinary Tree and a Binary Tree using the majority
rule algorithm to a dataset with missing values.

````python
# Import packages
from trinary_tree import BinaryTree, TrinaryTree
from sklearn.model_selection import train_test_split
import numpy as np

# Generate data
rng = np.random.default_rng(seed=11)
X = rng.normal(size=(1000,2))
mu = 10*(X[:,0]>0) + X[:,1]*2
y = rng.normal(mu,1)

# Censor data
censor = rng.choice(np.prod(X.shape), int(0.2*np.prod(X.shape)), replace=False)
X_censored = X.flatten()
X_censored[censor] = np.nan
X_censored = X_censored.reshape(X.shape)

# Train trees
X_train, X_test, y_train, y_test = train_test_split(X_censored,y)
tree_binary = BinaryTree(max_depth = 1)
tree_trinary = TrinaryTree(max_depth = 1)
tree_binary.fit(X_train,y_train)
tree_trinary.fit(X_train,y_train)

# Calculate MSE
mse_binary = np.mean((y_test - tree_binary.predict(X_test))**2)
mse_trinary = np.mean((y_test - tree_trinary.predict(X_test))**2)
print(f"Binary tree MSE: {mse_binary:.3f}")
print(f"Trinary tree MSE: {mse_trinary:.3f}")
````

## Contact
If you have any questions, feel free to contact me
[here](mailto:henning.zakrisson@gmail.com).
encant 0.0.5
Uber simple python version management

# encant: Uber Simple Python Version Management

----
[![image](https://img.shields.io/pypi/v/encant.svg)](https://pypi.python.org/pypi/encant)

Built in spite of [pyenv](https://github.com/pyenv/pyenv) and inspired by [rye](https://github.com/mitsuhiko/rye), encant does one thing and one thing only: downloads standalone python builds. Builds come from indygreg's [repo](https://github.com/indygreg/python-build-standalone).

## Usage

install encant

```bash
pipx install encant
```

add a python version (or two)

```bash
$ encant add 3.10
major.minor only version detected, pulling latest: 3.10.13
Successfully added 3.10.13 to ~/.snakes/3.10.13
```

That's it! You can now use python however you need to, e.g.:

```bash
~/.snakes/3.10.13/bin/python3 -m venv .venv
```