Skip to main content

A simple MySQL DBAPI wrapper for simplifying data processing pipelines.

Project description

Reata is a simple wrapper for the official MySQL DBAPI for Python (mysql.connector). The main purpose of the library is to simplify common MySQL operations and make interfacing with the DBAPI a more python-centric affair. Reata attempts to minimize the need for writing SQL statements into Python scripts. Unlike similar libraries, however, Reata is not an ORM and it makes no attempts to be an ORM. Instead, Reata aims to limit the amount of code which must be written to interact with the DBAPI while improving readability. Rather than force the user to write MySQL statements and execute them via a cursor object, as is typically the case with standard DBAPIs in Python, Reata abstracts away the underlying connection object and allows users to execute common MySQL operations via class methods.

Reata also makes efforts to help simplify data processing pipelines by incorporating methods that leverage the Pandas API. Users can load tables directly into dataframes and use dataframes to update tables.

Installation

python -m pip install reata

Documentation

Up-to-date documentation can be found here: https://jammin93.github.io/reata/

Usage

import mysql.connector

from reata import MySQLClient, TableSchema

cnx = mysql.connector.connect(...)
client = MySQLClient(cnx)

License

GNU General Public License

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

reata-1.1.1.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reata-1.1.1-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file reata-1.1.1.tar.gz.

File metadata

  • Download URL: reata-1.1.1.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for reata-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fc3dec9bdd3f2e1bffbefa308c8f6f7ea72cee6dc6963b6a86eb567759d932c1
MD5 2867e33092cf9f4141d1af8419c428af
BLAKE2b-256 fca4a1ce9b0045c0d203cd37354b86fbf0a83686f0953112edc21d3d17088f09

See more details on using hashes here.

File details

Details for the file reata-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: reata-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for reata-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bba220aefd6a00e520ffbb450e7f72002481c59950e26e85d15b862a2e16e777
MD5 cd1c046824549995e38da97d06c2459b
BLAKE2b-256 80f5f7d41f467a503592a38a7f92c300fe8bd9e253d6de3ea4971cf9a9a0dc87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page