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

pykn-mysqltools

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pykn-mysqltools

Utilities for interacting with MySQL and CSVs.

  • 0.0.6
  • PyPI
  • Socket score

Maintainers
1

pykn_mysqltools

Handy utility tools for interacting with a MySQL database with Python. This project was created with a need to interact with MySQL utilizing lots of CSVs, but the complexity of pandas was a bit overkill. Perhaps as my needs grow, I'll see the light and move over to pandas.

Typical Usage

You'll primarily want to interact with the DBConnection class. Example:

from pykn_mysqltools import utilities as pyknmt

my_conn = pyknmt.DBConnection(
    db_hostname="hostname",
    db_username="username",
    db_password="password",
    db_schema="schema",
    db_port="port"
)

From here you can interact with your database through my_conn, and access helpful tools like the import_csv method:

my_conn.import_csv("./path/to/your.csv", "tablename")

If your use case calls for inserting data directly, the insert method is your friend.

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