semvec/pypi-packages huggingface dataset:
awesome-check-link 0.1.6
Check if links in md file and more particuraly in awesome-list are down or not.
License: MIT
Keywords: awesome-check-link,awesome,awesome list,checker,down,link checker

[![codecov](https://codecov.io/gh/remiflavien1/awesome-check-link/branch/master/graph/badge.svg)](https://codecov.io/gh/remiflavien1/awesome-check-link)  [![PyPI version](https://badge.fury.io/py/awesome-check-link.svg)](https://badge.fury.io/py/awesome-check-link) [![Requirements Status](https://requires.io/github/remiflavien1/awesome-check-link/requirements.svg?branch=master)](https://requires.io/github/remiflavien1/awesome-check-link/requirements/?branch=master) [![Code Coverage](https://github.com/remiflavien1/awesome-check-link/workflows/Code%20coverage/badge.svg)](https://github.com/remiflavien1/awesome-check-link/actions?query=workflow%3A%22Code+coverage%22) [![Quality check](https://github.com/remiflavien1/awesome-check-link/workflows/Quality%20check/badge.svg)](https://github.com/remiflavien1/awesome-check-link/actions?query=workflow%3A%22Quality+check%22)

# awesome-check-link

Check if links in md file and more particularly in awesome-list are down or not.

## Install

You can install ```awesome-check-link``` either via pip (PyPI) or from source.
```bash
python3 -m pip install awesome-check-link
```
Or manually:
```
git clone https://github.com/remiflavien1/awesome-check-link
cd awesome-check-link
python3 setup.py install
```

To upgrade ```aclinks```: 
```sh
python3 -m pip  install --upgrade awesome-check-link
```

## Usage
### CLI 

```sh
$ python3 -m aclinks --help  
Awesome Check Links 

Usage:
    aclinks [--verbose --exit --down] -f FILE
    aclinks (-h | --help | --version)

Options:
    -f --file       Markdown file to scan.
    -e --exit       Stop and raise error if a site is down.
    -d --down       Show only down links and their line number.
    -v --verbose    Verbose mode. Print more to stdout.
    -h --help       Show this help.
    --version       Show version.
```

Example of output for the [Awesome-anti-forensic](https://github.com/remiflavien1/awesome-anti-forensic)
```sh
$ git clone https://github.com/remiflavien1/awesome-anti-forensic
$ cd awesome-anti-forensic
$ aclinks -vd -f README.md # only display down links

At line 24 : https://www.paterva.com/web7/buy/maltego-clients/casefile.php : Moved Permanently ( 301 )
At line 61 : https://www.bishopfox.com/resources/tools/other-free-tools/mafia/ : Moved Permanently ( 301 )
At line 64 : https://www.paterva.com/web7/buy/maltego-clients/maltego-ce.php : Moved Permanently ( 301 )
```

With exit mode (```--exit flag```), exit the program if one link is down. Can be integrated in a CI/CD workflow.

## License

[MIT](LICENSE)
thaitaxrefund 0.4.5
Thai tax refund checker
License: MIT
Keywords: thai tax refund

# thai-tax-refund
check status for thai tax refund

https://www.rd.go.th/publish/27942.0.html


## Installation

available on pip https://pypi.org/project/thaitaxrefund/

```bash
pip install thaitaxrefund
```

## Usage

Command line usage

```
thaitaxrefund THAI_ID THAI_FIRSTNAME THAI_LASTNAME [--year=<THAI_YEAR> --json]
```

command line example

```bash
thaitaxrefund 1111111111111 บิ๊ก ตู่
```

```python
import thaitaxrefund

thai_id = '1111111111111'
thai_name = 'บิ๊ก'
thai_surname = 'ตู่'
result = thaitaxrefund.check(thai_id, thai_name, thai_surname, thai_year=2562)
```

### Example result
```json
{
    "process_text": "พิจารณาคืนภาษี",
    "code": "MSG107",
    "countByName": -1,
    "countByNameNid": 1,
    "countByNid": -1,
    "criteria": {
        "dln": "",
        "fName": "บิ๊ก",
        "formCode": "",
        "lName": "ตู่",
        "nid": "1111111111111",
        "taxYear": "2562",
        "tin": "",
        "txpTtlText": ""
    },
    "formData": {
        "dln": "ภงด91000000000000000000000",
        "fName": "บิ๊ก",
        "formCode": "ภงด91",
        "lName": "ตู่",
        "nid": "1111111111111",
        "taxYear": "2562",
        "tin": "1111111111",
        "txpTtlText": "นาย"
    },
    "formDetailList": [
        {
            "effDate": "12/03/2563",
            "ofcName": "กองบริหารการเสียภาษีทางอิเล็กทรอนิกส์",
            "pndType": "ภ.ง.ด.91",
            "seq": 1
        }
    ],
    "formSendDocDetail": null,
    "ipAddress": "xxx.xxx.xxx.xxx",
    "message": "อยู่ระหว่างดำเนินการ หากมีข้อสงสัย โปรดติดต่อ<br>สำนักงานสรรพากรพื้นที่กรุงเทพมหานคร 26<br>หมายเลขโทรศัพท์ 0-2454-8475,0-2454-8618-20 ต่อ 125-127,0-2454-8623-24 ต่อ 125-127",
    "messageEN": "In process. Please contact Revenue Branch Office<br>Bangkok Area Revenue Office 26<br>Tel. 0-2454-8475,0-2454-8618-20 ต่อ 125-127,0-2454-8623-24 ต่อ 125-127",
    "processPicName": "process_3",
    "reqDoc": false,
    "reqNewK39": false,
    "searchPromptPay": false,
    "uploadConsiderDoc": true,
    "uploadDoc": false,
    "urlReqNewK39": "",
    "urlSearchPromptPay": "",
    "urlUploadDocument": "",
}
```
PureMySQL 0.0.10
一个MySQL简单操作方式
License: MIT
Keywords: pure mysql

# PureMySQL
![PyPI](https://img.shields.io/pypi/v/PureMySQL.svg)

一个MySQL简单操作方式

```
pip install PureMySQL
```

- https://github.com/mouday/PureMySQL
- https://pypi.org/project/PureMySQL/

代码示例
```python
# -*- coding: utf-8 -*-

from puremysql import PureMysql

db_config = {
    "database": "mydata",
    "user": "root",
    "password": "123456",
    "host": "127.0.0.1",
    "port": 3306,
}

pure_mysql = PureMysql(**db_config)

# 或者
# url = "mysql://root:123456@127.0.0.1:3306/mydata"
# pure_mysql = PureMysql(db_url=url)

student = pure_mysql.table("student")


# 插入数据
def test_insert():
    data = {
        "name": "Tom",
        "age": 25
    }

    count = student.insert(data)
    print(count)  # 1

    data = [
        {
            "name": "Tom",
            "age": 26,

        },
        {
            "name": "Jack",
            "age": 27,

        }
    ]
    count = student.insert(data)
    print(count)  # 2


# 删除数据
def test_delete():
    ret = student.delete("id=13")
    print(ret)  # 1

    ret = student.delete_by_id(12)
    print(ret)  # 1


# 更新数据
def test_update():
    data = {
        "name": "Tom"
    }
    ret = student.update(data, "name='Tom'")
    print(ret)  # 1

    ret = student.update_by_id(data, 1)
    print(ret)  # 1


# 查询数据
def test_select():
    ret = student.select(["name", "age"], "id=1")
    print(ret)
    # [{"name": "Tom", "age": 25}]

    ret = student.select("name, age", "id=1")
    print(ret)
    # [{"name": "Tom", "age": 25}]

    ret = student.select_one(["name", "age"], "id=1")
    print(ret)
    # {"name": "Tom", "age": 25}

    ret = student.select_by_id("name, age", 2007)
    print(ret)
    # {"name": "Tom", "age": 25}

```