Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysqlwrapperpackage1

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysqlwrapperpackage1

MySQL Python Wrapper Package

  • 1.2
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc