semvec/pypi-packages huggingface dataset:
assertP 1.0.2
数据库数据(字典)断言工具, compare tool for db data

## Description
本工具支持两个字典一致性compare，可用于自动化断言，例如数据库实际落库数据与预期结果比较；

## 支持场景
1.落单条数据场景 
2.落多条数据场景
## 注意事项
使用本工具前注意事项：
1.安装依赖库，texttable，参见requirements.txt
2.需要将断言的字典值转化为string格式, 否则会报类型错误：
例如TypeError: argument of type 'int' is not iterable

## 例子
1.AssertPy方法
```commandline
from AssertP import AssertPy

act = {'user_id': '20210100002', 'pay_status': 'SUCCESS'}
exp = {'user_id': '20210100002', 'pay_status': 'SUCCESS'}
AssertPy("tName", act, exp)
```
执行结果
```commandline
+------------+-----------+-----------+--------+
|   tName    |  actual   |  expect   | result |
+============+===========+===========+========+
| user_id    | 2.021e+10 | 2.021e+10 | true   |
+------------+-----------+-----------+--------+
| pay_status |   SUCCESS |  SUCCESS  | true   |
+------------+-----------+-----------+--------+
```
2.AssertPy_multi方法
```commandline
from AssertP import AssertPy_multi

tName = "TestTable"
act = [{'order_id': '2022010818343700000003', 'user_id': '20210100001', 'pay_status': 'SUCCESS'},
       {'order_id': '2022010818343700000003', 'user_id': '20210100001', 'pay_status': 'SUCCESS'}]
exp = [{'order_id': '2022010818343700000003', 'user_id': '20210100002', 'pay_status': 'PAYING'},
       {'order_id': '2022010818343700000003', 'user_id': '20210100001', 'pay_status': 'SUCCESS'}]
AssertPy_multi(tName, act, exp)
```
执行结果
```commandline
+------------+-----------+-----------+--------+
| TestTable  |  actual   |  expect   | result |
+============+===========+===========+========+
| user_id    | 2.021e+10 | 2.021e+10 | true   |
+------------+-----------+-----------+--------+
| pay_status |   SUCCESS |  SUCCESS  | true   |
+------------+-----------+-----------+--------+
| order_id   | 2.022e+21 | 2.022e+21 | true   |
+------------+-----------+-----------+--------+
| user_id    | 2.021e+10 | 2.021e+10 | false  |
+------------+-----------+-----------+--------+
| pay_status |   SUCCESS |  PAYING   | false  |
+------------+-----------+-----------+--------+
| order_id   | 2.022e+21 | 2.022e+21 | true   |
+------------+-----------+-----------+--------+
| user_id    | 2.021e+10 | 2.021e+10 | true   |
+------------+-----------+-----------+--------+
| pay_status |   SUCCESS |  SUCCESS  | true   |
+------------+-----------+-----------+--------+
```
seckerwiki 2.0.12
A collection of scripts used to manage my personal Foam workspace
Requires Python: >=3.6,<4.0

# Seckerwiki Scripts

This package is a CLI that helps me manage my markdown-based [Foam](https://foambubble.github.io/) workspace, or my "Personal Wiki".
I store everything in my wiki, from journal entries to uni notes.

## Installation

Version `1.x` had requirements for extra dependencies to get the lecture-to-markdown converter working properly. Since I no longer go to uni, I don't need those scripts anymore, so the installation is as simple as:

```
pip3 install seckerwiki
```

Once installed, run this command to generate the config files:

```
wiki setup
```

## Commands

### Setup

This command does a couple of things:

- Creates a `config.yml` file in `~/.config/seckerwiki`, which is used to configure some things in the repo.
- Creates a `credentials` file in `~/.config/seckerwiki/`, which stores secrets.

Edit the credentials file to add a secret passsword used for decrypting your Journal (see below).

### log 

Alias for git log, with some pretty graph options.

### status

Runs `git status`. Basically just a convenience function, so you don't have to `cd` into a wiki dir.

### commit 

does a git commit, generating a commit message. If there are a number of staged files, the commit header shows the top level folders instead.

Args:

- `-y`: skip verification and commit
- `-a`: also do `git add --all`

### sync

perform a `git pull` (rebase) then `git push`

### journal

I use my wiki to store encrypted journal entries.

Run `wiki journal` to generate a new empty journal entry in the journal folder specified in the settings. `wiki journal --encrypt` replaces all the `.md` files with `.md.asc` files, encrypting the files with a symmetric key specified in the settings. `wiki journal --decrypt [filename]` decrypts a file in the encrypted journal directory and prints it to stdout.

### toc

Generates a table of contents for other files/subfolders the markdown file is.

Add the following tags to the "contents/readme" page in each subfolder:

```
<!--BEGIN_TOC-->
<!--END_TOC-->
```

The script will replace the content between these two tags with the contents. For example:

```
<!--BEGIN_TOC-->
Pages:
- [hardware](./hardware.md)
- [iot-development](./iot-development.md)
- [iot-platforms](./iot-platforms.md)
- [platformio-esp32-notes](./platformio-esp32-notes.md)
- [rtoses](./rtoses.md)

<!--END_TOC-->
```

This is used primarily so [Foam](https://foambubble.github.io/foam/features/graph-visualisation.html) can build a graph that collects pages within a folder together by a node.

### stats

Prints some cool stats about the wiki:

- `commits made` - number of git commits since repo was created
- `Number of notes` - number of markdown files in repo
- `total lines` - non-empty lines in `.md` files
- `largest files` - paths to the top 3 longest `.md` files


## Developing

I use [poetry](https://python-poetry.org/) for building/publishing the package. Read their docs.