semvec/pypi-packages huggingface dataset:
ibdx 0.5.1
yet another backup/restore program for mysql InnoDB tables
Requires Python: >=3.8

# ibdx


## Use case

- backup/restore mysql InnoDB tables in an easy way


## Setup

#### From pypi
```
pip install ibdx
or
pipx install ibdx (recommended)
```

#### From source
```
git clone https://github.com/Grvzard/ibdx.git
cd ibdx
pip install .
```

## Usage

```ibdx --help```

**Take care:**
There seems to be an incompatibility between mysql and mariadb.
Make sure that ibdx works between the same db system.


## Example

Let's say we have following tables:
```[ logs_2023_01, logs_2023_02, logs_2023_03, logs_2023_04 ]```

```
ibdx backup -u user -p password -h localhost --db test1 --tables logs_2023_% -f logs.2023.zip [--datadir /mysql/datadir]
```
```
ibdx restore -f logs.2023.zip -u user -p password -h localhost --db test1 --tables logs_2023_% [--datadir /mysql/datadir]
```

When the mysql server is running in Docker, the _--datadir_ option is required.


## Script Workflow

backup:
1. mysql> ``` FLUSH TABLES test1 FOR EXPORT; ``` (tables are read locked)
2. backup the .ibd (and .cfg) files.
3. mysql> ``` UNLOCK TABLES; ```

restore:
1. (optional) mysql> ``` CREATE TABLE test1; ```
2. mysql> ``` ALTER TABLE test1 DISCARD TABLESPACE; ```
3. copy the .ibd (and .cfg) files to the mysql-server's datadir
4. mysql> ``` ALTER TABLE test1 IMPORT TABLESPACE; ```


## Reference

[MariaDB Knowledge Base > InnoDB File-Per-Table Tablespaces](https://mariadb.com/kb/en/innodb-file-per-table-tablespaces/#copying-transportable-tablespaces)
py-svgcheck-lib 0.0.1
Python Library for SVG Validation (fork of the svgcheck cli)
Requires Python: >=3.6

# svgchecklib
Python Library for SVG Validation (fork of the svgcheck cli, designed for seamless integration into Python codebases).

## Usage as Python library

```python
from svgchecklib import validate_svg

validation_results = validate_svg("path_to_svg_file")
print(validation_results)

"""
Result looks like the next list: 
[
"2: The attribute 'red' does not allow the value 'fill', replaced with 'black'.", 
'File does not conform to SVG requirements'
]
"""
```

### Thanks svgcheck project (https://github.com/ietf-tools/svgcheck.git)
kaslcred 0.1.6
A credential schema linker for the KERI and ACDC ecosystem.
Requires Python: >=3.12.3

# KASLCred : KERI and ACDC Schema Linker for Credentials
Computes self addressing identifiers (SAIDs) for KERI and ACDC schema parts and links them together by SAID.

## Usage

``` shell
python -m kaslcred [schema_dir] [output_dir] [schema_map_file.json]

# Example:
# Requires having pre-written and pre-copied all of the schema files into ${KASL_HOME}/schemas
export KASL_HOME=${HOME}/.kasl
python -m kaslcred ${KASL_HOME}/schemas ${KASL_HOME}/results ${KASL_HOME}/schemas/schema_map.json
```

## Installation

### Docker

### Manual Local Installation
1. Install Python
2. Install the Rust Toolchain: https://www.rust-lang.org/tools/install\
   This is for the [Blake3](https://github.com/BLAKE3-team/BLAKE3) crypto library built when installing KERI.
3. Install KERI: `pip install keri==0.6.8`
4. Install KASLcred

### Dependencies

KASLCred depends on the following libraries being installed:

Rust toolchain (for Blake3 dependency)

#### Libsodium

The Homebrew installation of Libsodium is not sufficient, or did not work for me. I had to do the following instructions like stated in Libsodium's Gitbook [Installation documentation](https://libsodium.gitbook.io/doc/installation)

Download a tarball of libsodium, preferably the latest stable version, then follow the ritual:
```bash
./configure
make && make check
sudo make install
```


#### [KERIpy](https://github.com/WebOfTrust/keripy) version 1.0.0

```bash
python -m pip install keri=1.0.0
``` 

KERIpy further depends on the following set of dependencies being installed:

#### [Rust](https://www.rust-lang.org/tools/install) v1.60+

This is required for Blake3 dependency in KERI to be able to build.
```bash
# the "-s -- -y" options are for a silent, unattended install. Omit them if you want to configure the install.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Remember to set the PATH variable to include the Cargo binary directory like so:  PATH="$HOME/.cargo/bin:$PATH
```



## Development

Make sure to create a local environment with Pipenv.

Then install the Python build tool with `pip install build` and the release tool with `pip install twine`.

Installing from the root repo directory:

``` shell
python3 -m pip install -e ./
```