Skip to main content

Mysql connector skeleton for the x protocol

Project description

MySQL X connector for python

This repo contains a skeleton for mysqlx connector. User has to just create a specific table class which inherits provided table class. Users own table class can contain any kinds of methods to manipulate the table.

This connector uses environment variables to connect to the database. You need to set HOST, PORT, USER, and PASSWORD variables in the environment. By default MySQL uses port 33060 for the X protocol.

Examples

Simple table example:

from mysqlx_connector import Table, parse_results

class CityTable(Table):

	def get_cities(self):
		return parse_results(self._table.select().execute())

Usage of the created table:

city_table = CityTable('cities', 'exampleDatabase')

with city_table as table:
	for row in table.get_cities():
		print(row)

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

mysqlx_connector-0.0.8.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

mysqlx_connector-0.0.8-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file mysqlx_connector-0.0.8.tar.gz.

File metadata

  • Download URL: mysqlx_connector-0.0.8.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5

File hashes

Hashes for mysqlx_connector-0.0.8.tar.gz
Algorithm Hash digest
SHA256 494a559ee2bd58cfbed411eac3e012fe30af00b4ce43004b912fcfec5c207bb7
MD5 6b682f422bcf329f40d82342f4354098
BLAKE2b-256 982722631e15a5f8c06112274ac029e71b43f8a3e9fca348f1ae0622c061d493

See more details on using hashes here.

File details

Details for the file mysqlx_connector-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: mysqlx_connector-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5

File hashes

Hashes for mysqlx_connector-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e49e4b0571959d4edb76433d55f188b6668213e72fb13e7468032326772d37e8
MD5 37fc893ae83fa079e26422df83d92847
BLAKE2b-256 c8ed177133b2ef74f04c7dbd8cac4a01b0f8343e3f374a15d80f058fb7ffc5a9

See more details on using hashes here.

Supported by

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