MariaDB connector for pyHeimdall
Reason this release was yanked:
Risk was that generated attribute identifiers were NOT unique. Version 1.1.1 fixes this. Use of this version (1.1.0) is discouraged.
Project description
What is this?
pyHeimdall is a tool for converting more easily one or more databases from one format to another. It leverages modules called “connectors”, responsible for conversion of data between specific databases schemas and the HERA format.
This repository implements a connector to retrieve data from a MariaDB database. The implementation doesn’t need any intervention on pyHeimdall proper.
How can I use it?
Setup
This MariaDB pyHeimdall connector is available as a PyPI package named pyheimdall-mariadb. You can install it using the pip package manager:
pip install pyheimdall-mariadb
You can use pip to either upgrade or uninstall this connector, too:
pip install --upgrade pyheimdall-mariadb
pip uninstall pyheimdall-mariadb
Usage
import heimdall
tree = heimdall.getDatabase(
format='sql:mariadb',
url='mariadb://myusername:mypassword@myhost:myport/mydatabase',
entities=('mytable', 'myothertable', ),
)
heimdall.createDatabase(tree, format='hera:xml', url='mydatabase.xml')
Please note that you don’t need to use pyheimdall-mariadb functions directly. As long as the package is installed on your system, pyHeimdall will automatically discover its features and allow you to use them as long as any other default or external connector.
Is it tested?
Of course! Here’s the coverage report.
How can I contribute?
This project welcomes any feedback or proposal. Details can be accessed here
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyheimdall_mariadb-1.1.0.tar.gz.
File metadata
- Download URL: pyheimdall_mariadb-1.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb3669a9bb57d060514b8266bcde5f5776d2c2981082e2359b6433bf90bed40
|
|
| MD5 |
07e8206f44042c9d7965dc6e299910e2
|
|
| BLAKE2b-256 |
c12a24c5276b82360cd2b23b3a7b5d49ff2030e121c944405deb5c9909897b9d
|
File details
Details for the file pyheimdall_mariadb-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyheimdall_mariadb-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e495b5632615b4256f236dd296dd6476a11720d9fcbf0c002780b882f04981d
|
|
| MD5 |
95eb555a0b8f959f6a964585b98c4711
|
|
| BLAKE2b-256 |
169c7c3574acda44d488f2ed82db5e771e3b38bca38cd9546bd94470ab85d33b
|