semvec/pypi-packages huggingface dataset:
doglib 0.1.2
Doglib ist eine Python-Bibliothek, die speziell entwickelt wurde, um Schülerinnen die grundlegenden Arbeitsprinzipien von Python-Bibliotheken auf einfache und unterhaltsame Weise zu erklären.
Requires Python: >=3.6

# doglib
[![PyPi version](https://badgen.net/pypi/v/doglib/?color=blue)](https://pypi.org/project/doglib/) &thinsp; [![GitHub license](https://badgen.net/github/license/Naereen/Strapdown.js)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE) &thinsp; [![Documentation Status](https://readthedocs.org/projects/ansicolortags/badge/?version=latest)](http://ansicolortags.readthedocs.io/?badge=latest)

Doglib ist eine Python-Bibliothek, die speziell entwickelt wurde, um Studierenden die grundlegenden Arbeitsprinzipien von Python-Bibliotheken auf einfache und unterhaltsame Weise zu erklären.

## Installation

Um doglib zu installieren, verwenden Sie pip:

```bash
pip install doglib
```

## Verwendung
Nach der Installation können Sie doglib in Ihrem Python-Code verwenden:
```
import doglib

buddy = Dog(name="Buddy", alter=7, größe="klein")
buddy.bellen()
```

## Funktionen
Doglib stellt eine Vielzahl von Funktionen zur Verfügung, die dazu dienen, die grundlegenden Prinzipien von Python-Bibliotheken zu veranschaulichen. Diese Prinzipien umfassen:

- Nutzung von Funktionen, z.B. `doglib.umrechnung_futtergewicht_in_tassen()`,
- Darstellung von Objekten, z.B. `doglib.Dog()`,
- Interaktion mit Attributen, z.B. `Dog().name`,
- Anwendung von Methoden, z.B. `Dog().bellen()`,
- Einsatz von Subpaketen, z.B. `from doglib import catlib`.


## Beitrag
Wir schätzen und begrüßen Beiträge, die dazu beitragen, doglib sowohl lehrreicher als auch benutzerfreundlicher zu gestalten. Ob es sich um Code-Verbesserungen, Dokumentationsaktualisierungen oder neue Feature-Vorschläge handelt, jede Form der Mitwirkung ist willkommen. Darüber hinaus ermutigen wir Python-Lehrer und -Tutoren, doglib in ihren Lernmaterialien zu verwenden, um die grundlegenden Konzepte von Python-Bibliotheken zu veranschaulichen.

## Lizenz
Doglib steht unter der MIT-Lizenz. Weitere Informationen finden Sie auf englischer Sprache in der Datei LICENSE.
xcloud-clients 0.1.0
这是一个国信行云数据库并发查询python程序,主要应用于自动通报

行云数据库JDBC包。主要供中国电信、中国移动等通信公司或国家电网等使用国信行云数据库公司使用.
这个版本是多线程版本，因为python对多进程支持并不好，所以重新发版本
ai-safety 0.1
Open source screening software enhancing safety in large language models

# AI Safety

**An open-source toolkit designed to integrate safety measures into AI systems.**
> Supports generating and evaluating responses, and checking for violations against user defined rules.

---

![Command Banner](docs/public/banner.png)

## Getting Started
This code is provided as a PyPi package. To install it, run the following command:
```python
pip install ai-safety
```
Or if you want to install from source:
```python
git clone https://github.com/our_name_here/ai-safety.git && cd ai-safety
poetry install --all-extras
```


## Using the Package these examples will be changed once we finish more

**Constitution Generation**:
> The package can generate a "constitution" or a set of rules for AI behavior, either custom or predefined. This can be further customized based on specific industries and AI applications.

You can generate a constitution using the `AISafetyManager` class. Here's an example:

```python
from ai_safety.ai_safety_manager import AISafetyManager

# Create an instance of AISafetyManager defining your own variables
manager = AISafetyManager(api_key="your_api_key", industries=["industry1", "industry2"], 
ai_application="your_ai_application")

constitution = manager.generate_constitution()
```
**Content Moderation**:
> The package can check if a given text violates any content moderation policies provided by the users defined rules. This can be used to ensure that the AI's output is safe and appropriate.

```python
from ai_safety.ai_safety_manager import AISafetyManager

manager = AISafetyManager(api_key="your_api_key")

# Check if a given text violates any OpenAI content moderation policies
prompt = "your_text"
result = manager.check_content_for_moderation(prompt)

# Screen if the model output violates any given constitution.
screen = manager.screen_output_for_violations(model_output, prompt)
```

**Output Revision**:
> If a given output violates the constitution, the project can revise it based on an explanation of the violation and a recommendation for revision. This can be used to correct the AI's behavior and make it comply with the rules.

You can revise the output using the `AISafetyManager` class. Here's an example:

```python
from ai_safety.ai_safety_manager import AISafetyManager

manager = AISafetyManager(api_key="your_api_key")

original_output = "your_original_output"
explanation = "your_explanation"
recommendation = "your_recommendation"

revised_output = manager.revise_output(original_output, explanation, recommendation)
```

## Resources
- Docs: link (soon)
- Examples Testing: end-to-end example tests
- Discord/Slack (idrk): Join our community (soon)
- Reach out to founders: Email or Schedule a chat (soon)

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Feedback
We welcome your feedback. Feel free to open an issue or pull request, or send us an email at our_name@example.com.
Django-inline-column-extension 1.0
With this package you can paginate and sort inline admin
Requires Python: >=3.8

# Django inline column extension

It's a django package that you can use in django inline admin for pagination and sorting columns like change list page.


## How to use this?
First add *inline_admin_extensions* to your django apps:
```python
INSTALLED_APPS = [
    '...',
    'inline_admin_extensions',
    '...',
]
```

then  define your models:
```python
#models.py
from  django.db  import  models

  
  
class  Author(models.Model):
	name  =  models.CharField(max_length=100)

class  Book(models.Model):
	author  =  models.ForeignKey(Author, on_delete=models.CASCADE)
	title  =  models.CharField(max_length=100)
	isbn  =  models.CharField(max_length=100)
```
then in your **admin.py**:
```python
#admin.py
from  django.contrib import admin

from  inline_admin_extensions.admin import PaginationInline
from  inlineadmin.models import Author, Book

  
class  BookInline(PaginationInline):
	model  =  Book
	per_page  =  5


@admin.register(Author)
class  AuthorAdmin(admin.ModelAdmin):
	inlines  = [BookInline]
```

you see like this:
![screenshot](https://raw.githubusercontent.com/shagho/Django-inline-column-extension/master/pics/1.png)
![screenshot](https://raw.githubusercontent.com/shagho/Django-inline-column-extension/master/pics/2.png)
![screenshot](https://raw.githubusercontent.com/shagho/Django-inline-column-extension/master/pics/3.png)
saic-ismart-client-ng 0.2.2
SAIC next gen client library (MG iSMART)
Requires Python: >=3.11

# SAIC Python client library

## About

A Python package for interacting with the MG iSMART API.

MG iSMART is the connectivity system in your MG car (MG5 MG4, ZS...).

Supported functionality

* login
* set alarm switches
* get message list
* get vehicle status
* get charging status
* lock vehicle
* unlock vehicle
* start rear window heating
* stop rear window heating

## Prerequisites

You have an iSMART account (can be created in the iSMART app)