semvec/pypi-packages huggingface dataset:
streamlit-extented 0.1.0
Расширение для работы с базами данных через pyodbc с поддержкой JSON
Requires Python: >=3.7

# streamlit-extented

streamlit-extented — это простое расширение для работы с базами данных через pyodbc.

## Установка



pip install streamlit-extented

## Использование



from streamlit_extented import perform_query

connection_str = "DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;DATABASE=mydb;UID=user;PWD=pass"
query = "SELECT * FROM my_table"
result = perform_query(connection_str, query, fetch_results=True, return_json=True)
print(result)
xbox-switch-bridge 0.4.0
Bridge Xbox controller inputs to Nintendo Switch
Requires Python: >=3.9

# Xbox Switch Bridge

Use your Xbox controller with Nintendo Switch via Raspberry Pi.

## Requirements

- Raspberry Pi (tested on Pi 4 and Pi 3B+)
- Bluetooth capability
- Python 3.7+
- Root access for Bluetooth operations
- Xbox Controller (tested with Xbox Series X/S controllers)
- Nintendo Switch

## System Dependencies

Before installing, make sure you have the required system packages:

```bash
sudo apt-get update
sudo apt-get install -y python3-pip python3-dev bluetooth bluez bluez-tools raspberrypi-kernel-headers dkms git
```

### Installing xpadneo Driver
The xpadneo driver is required for Xbox wireless controller support. The installation script will handle this automatically, but if you want to install it manually:

```bash
# Clone the repository
git clone https://github.com/atar-axis/xpadneo.git

# Navigate to the directory
cd xpadneo

# Install
sudo ./install.sh

# Reboot is required after installation
sudo reboot
```

## Installation

1. Install the package:
```bash
sudo pip install xbox-switch-bridge
```

2. Run the post-installation setup:
```bash
sudo xbox-switch-bridge --install
```

This will:
- Install xpadneo driver if not present
- Configure Bluetooth settings
- Install and enable the systemd service
- Set up required permissions

## Usage

### As a Service
Once installed, the bridge will start automatically on boot. You can manage it with:

```bash
sudo systemctl start xbox-switch-bridge   # Start the service
sudo systemctl stop xbox-switch-bridge    # Stop the service
sudo systemctl status xbox-switch-bridge  # Check status
```

### Manual Usage
Run directly (requires root):

```bash
sudo xbox-switch-bridge --run
```

## Troubleshooting

1. Check the logs:
```bash
sudo journalctl -u xbox-switch-bridge
```

2. Verify Bluetooth:
```bash
sudo systemctl status bluetooth
bluetoothctl show
```

3. Check xpadneo driver:
```bash
dkms status | grep xpadneo
ls /sys/module/xpadneo
```

4. Common issues:
- Controller not detected: Ensure it's in pairing mode and xpadneo is properly installed
- Switch not connecting: Open the "Change Grip/Order" menu
- Permission errors: Make sure you're running as root
- Controller not responding: Try re-pairing the controller or check xpadneo installation

## Uninstallation

```bash
sudo xbox-switch-bridge --uninstall
sudo pip uninstall xbox-switch-bridge
```

To also remove xpadneo:
```bash
sudo dkms remove xpadneo/latest --all
```

## License

MIT
streamlit-dimensions1 0.0.4
A simple component that returns the dimensions of the container where it is rendered.
Requires Python: >=3.6

# Streamlit - Dimensions

A simple streamlit component that returns the dimensions of the container where it is rendered.
This may be used to format other components that require the dimensions of the container.

## Notes and Limitations

If multiple `st_dimensions` components will be used in the app, each component must be given a unique `key` value. Otherwise, the `key` argument is not required.

The current version only provides the width of the container in pixels.

## Installation

```shell script
pip install streamlit-dimensions1
```

## Example

```python
import streamlit as st
from streamlit_dimensions1 import st_dimensions

st.set_page_config(layout="wide")

st.title("Main Dimensions")
st.write(st_dimensions(key="main"))

with st.sidebar:
    st.title("Sidebar Dimensions")
    st.write(st_dimensions(key="sidebar"))

```

![demo-app](img/demo-app.png)
lightning-proxies 0.1.1
A Python client for managing Lightning Proxies API
Requires Python: >=3.6

# LightningProxiesAPI

