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
Metadata
Release files for pyheimdall-mariadb 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyheimdall_mariadb-1.1.1.tar.gz | 17.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyheimdall_mariadb-1.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 34.9 kB
Release files / pyheimdall_mariadb-1.1.1.tar.gz
| Download URL | pyheimdall_mariadb-1.1.1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eb9c9290d6151e6097dbf2b34c0f200209f19b800e66dc1925f4dd46c84fe40
|
|
BLAKE2b-256 checksum How to use checksums |
52f39f5a2ee790907191cf15df857f2f625e3352e00026be47c5e1dd8ba08047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / pyheimdall_mariadb-1.1.1-py2.py3-none-any.whl
| Download URL | pyheimdall_mariadb-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a1c1ab2086f7c4207e9e2803d7648984786ab9071c4ccce1fd3b26ea2dc97a28
|
|
BLAKE2b-256 checksum How to use checksums |
bc46e3c96b550658041e4a0f79c0c4b10e49176080d9f4770e64d5168738929f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|