Skip to main content

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)

Release files for mysqlx-connector 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mysqlx-connector 0.0.8
File Size Uploaded
mysqlx_connector-0.0.8.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mysqlx-connector 0.0.8
File Interpreter ABI Platform
mysqlx_connector-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / mysqlx_connector-0.0.8.tar.gz

Download URL mysqlx_connector-0.0.8.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
494a559ee2bd58cfbed411eac3e012fe30af00b4ce43004b912fcfec5c207bb7
BLAKE2b-256 checksum
How to use checksums
982722631e15a5f8c06112274ac029e71b43f8a3e9fca348f1ae0622c061d493
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mysqlx_connector-0.0.8-py3-none-any.whl

Download URL mysqlx_connector-0.0.8-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e49e4b0571959d4edb76433d55f188b6668213e72fb13e7468032326772d37e8
BLAKE2b-256 checksum
How to use checksums
c8ed177133b2ef74f04c7dbd8cac4a01b0f8343e3f374a15d80f058fb7ffc5a9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page