semvec/pypi-packages huggingface dataset:
image-preprocessor 0.1.0
Image preprocessor for convolutional neural networks
Requires Python: >=3.7

# Image Preprocessor

Simple image preprocessor I made while working on my first Keras binary classification convolutional neural network. Converts images from specified directories into NumPy arrays. Its functionality will be expanded out of necessity.

# Installation

Install through pip as shown:

```bash
pip install image-preprocessor
```

# Example usage

```py
from image_preprocessor import ImagePreprocessor

# Vehicle-label correlations
vehicle_types = {
    0 : 'boat',
    1 : 'car',
    2 : 'motorcycle',
    3 : 'plane'
}

# Create the ImagePreprocessor object
ip = ImagePreprocessor(
    pixels=64,
    normalization=255,
    training_threshold=0.7,
    resize_method='square resize',
    color_mode='L'
)

# Prepare the images in select directories
package = ip.preprocess_dirs(
    paths=['images/boat', 'images/car', 'images/motorcycle', 'images/plane'],
    labels=[0, 1, 2, 3],
    partition=True
)

# Go on and do your neural network stuff 
train_features = package['TRAIN_IMAGES']
train_labels = package['TRAIN_LABELS']
test_features = package['TEST_IMAGES']
test_labels = package['TEST_LABELS']
```
fastapi-generator 0.5.1
Used to quickly generate fastapi project.
Requires Python: >=3.8

# Document
## Description
- This project is used to quickly generate fastapi project.
## Flow for Main App
1. run main app command
2. config config.py db or set in environment
## Requirements
- python 3.8
- click
- pandas
- databases
## Command
    # generate main app
    fastapi main
    # generate main app with orm
    fastapi orm db_host db_name db_user db_pswd
    # only generate orm
    fastapi orm --only db_host db_name db_user db_pswd
    fastapi orm localhost test test test
    fastapi orm --mode t
    # generate sub app
    fastapi sub app-name
    # generate api from sub app / if app not exist, create it.
    fastapi api app-name api-name 
    # run fastapi app
    uvicorn app.main:app --reload
    


    
    
## Version
- 0.5.1
  - fix error import auth headers
- 0.5.0
  - update more tortoise orm
  - use more template code
- 0.4.0
  - support tortoise orm with mode t
- 0.3.7 
    - add param is_only_orm
- 0.3.6
    - add orm generate
- 0.3.5
    - update command with click
- 0.3
    - generate api of sub app.
- 0.2.1
    - generate sub app with auto load api
- 0.2
    - generate sub app
- 0.1.3
    - auto load sub app
- 0.1.2
    - write main app project files
- 0.1.1
    - generate with orm
- 0.1
    - generate base app: can run it!
- 0.0.2 
    - create main app files 
- 0.0.1
    - only create app/main.py