MySQL Python Wrapper Package
Project description
# MySQLWrapperPackage
This is a small MySQL database wrapper module that injects a mysql connection instance
## Getting Started These instructions should help you run the code on your machine.
### Prerequisites The code is written in Python3
### Installing the package
Install the package
` pip install mysqlwrapperpackage `
### Installing locally from github
start by cloning the repository from GitHub:
for https use ` $ git clone https://github.com/Sharonsyra/MySQLWrapperPackage.git `
for ssh use ` git clone git@github.com:Sharonsyra/MySQLWrapperPackage.git `
Install the application’s dependencies from requirements.txt ` $ pip install -r requirements.txt `
Start your MySQL server
` mysqld `
### Running the project
In you Working folder Test with this commands
Import WrapperPackage
` from MySQLWrapperPackage.wrapper import MySQLWrapper `
Make an instance of the start method. This creates an instance of the connection
` variable_name = MySQLWrapper.start() `
View all from table
` variable_name.fetch_all('table') `
### Run your tests: ` $ nose2 `
## Resources Used - Dependency Injection Python - [Python Dependency Injection](https://medium.com/@shivama205/dependency-injection-python-cb2b5f336dce)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mysqlwrapperpackage1-1.2.tar.gz
.
File metadata
- Download URL: mysqlwrapperpackage1-1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49bb5c5bb174f2894423898896f51dbde7b0a4105715f0a84f81d692ad91ff7e |
|
MD5 | 282903a5a6ab041fa9272b63ca322254 |
|
BLAKE2b-256 | 30b2c551a39bc417177f5afebca3157bef699e230268972182eeead3b50c00fa |