[![PyPI version](https://badge.fury.io/py/lightning-proxies.svg)](https://pypi.org/project/lightning-proxies/)

`LightningProxiesAPI` is a Python package for interacting with Lightning Proxies' API, providing access to residential, datacenter, IPv6, mobile, and ISP proxy services. This library simplifies the integration of proxy management, offering functionalities such as adding/removing proxies, retrieving plan details, managing whitelists, and more.

## Features

- **Manage proxies**: Access residential, datacenter, mobile, ISP, and IPv6 proxies.
- **Plan management**: View and manage proxy plans.
- **Whitelisting**: Easily manage IP whitelists for your proxies.
- **Bandwidth**: Monitor and adjust proxy bandwidth usage.
- **Flexible API**: Interact with a wide range of API endpoints for proxy management.

## Installation

You can install the `lightning-proxies` package directly from PyPI using `pip`:

```bash
pip install lightning-proxies
```

## Example usage
```python
from lightning_proxies import LightningProxies

# Initialize the client with your API key
client = LightningProxies(api_key="your_api_key")

# Get residential proxy information using plan ID
plan_id = "648248c31fac1bd9475b61ba"
response = client.get_residential_proxy_info(plan_id)

print(response)
```
## Example: Add an IP to the Whitelist
```python
from lightning_proxies import LightningProxies

# Initialize the client with your API key
client = LightningProxies(api_key="your_api_key")

# Add an IP address to the whitelist for IPv6 proxies
plan_id = "648248c31fac1bd9475b61ba"
ip_address = "1.1.1.1"
response = client.add_ip_to_whitelist(plan_id, ip_address)

print(response)
```
## Documentation
-- soon --

## Contributing 
We welcome contributions! Please fork the repository, create a branch, and submit a pull request. Ensure that all tests pass and that your code adheres to the project's coding standards.

### Steps for Contributing:
1. Fork the repository.
2. Create a new feature branch.
3. Make your changes and commit them.
4. Push your changes to your fork.
5. Open a pull request to the main branch.
autohack 0.153
This package does automated vulnerability enumeration and recommends exploits.
Requires Python: >=3.10

# Auto Hack
* note the professional version is being beta tested.

## This does automated vulnerability enumeration and recommends exploits.<br><br>

### How to Run

* [Install Docker](https://docs.docker.com/engine/install/)


* Create AutoHack Docker container
  ```
  docker run -it --net=host -v ${PWD}/portal:/root/portal hdizzle/autohack 
  ```
  Command above does the following:
  * creates Docker container based on the [AutoHack image](https://registry.hub.docker.com/r/hdizzle/autohack)
  * mounts a folder named `portal` in current directory
    * this allows us to persist the AutoHack results once the <br>container is destroyed
  * allows us to access the terminal of the AutoHack container


* Run AutoHack
  ```
  autohack -i <some ip address>
  ```
wagtail-photo-gallery 0.2.0
An image gallery plugin for Wagtail
Requires Python: >=3.8

# Wagtail Photo Gallery

With this extention you are just a few steps away from a simple photo gallery for your wagtail page.

![wagtail-photo-gallery adds easy photo management to wagtail.](gallery_screenshot.png)

The gallery is configurable with the wagtail admin panel and is suited for large amounts of photos.

The key idea of this package is to store and manage photos independently of the usual wagtail images.
Instead, all photos are assigned to albums and can be managed by a drag-and-drop sorting widget (which also supports item selection for mass-dragging and deletion).

To organize your photos, a `Collection` is assigned to each album, by default the _Root_ `Collection` is used.
Embedding the photo gallery within a `StreamField` is now done by adding a `GalleryBlock` with reference to the desired `Collection`.

## Installation

```sh
pip install wagtail-photo-gallery[pillow]
# or
pip install wagtail-photo-gallery[pillow-simd]
```

If you need the fastest possible image uploading (Faster resizing) use `pillow-simd`.

## Settings

Add the following to your settings *(base.py)*:

```py
INSTALLED_APPS = [
    #...
    'wagtail_photo_gallery',
    'wagtail.contrib.routable_page',
    #...
]
```

Update your database structure using (remember to create a **backup first**):

```sh
./manage.py migrate
```

## Example

Once you've installed this addon and configured the settings as above,
all you need to do is to inherit from `ImageGalleryMixin` and to add `GalleryBlock` to your `StreamField`.

```py
# models.py

from wagtail.models import Page
from wagtail.fields import StreamField

from wagtail.admin.panels import FieldPanel

from wagtail_photo_gallery.blocks import GalleryBlock
from wagtail_photo_gallery.mixins import ImageGalleryMixin

class YourWagtailPage(ImageGalleryMixin, Page):
    
    content = StreamField([
        #...
        ("gallery", GalleryBlock()),
        #...
    ], blank=True)
    
    # content panel for the CMS (same as always)
    content_panels = Page.content_panels + [
        FieldPanel("content"),
    ]
```

If you want to use the pre-defined *CSS-flexbox* layout for the albums,
you need to include the following css code in your gallery page (`YourWagtailPage`)

```
{% include 'wagtail_photo_gallery/extra_css.html' %}
```

### Minimal template example

```
{% extends "base.html" %}

{% load wagtailcore_tags %}
{% load static %}

{% block body_class %}template-homepage{% endblock %}

{% block content %}
    {% for block in page.content %}
        {% include_block block %}
    {% endfor %}
{% endblock content %}

{% block extra_css %}
    {% include 'wagtail_photo_gallery/extra_css.html' %}
{% endblock %}
```
pybirdbuddy 0.0.19
A library to query data about a Bird Buddy smart bird feeder
Requires Python: >=3.10

# pybirdbuddy

```python
import asyncio
import pprint

from birdbuddy.client import BirdBuddy

bb = BirdBuddy("user@email.com", "Pa$$w0rd")

# Using coroutines with async/await:
async def async_test():
    await bb.refresh()
    pprint.pprint(bb.feeders)

# Without async/await, including from a top-level module:
result = asyncio.run(bb.refresh())
pprint.pprint(result)
pprint.pprint(bb.feeders)
```

Note: only password login is supported currently. Google and other SSOs are not supported. If
you've already set up your Bird Buddy with SSO, one option could be to register a new account with
a password, and then redeem an invite code to your Bird Buddy under the new account. Some fields
will be missing (such as firmware versions and off-grid status).

The `feeders` property will be an array of feeders with the following fields:

```graphql
fragment ListFeederFields on FeederForPrivate {
  battery {
    charging    # Boolean
    percentage  # Int (93)
    state       # String (enum: "HIGH")
  }
  food {
    state       # String (enum: "LOW")
  }
  id            # String (UUID)
  name          # String
  signal {
    state       # String (enum: "HIGH")
    value       # Int (rssi: -41)
  }
  state         # String (enum: "READY_TO_STREAM")
  temperature {
    value       # Int
  }
}
```

## Translations

API responses can return translated strings by setting the client's `language_code` property.
Language codes are parsed using [`langcodes`](https://pypi.org/project/langcodes/)

```python
from birdbuddy import BirdBuddy

async def main():
    bb = BirdBuddy
    bb.language_code = "de"
    
    collections = await bb.refresh_collections()
    birds = [c.species.name for c in collections.values()]
    print(birds)
```
KdnEngine 0.7
A simple game engine for 3D games
Requires Python: >=3.8

# 3D Engine Development in Python

## Overview
This project aims to create a 3D Doom-like game engine from the ground up using Python. The engine will support basic 3D rendering, physics, audio, input handling, and potentially its own scripting language.

## Steps

### 1. Define the Scope and Requirements
- **Game Type:** 3D Doom-like FPS
- **Target Platforms:** PC
- **Features:**
  - 3D rendering
  - Physics
  - Audio
  - Input handling
  - Basic AI
  - Level editor

### 2. Set Up the Development Environment
- **Programming Language:** Python
- **IDE:** PyCharm
- **Libraries and Tools:**
  - Pygame (for window management and input handling)
  - PyOpenGL (for 3D rendering)
  - PyBullet (for physics)
  - Pygame.mixer (for audio)

### 3. Core Components
- **Rendering Engine:**
  - Implement a basic rendering loop using PyOpenGL.
  - Load and render 3D assets.
  - Handle shaders and materials.
- **Physics Engine:**
  - Implement collision detection and response using PyBullet.
- **Audio Engine:**
  - Load and play sound effects and music using Pygame.mixer.
- **Input Handling:**
  - Capture and process user input (keyboard, mouse).
- **Scene Management:**
  - Implement a scene graph to manage game objects.
  - Handle object transformations and hierarchies.

### 4. Additional Features
- **Scripting:**
  - Integrate a simple scripting language (optional).
- **Networking:**
  - Implement basic networking for multiplayer support (optional).
- **UI System:**
  - Create a system for rendering and managing UI elements.
- **Animation System:**
  - Implement skeletal and sprite animations.

### 5. Tools and Editors
- Develop tools for asset import/export.
- Create a level editor for designing game levels.
- Implement debugging and profiling tools.

### 6. Testing and Optimization
- Test the engine with sample projects.
- Optimize performance (rendering, physics, memory usage).
- Fix bugs and improve stability.

### 7. Documentation and Support
- Write comprehensive documentation for engine features and usage.
- Provide support and updates for users.

## Directory Structure
```
docker/
├── Dockerfile
├── docker-compose.yml
doomlike_engine/
├── __init__.py
├── main.py
├── rendering.py
├── physics.py
├── audio.py
├── input.py
├── scene.py
├── ui.py
├── animation.py
├── scripting.py
assets/
├── models/
├── textures/
├── sounds/
├── levels/
tools/
├── level_editor.py
├─��� asset_importer.py
tests/
├── __init__.py
├── test_rendering.py
├── test_physics.py
├── test_audio.py
├── test_input.py
├── test_scene.py
├── test_ui.py
├── test_animation.py
├── test_scripting.py
.gitignore
README.md
requirements.txt
setup.py
```

## Notes
This is a simplified overview, and each step involves significant detail and effort. Start with a minimal viable product (MVP) and iteratively add features and improvements.
teqpflsh 0.0.4
Flash calculations with guesses powered by K-D trees
Requires Python: >=3.12

# README

Routines for making use of superancillary equations and K-D trees to make iterative calculations with thermodynamic models much faster and much more reliable.

Much more information in the docs.

## Docs

Build of docs follow the instructions in the ``doc`` folder

## Run tests

```
mkdir bld
cd bld
cmake .. -DTEQPFLSH_TESTS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
```
All tests should pass on all platforms

## Development information

### How to do incremental rebuilds with nanobind

See https://nanobind.readthedocs.io/en/latest/packaging.html#step-5-incremental-rebuilds ::

```
pip install nanobind scikit-build-core[pyproject]
pip install --no-build-isolation -ve .
```
nonebot-plugin-imgexploration 0.4.4
Nonebot2 插件，Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
Keywords: nonebot nonebot-plugin imagesearch

<div align="center">
<a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>

# nonebot_plugin_imgexploration 

_✨ [Nonebot2](https://github.com/nonebot/nonebot2) 插件，Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图  ✨_



</div> 

**需要能稳定访问Google等网站的代理**  
## 一.**安装**
### 1.使用nb-cli安装

```
nb plugin install nonebot-plugin-imgexploration
```

或其他任意加载方式
### 2.需要字体    
```
HarmonyOS_Sans_SC_Regular.ttf  
HarmonyOS_Sans_SC_Bold.ttf  
HarmonyOS_Sans_SC_Light.ttf
```
https://developer.harmonyos.com/cn/docs/design/des-guides/font-0000001157868583   
安装到系统字体即可

### 3.依赖  (nb-cli或pip安装无需配置依赖)
<details>
<summary>展开/收起</summary>

```
pip install -r requirements.txt
```

</details>

## 二.**配置**  
### 1.env中的配置
```
#代理端口号(不使用本地代理可缺省，例如：使用软路由透明代理、程序运行在境外)
proxy_port=7890  

#saucenao apikey 在https://saucenao.com/user.php?page=search-api注册获取
saucenao_apikey=xxxxx 

#Google Cookies json文件路径，建议使用Chrome插件Cookie-Editor复制导出json并手动存入文件
google_cookies_filepath="C:\Users\...\google_cookies.json"

#等待用户回复的超时时间(可选)
#注意，nonebot2新版本该配置项格式有变化！请根据nonebot版本参照文档 https://nonebot.dev/docs/api/config#Config-session-expire-timeout
#SESSION_EXPIRE_TIMEOUT=180
#SESSION_EXPIRE_TIMEOUT=PT3M 
```  
## 三.**使用**  
### 
```
/搜图
/搜图 <图片>
```  
### **使用示例**   

<div align=center>
    <img decoding="async" align="middle" src="https://p.inari.site/usr/369/63b6cfe0cd8a8.jpg" width="80%">
</div>

### 搜图结果

<div align=center>
    <img decoding="async" align="middle" src="https://p.inari.site/usr/369/63b6cd6f24abc.jpg" height="1280px">
</div>