semvec/pypi-packages huggingface dataset:
quasar-project 1.0.0
An Artificial Intelligent firewall that detects malicious HTTP requests
Requires Python: >=3.6

# Quasar Firewall
An AI powered firewall designed to detect mallicious HTTP requests and decide weather to process them or not.

```
pip install quasar-project-firewall
```

# Usage
## As Flask Middleware
*Note: Model must be trained before starting proxy server*
```python
from detector_flask import DetectorMiddleware
...
app.wsgi_app = DetectorMiddleware(app.wsgi_app)
...
```
## Starting Proxy From Command Line
*Note: Must have python installed on local machine and added to PATH*<br>
*Note: Model must be trained before starting proxy server*

### **With Bash**
Call `proxy.sh` with paramaters `target` and  `port`
- `target` is the proxy destination
  - defaults to `http://localhost:8080`
- `port` is the local port to run the server on
  - defaults to 5000

Example:
```bash
proxy.sh [target] [port]
```

### **As Python Module**
- `options`
  - `-s` or `--serve` to start the proxy server
  - `-t` or `--train` to train the model
    - Default

Example:
```bash
python -m quasar_firewall [options] [target] [port]
```

Redirect requests from original server to proxy server


## Training the Model
*Note: Must have python installed on local machine and added to PATH*

### **With Bash**
Call `train.sh`

Example:
```bash
train.sh
```

### **As Python Module**
Example:
```bash
python -m quasar_firewall -t
```
tinyyoutube 0.1
Extract data from youtube

# What is tiny-youtube?

**Tiny-Youtube** is a python module which helps to extract data from youtube. You can extract data of video and youtube channel. 

# Install tiny-youtube
To install it you must have [requests](https://pypi.org/project/requests/) and [beautifulsoup4](https://pypi.org/project/beautifulsoup4/)

    pip install tinyyoutube

# Features

 - For YouTube Channel
-Get Channel Name
-Get total subscribers
-Get total views
-Get joining date
 - Fro YouTube Video
 -Get video title
 -Get views
 -Get description
 -Get video length
 -Get ower channel id
 -Get publish data

# Example
For YouTube channel:

    from tinyyoutube import Channel
    channel = Channel('UCEbcl1A3vxWgZm6QOOFfrLg') #channel id
    channel.get_channel_name() #Channel Name
    channel.get_subscribers() #Number of subscribers
    channel.get_total_view() #Total views
    channel.get_joining_date() #Joining Date
For YouTube Video:

    from tinyyoutube import Video
    video = Video('ndrMmO8g-X8') #video id
    video.get_title() #video title
	video.get_views() #number of views
	video.get_description() #video description
	video.get_length() #video length
	video.get_owner_channel_id() #author channel id
	video.get_publish_date() #publishing date

You can also find more in our YouTube channel [Tiny Programmer Ltd](https://www.youtube.com/channel/UCEbcl1A3vxWgZm6QOOFfrLg).