semvec/pypi-packages huggingface dataset:
Omar-Style-sel 0.6
Omar_Style _ 〄🇵🇸


    
<h1 style="color:red; text-align: center;">Omar_Style</h1>




<!-- ___
| Name | code | email |
|----|----|---|
|omar|10|omar@gamli.com|
___ -->
___
May the peace, blessings, and mercy of God be upon you. Welcome to this nice library
Also, using this library is very simple
See, in the second example, how is his office?
## note

This library is used with the Selenium library


___
### Install the library
``` bash 
pip install Omar-Style-sel
```


___

## Library use:

Here I use Firefox and Google Chrome browsers only

##### The library has been updated and new features have been added such as :: => user_agent    


If you want to use this feature, all you have to do is write it  ===> True 

```python 
 from Omar_Style_sel import BrowsersProxy as Br

    pr = Br()

    driver = pr.proxy_chrome("103.168.44.41:9191","https://youtu.be/hCtg283iJKg",False)
```
---

``` python
   
   from Omar_Style_sel import BrowsersProxy as Br

    pr = Br()
    driver = pr.proxy_firefox("74.249.8.183:3128", "http://whatismyipaddress.com")

   
    driver = pr.proxy_chrome("103.168.44.41:9191","https://youtu.be/hCtg283iJKg",False)

```
____
#### Here you can only use Google Chrome, but you have to download it to your computer and then use it :

##This is the example to illustrate

``` python 
driver = pr.proxy_chrome("95.56.254.139:3128","http://whatismyipaddress.com",False, driver_path='E:\\chroo\\chromedriver.exe')
```
____


## Any problem contact us
[Telegram](https://t.me/OmarStyle1)

### The developer of this library
Omar_Style _ م€„
flask-guard 0.0.8
A library for checking if JSON requests have valid data.
Requires Python: >=3.10

# FlaskRequestGuard

Flask Request Guard is a Python library for validating incoming HTTP requests in Flask web applications. 
It provides a simple yet flexible way to define request rules and enforce them automatically on incoming
 requests, ensuring that only requests that meet the specified requirements are allowed to proceed. 


## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to intall flask-request-gaurd.

```bash
pip install flask-guard
```

## Create the keys


```python
from FlaskGuard import RequestParameter

# Creates a key that has the name "name" and type str with a minimum length of 0 and 
# a maximum length of 10
name_key =  RequestParameter("name", str, 0, 10)

# Creates a key that has the name "range" and type int with a minimum value of -10 and
#  a maximum value of 10
range_key = RequestParameter("range", int, -10, 10)

```

## Create the validation function

```python
from FlaskGuard import  FlaskGuard

# Init FlaskRequestGuard
guard = FlaskRequestGuard("myapp")

# Keys from the code snippet above
required_keys = [range_key, name_key] 

# Returns a function that is used to check a request
validate_user_request = guard.create_validate_function(required_keys)

```

## Check request

```python
request = {"name": "erik", "age": 23, "range": 2}
# Returns (True, {"error_messages": []}) 
is_valid, error_messages = validate_user_request(request)

request = {"name": "eeeeeeeeeee", "age": 23, "range": 2}
# Returns (False, {"error_messages": ["The 'name' field must be 10 size or less,
#  and at least 0 size or more, but is actually 11 characters long."]})
is_valid, error_messages = validate_user_request(request)


request = {"age": 23, "range": 2}
# Returns False, {"error_messages": ["Missing name field in request body."]}
is_valid, error_messages = validate_user_request(request)

```

For an example where it's used with Flask, check out FlaskGuard-example [repo](https://github.com/beki1337/flaskguard-example).



## Run tests

Run this commad in FlaskGuard directory to run the tests

```bash
python -m unittest discover tests
```


## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)