semvec/pypi-packages huggingface dataset:
fastapi-lazy 1.2.6
Utilities that you use in various projects made in FastAPI
Requires Python: >=3.7

# Fastapi-lazy 🦥

![lazy](https://user-images.githubusercontent.com/52716203/135530036-3ed731f6-e0db-4de6-8667-9af75656f2f4.png)

<p align="center">
    <em>Utilities that you use in various projects made in FastAPI.</em>
</p>

[![PyPI version](https://badge.fury.io/py/fastapi-lazy.svg)](https://badge.fury.io/py/fastapi-lazy)
[![Downloads](https://pepy.tech/badge/fastapi-lazy/month)](https://pepy.tech/project/fastapi-lazy)
[![Downloads](https://pepy.tech/badge/fastapi-lazy/week)](https://pepy.tech/project/fastapi-lazy)
[![Language](https://img.shields.io/badge/Language-Python-green?style)](https://github.com/yezz123)
[![framework](https://img.shields.io/badge/Framework-FastAPI-blue?style)](https://fastapi.tiangolo.com/)
[![Star Badge](https://img.shields.io/static/v1?label=%F0%9F%8C%9F&message=If%20Useful&style=style=flatcolor=BC4E99)](https://github.com/yezz123/fastapi-lazy)
[![Pypi](https://img.shields.io/pypi/pyversions/fastapi-lazy.svg?color=%2334D058)](https://pypi.org/project/fastapi-lazy)

---

**Source Code**: <https://github.com/yezz123/fastapi-lazy>

**Install the project**: `pip install fastapi-lazy`

---

## Features 🎉

- Use the data contained in the JWT
- Use the username contained in the JWT and fetch data.
- Create User Models based on Pydantic.
- Multi Database Support:
  - Creates the dependency to be used to connect to the Postgresql.
  - Creates the dependency to be used to connect to the MongoDB.
  - Create the dependency to be used to connect to the SQlite using SQLAlchemy.
- Support Redis Cache:
  - Creates a `pickle` of the object passed as a parameter and saves it in the Redis which is also passed as a parameter.
  - Read the `pickle` of the object saved in RedisDB and return it as Python object.
- Support UUID generator:
  - Create a custom UUID4 using the current timestamp.
  - Create a JWT token creator & verifier.
- Create a simple Password hash using `hashlib`.
- Create an Email Validator.
- Provide a Token Creator for login after adding a new package `passlib`.
- Add A simple Crud file for MongoDB Provider.
  - Soon will be added for Postgresql Provider, & SQLite Provider.

## Development 🚧

You should create a virtual environment and activate it:

```bash
python -m venv venv/
```

```bash
source venv/bin/activate
```

And then install the development dependencies:

```bash
pip install -r requirements.dev.txt
```

### Format the code 💅

Execute the following command to apply `pre-commit` formatting:

```bash
make lint
```

## License 🍻

This project is licensed under the terms of the MIT license.
nsw-fuel-api-client 1.1.3
API Client for NSW Government Fuel

nsw-fuel-api-client
============================================
[![](https://travis-ci.org/nickw444/nsw-fuel-api-client.svg?branch=master)](https://travis-ci.org/nickw444/nsw-fuel-api-client)
[![](https://coveralls.io/repos/nickw444/nsw-fuel-api-client/badge.svg)](https://coveralls.io/r/nickw444/nsw-fuel-api-client)
[![](https://img.shields.io/pypi/v/nsw-fuel-api-client.svg)](https://pypi.python.org/pypi/nsw-fuel-api-client/)
    
API Client for NSW fuel prices.
mandaw 2.3.0
A 2D GameEngine Made In Python With PySDL2
Requires Python: >=3.6

# MandawEngine
A 2D Python GameEngine Made With PySDL2

Discord: https://discord.gg/MPPqj9PNt3

# Installation
To install:
Download the zip: Code->Download Zip
Extract it
Go into the extracted folder and Type in CMD or Terminal:
```
pip install setup.py
```

# Creating A Window
First, import mandaw
```py
from mandaw import *
```
Call Mandaw
```py
mandaw = Mandaw(title = "Window!", width = 800, height = 600, bg_color = (0, 0, 0, 255))
```
To run it, type
```py
mandaw.loop()
```

# Creating A Square
Here is what we have so far
```py
from mandaw import *

mandaw = Mandaw(title = "Window!", width = 800, height = 600, bg_color = (0, 0, 0, 255))

mandaw.loop()
```
To create a square, type
```py
square = Entity(window = mandaw, width = 20, height = 20, x = 0, y = 0, color = (255, 255, 255, 255))
```
Center it with
```py
square.center()
```
Then draw it
```py
@mandaw.draw
def draw():
    square.draw()
```
Like this
```py
from mandaw import *

mandaw = Mandaw(title = "Window!", width = 800, height = 600, bg_color = (0, 0, 0, 255))

square = Entity(window = mandaw, width = 20, height = 20, x = 0, y = 0, color = (255, 255, 255, 255))
square.center()

@mandaw.draw
def draw():
    square.draw()

mandaw.loop()
```
# Basic Input In MandawEngine
What we have so far
```py
from mandaw import *

mandaw = Mandaw(title = "Input!", width = 800, height = 600, bg_color = (0, 0, 0, 255))

square = Entity(window = mandaw, width = 100, height = 100)
square.center()

@mandaw.draw
def draw():
    square.draw()

mandaw.loop()
```
To Move the square, we can use the built in `update` function along with `mandaw.input`
```py
@mandaw.update
def update(dt):
    if mandaw.input.pressed[mandaw.input.keys["W"]]:
        square.y -= 100 * dt
    if mandaw.input.pressed[mandaw.input.keys["A"]]:
        square.x -= 100 * dt
    if mandaw.input.pressed[mandaw.input.keys["S"]]:
        square.y += 100 * dt
    if mandaw.input.pressed[mandaw.input.keys["D"]]:
        square.x += 100 * dt
```
`dt` here, represents deltaTime
ytt 1.0.0
Python module for send videos of a Youtube channel to a telegram group , channel or chat
Requires Python: >=3.7

# ytt module For Python

for install this module, Run This command:
```
pip install ytt
```
-----------------------------------------
 
for import:
 
```
from ytt import ytt
```

-----------------------------

# Usage:

```
start_all(YouTube_channel_id,telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
  Using this function in your Python application, you can download all the videos of a YouTube channel and transfer them to Telegram.
    YouTube_channel_id (str): ID of Youtube Channel You want To send All videos of This channel to Telegram,
    telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
    bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
    send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!
```
----------------------------------------

```
Download_only(YouTube_channel_id):
    Download All videos Of a Youtube Channel Only.
      YouTube_channel_id (str): ID of YouTube channel
```
--------------------------------------

```
upload_downloaded_videos(telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
  Upload Downloaded videos with Download_only Function to Telegram
    Usage:
      telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
      bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
      send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!
```
dj-micro-auth-connect 0.5.2
A small package to connect microservices and authenticate user.
Requires Python: >=3.6


service_auth
=====

A small package to connect microservices and authenticate user. It uses RemoteModel to make http requests with multiple services.
Also used to verify tokens to authenticate users.

Quick start
-----------
Install the package `pip install dj-micro-auth-connect`.

Add `service_auth` in INSTALLED_APPS

    INSTALLED_APPS = (
        ...
        'service_auth'
    )

Add
    
    ENTITY_BASE_URL_MAP = {
        ...
    'auth':'url-for-authentication-service.com',
    
    }

    ENTITY_URL_PATH = {
        ...
    'verify_token':'api/path/for/endpoint',
    }


* Note: Above mentioned keys must be same to get it work.
PyRestart 1.0.0
Restart module
Requires Python: >=3.6

# PyRestart

Module that can make new instance of itself, normally used to restart a script, I think you can get it [here](https://pypi.org/project/pyrestart/)
<br>
To get help, use the help() function and pass the function that you need help with


## Function list
newRestart

new_restart