A python package for connecting with database.
Project description
# requirements_dev.txt we use for the testing It makes it easier to install and manage dependencies for development and testing, separate from the dependencies required for production.
# difference between requirements_dev.txt and requirements.txt
requirements.txt is used to specify the dependencies required to run the production code of a Python project, while requirements_dev.txt is used to specify the dependencies required for development and testing purposes.
# tox.ini We use if for the testing in the python package testing against different version of the python
## how tox works tox enviornment creation 1. Install depedencies and packages 2. Run commands 3. Its a combination of the (virtualenvwrapper and makefile) 4. It creates a .tox
# pyproject.toml it is being used for configuration the python project it is a alternative of the setup.cfg file. its contains configuration related to the build system such as the build tool used package name version author license and dependencies
# setup.cfg In summary, setup.cfg is used by setup tools to configure the packaging and installation of a Python project
# Testing python application types of testing 1. Automated testing 2. Manual testing
Mode of testing 1. Unit testing 2. Integration tests
Testing frameworks
pytest
unittest
robotframework
selenium
behave
doctest
# check with the code style formatting and syntax(coding standard)
pylint
flake8(it is best because it containt 3 library pylint pycodestyle mccabe)
pycodestyle
# How to use the package :-
### STEPS:-
`bash pip install mysql-crud-automation `
`bash import mysql.connector `
`bash host="hostname", user="username", password="<password>", `
`bash mysql_connector = mysql_operation(host,user,password) `
# CRUD Operation on MySQL :-
## How to run :-
### 1. create database `bash mysql_connector.create_database() `
### 2. create table `bash mysql_connector.create_table('<table_name>') `
### 3. insert record `bash mysql_connector.insert_record(table_name="<table_name>", record=record:dict) `
### 4. insert many record `bash mysql_connector.insert_record(table_name="<table_name>",record=[record:dict]) `
### 5. bulk insert record - in this datafile is in .csv or .xlsx file `bash mysql_connector.bulk_insert ( datafile= "<file_path>", table_name="<table_name>", unique_field: str = None) `
### 6. find query `bash mysql_connector.find(query: dict = {}, table_name="<table_name>") `
### 7. update query `bash mysql_connector.update(query: dict, table_name="<table_name>", new_values: dict) `
### 8. delete query `bash mysql_connector.delete(query: dict, table_name="<table_name>") `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mysql_crud_automation-0.0.1.tar.gz
.
File metadata
- Download URL: mysql_crud_automation-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ccce39bbcc4ef2029a05a0483a5998f76cf5e0c9d340c3cb48ecaa62786e93 |
|
MD5 | 4ba22ecc240e75278267d452a8e8672a |
|
BLAKE2b-256 | 72d913b4b9811449918ddc468f120bd3c27655430a07b4567580dc01658a3460 |
File details
Details for the file mysql_crud_automation-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mysql_crud_automation-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab87327902893472dc13883c779522c255248cdd48669bf2ad6bd0918f919e0 |
|
MD5 | 70e017d5ec886770dc3a4fc2455f552a |
|
BLAKE2b-256 | 3c1924e4e1573463b72a869b9cbe347b408b7ba5a4fc76d00614e0ef41460118 |