semvec/pypi-packages huggingface dataset:
django-extended-models 0.1.0
A Mixins and Models with Django utilities.
License: MIT
Requires Python: >=3.9,<4.0


# django-extended-models

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/EChachati/django-extended-models/blob/master/LICENSE)

`django-extended-models` is a Django utility package that provides mixins and models with extended functionalities.

## Installation

Install the package using [Poetry](https://python-poetry.org/):

```bash
poetry add django-extended-models
```

## Features

### `utils.py`

#### `__set_default_values`

The function sets default values for fields in a model if they are not provided.

```python
from django_extended_models.utils import __set_default_values

# Example usage:
model = ...
fields = ...

dictionary, fields = __set_default_values(model, fields)
```

#### `model_to_dict`

Converts a Django model object into a dictionary, recursively including related model objects up to a specified depth.

```python
from django_extended_models.utils import model_to_dict

# Example usage:
object = ...
fields = ...

dictionary = model_to_dict(object, fields=fields)
```

### `mixins.py`

#### `ToDictMixin`

Provides a method `to_dict` that converts a model instance to a dictionary.

```python
from django_extended_models.mixins import ToDictMixin

# Example usage:
class MyModel(ToDictMixin):
    pass

instance = MyModel()
dictionary = instance.to_dict()
```

### `models.py`

#### `BaseModel`

A base model that includes the `ToDictMixin`.

```python
from django_extended_models.models import BaseModel

# Example usage:
class MyModel(BaseModel):
    pass
```

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/EChachati/django-extended-models/blob/master/LICENSE) file for details.
meteoalertapi 0.3.1
A small api to get alerting messages from extreme weather in Europe from https://www.meteoalarm.org.
License: MIT

# meteoalarm-api


![PyPI](https://img.shields.io/pypi/v/meteoalertapi.svg?style=for-the-badge|https://pypi.org/project/meteoalertapi)
![Travis (.org)](https://img.shields.io/travis/rolfberkenbosch/meteoalert-api.svg?style=for-the-badge)

An unofficial Python wrapper for [MeteoAlarm.org](https://meteoalarm.org) website (European Weather alerts), which can be used to check if a given province in your country has currently a weather alert.

## Installation

Using Pip:

```console
pip install meteoalertapi
```

## Code Example

```python
from meteoalertapi import Meteoalert

# Find you country and province on https://meteoalarm.org/ or https://feeds.meteoalarm.org/
meteo = Meteoalert('country', 'province_name')

# Get the weather alarm for your place
meteo = Meteoalert('country', 'province_name')
print(str(meteo.get_alert()))
```

## Changelog

See the [CHANGELOG](./CHANGELOG.md) file.

## License

MIT
pymovie-search 1.0.10
A pirate movie searched written in Python
License: MIT
Keywords: movie,python3,search

## Pymovie

PyMovie is a terminal utility program that searches [VidSrc](https://vidsrc.to)'s API to provide movies for free. This exists purely as a proof of concept idea as opposed to a production ready application. 

## Installation

**Automatic**

```
pip install pymovie-search
``` 

> Note:
> The movie library that the program downloads is simply a json file. Although it might take a while, rest assured that the program is not filling your disk with massive files without your consent. Additionally, the program will report the amount of space that it had used at the end of the download. 

**Manual (Linux/macOS only)**

- Install Python 3
- Clone the repository
```bash
git clone https://github.com/SomedudeX/PyMovie
cd PyMovie
```
- Install required packages
```bash
pip3 install -r requirements.txt
```

You could stop here and use the python script as it is by running `python3 App/entrypoint.py`, but if wish to build the project into an executable, follow the steps below:

- Install PyInstaller
```bash
pip3 install pyinstaller
```
- "Build" the project by running
```bash
./setup.sh
```
The output file will then be created in the dist folder. 

## Uninstallation
Use the reset option from within the application (Windows/macOS/Linux) or run `uninstall.sh` (macOS/Linux) to delete all configuration files and caches pertinent to the application. 

## Disclaimer

The author of this project shall, under no circumstance, take liability or responsibility for losses or damages incurred as a result of your use of this application. Your use and reliance on this program is solely at your own risk. This program is for educational purposes only.

--

```
Last updated Feb 2024  
Not in active development
```
FastInput 0.3
A package that wrap the input function with validation
License: MIT
Keywords: input,validation,prompt

**A Python library to simplify the input from user**

This library is a wrapper arround the input method. It allows to very the input according to the selected type, lower or upper bound provided.

*Instalation*

```
pip install FastInput
```

*Usage*
Asking for an integer value between 0 and 4:
```python
import FastInput as fi

yourChoice = fi.input_with_validation("Provide your id", InputType.INTEGER,False,0,4))
```
Asking for a string:
```python
import FastInput as fi

yourChoice = fi.input_with_validation("What is your name", InputType.STRING,False))
```
Asking for a user validation:
```python
import FastInput as fi

yourChoice = fi.input_for_confirmation("Do you agree?[Y/n]", True))
```
Asking for a choice in a list:
```python
import FastInput as fi

list=[1,2,"test",False]
yourChoice = input_within_list(list)
```

*Result*

```
$> python FastInput/fast_input.py
What is your user?

Your answer cannot be empty.
Alex
Provide your id
( >= 0 )
-1
Wrong choice. Please provide an answer >= 0
0
Provide your id2
( <= 10 )
12
Wrong choice. Please provide an answer <= 10
a
Wrong choice type. Please provide an answer of type : integer

Your answer cannot be empty.
5
Provide your id3 any integer
w
Wrong choice type. Please provide an answer of type : integer
123
InitForm(user='Alex', id=0, id2=5, id3=123)
Do you like this app?
Yes

Choose a value among : [1, 2, 'test', False]
4
Your choice is not in the list
Choose a value among : [1, 2, 'test', False]
Alex
Your choice is not in the list
Choose a value among : [1, 2, 'test', False]
test

Choose a value among :
  1. 1
  2. 2
  3. test
  4. True
( >= 1 and <= 4 )
1
```