Skip to main content

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 `

for ssh use ` git clone `

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](

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mysqlwrapperpackage1, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size mysqlwrapperpackage1-1.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page