SqlAddImage is a Python Package which helps user to insertand retrieve image in mysql database for particularfield by creating image column.
Project description
SqlAddImage
SqlAddImage is a Python Package which helps user to insert and retrieve image in mysql database for particular field by creating image column.
Installation
pip install SqlAddImage
Usage
import SqlAddImage as im
# First make a connection with your database
checker = im.make_connection(host="localhost", user="your username", password="your password", database='your database')
# Insert image in this way
im.insert_image(status=checker,img_path="your imagefile",tablename="table of database", correspond_field="field in table",correspond_value="value of field")# Retrieve already stored image in this way in the working directory
im.get_image(status=checker,tablename="table of database", correspond_field="field in table",correspond_value="value of field")Contributing
Contribute in this package on GitHub https://github.com/DeveloperHarshit09/SqlAddImage
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file SqlAddImage-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: SqlAddImage-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a3548200142fd66e4319d0aaf9ac157fe5a21546ebe8a07c37bc955f0175b5 |
|
MD5 | 9473187049f763b4732a51224b1152df |
|
BLAKE2b-256 | 666033de5f43dd4c93241bcd2d5f6aea1cb8bae72d029108be35f32d7c531986 |