semvec/pypi-packages huggingface dataset:
GrammarEnhancer 1.1
Syntax Error Data Enhancement
Requires Python: >=3



# 语法错误数据增强

针对行业语法错误数据稀缺问题，提出语法错误替换方法，可以根据领域的数据进行语法错误制作，定制化行业模型。
目前支持缺字漏字、错别字错误、缺少标点、错用标点、主语不明、谓语残缺、宾语残缺、其他成分残缺、主语多余、虚词多余、其他成分多余、语序不当、动宾搭配不当、其他搭配不当等14种细粒度错误类型的替换。如下图所示：
![image](images/14error.png)

也可以对一个句子进行多种错误的替换，如下：

![image](images/example.png)




### 模型文件下载

pre_model下的ltp_small,下载地址：https://huggingface.co/LTP/small

### 获得2024CCL Task7 一等奖
2024CCL Task7: https://github.com/cubenlp/2024CCL_CEFE

博客经验分享：https://www.cnblogs.com/twnlp/p/18208637

评测论文：待发表
pixelterm-crystaltine 1.0.0
Terminal Graphics Rendering Library
Requires Python: >=3.10

# Pixelterm
## Render images, shapes, and videos in the terminal

Pixelterm allows you to draw on modern terminal windows using "pixels" instead of just characters.

The "pixels" Pixelterm uses are exactly 1 character wide and 1/2 of a character tall.

### Features
- Draw lines, boxes, custom fonts*, images, and gradients on "frames" (representations of pixels)
- Optimized rendering between frames (in case of animations/videos)
- Flexible coloring/styling utility for printing text with any foreground/background color and style (bold, italic, underline, etc.)

*All custom fonts must be monospaced, and only one is provided by default. For details on how to create your own, see `pixelterm/font.py`. Note that these fonts will be relatively large because of the low number of pixels that can fit on a terminal screen.

### Installation
```
pip install pixelterm
```

Dependencies: numpy, scikit-image, pillow

### Examples
- Bad Apple!! (`examples/bad_apple`)
- Bad Apple!! w/ transparent DVD screensavers bouncing around (`examples/terrible_apple`)
sqlormx 0.5.0
A easy，single table ORM framework for python. Support MySQL, PostgreSQL, SQLite etc.
Requires Python: >=3.6
Keywords: SQL, MySQL, PostgreSQL, SQLite, Database, Python, RDB

Usage Sample
''''''''''''

.. code:: python

    from sqlormx import Model, db
    from dataclasses import dataclass

    @dataclass
    class Person(Model):
        __table__ = 'person'
        id: int = None
        name: str = None
        age: int = None

    if __name__ == '__main__':
        db.init('test.db', driver='sqlite3', show_sql=True, debug=True)
        db.init_db("postgres://user:password@127.0.0.1:5432/testdb", driver='psycopg2', pool_size=5)
        db.init_db(host='127.0.0.1', port='3306', user='xxx', password='xxx', database='test', pool_size=5, show_sql=True)

        effected_rowcount = Person.insert(name='tianqi', age=77)

        persons = Person.query(name='tianqi')
        # select id, name, age from person where name = :name
        # result:
        # {'id': 7, 'name': 'tianqi', 'age': 77}

        persons = Person.query(name__eq='zhangsan')
        # select id, name, age from person where name = :name
        # result:
        # [{'id': 3, 'name': 'zhangsan', 'age': 15}]

Transaction
'''''''''''

.. code:: python

    from sqlormx import trans

    @trans
    def test_transaction():
        insert_func(....)
        update_func(....)


    def test_transaction2():
        with trans():
            insert_func(....)
            update_func(....)


If you want to operate MySQL database, may be you need MySqlx: https://pypi.org/project/mysqlx

If you want to operate PostgreSQL database, may be you need MySqlx: https://pypi.org/project/pgsqlx

If you just wanted a simple sql executor, may be you need sqlx-exec: https://pypi.org/project/sqlexecx
sqlexecutorx 1.8.2
A easy、simple thread safe sql executor for Python with connection pool. Support MySQL, PostgreSQL, SQLite etc.
Requires Python: >=3.6
Keywords: SQL, MySQL, PostgreSQL, SQLite, Database, Python, RDB

Usage Sample
''''''''''''

.. code::

       import sqlexecutorx as db

       if __name__ == '__main__':
          db.init('test.db', driver='sqlite3', debug=True)

          # or
          db.init("postgres://user:password@127.0.0.1:5432/testdb", driver='psycopg2', pool_size=5, debug=True)

          # or
          db.init(host='127.0.0.1', port='5432', user='xxx', password='xxx', database='testdb', driver='psycopg2')

          # if driver is 'pymysql' or 'mysql.connector' of MySQL, the select_key is 'SELECT LAST_INSERT_ID()'
          select_key = "SELECT currval('person_id_seq')"

          id = db.save(select_key, 'INSERT INTO person(name, age) VALUES(%s,%s)', 'wangwu', 38)

          persons = db.select('select id, name, age from person')
          # result:
          # (3, 'zhangsan', 15)
          # (4, 'lisi', 26)
          # (5, 'wangwu', 38)
          # (6, 'zhaoliu', 45)

          persons = db.select_one('select id, name, age from person where name = %s', 'zhangsan')
          # result:
          # (3, 'zhangsan', 15)

          args = [
           ('李四', 55),
           ('王五', 35),
          ]
          db.batch_execute('INSERT INTO person(name,age) VALUES(%s,%s)', *args)

          db.close()

Transaction
''''''''''''

.. code::

       from sqlexecutorx import trans

       @trans
       def test_transaction():
          insert_func(....)
          update_func(....)


       def test_transaction2():
          with trans():
              insert_func(....)
              update_func(....)
zip-cen-op 0.1.1
A tool to manipulate ZIP file Central Directory encryption flags
Requires Python: >=3.6

# ZIP-CEN-OP

ZIP-CEN-OP is a command-line tool for manipulating the encryption flags in ZIP file central directories. It allows you to add or remove encryption flags without actually encrypting or decrypting the contents, which can be useful for testing or working with systems that expect certain ZIP file characteristics.

## Features

- Add encryption flags to ZIP files (fake encryption)
- Remove encryption flags from ZIP files (fake decryption)
- Easy-to-use command-line interface

## Installation

You can install ZIP-CEN-OP using pip:

```
pip install zip-cen-op
```

## Usage

After installation, you can use the `zipcenop` command directly from your terminal:

```
zipcenop <option> <file>
```

Where:
- `<option>` is either `r` (recover/remove encryption flag) or `e` (encrypt/add encryption flag)
- `<file>` is the path to the ZIP file you want to manipulate

### Examples

To add an encryption flag to a ZIP file:

```
zipcenop e path/to/your/file.zip
```

To remove an encryption flag from a ZIP file:

```
zipcenop r path/to/your/file.zip
```

## Warning

This tool only manipulates the encryption flag in the ZIP file's central directory. It does not actually encrypt or decrypt the contents of the ZIP file. Use this tool responsibly and be aware of potential security implications.

## Contributing

Contributions to ZIP-CEN-OP are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Disclaimer

This tool is provided as-is, without any warranties. Always backup your files before using this or any other tool that modifies file structures.

## Contact

If you have any questions or feedback, please open an issue on the GitHub repository.

---

Remember to replace "path/to/your/file.zip" with actual examples if you prefer, and to update any details that might be specific to your implementation or preferences.
sk-algorand-Sanyam2315 0.0.1
A small example package
Requires Python: >=3.8

# SkTest

Sk_test is a Python package designed to filter out data from blockchain responses and upload the filtered data to a service bus. This utility is particularly useful for processing large datasets and ensuring efficient data handling in blockchain-related applications.

## Features

- Filter data from blockchain responses
- Upload filtered data to a service bus
- Designed for efficiency and ease of use
rsa-crypto-manager 0.0.1
RSA cryptography library
Keywords: python, rsa, crypto


# RSACryptoManager
RSAEncryptionHandler là một module Python cho phép thực hiện các thao tác mã hóa và giải mã bằng RSA. Module này sử dụng thư viện `cryptography` để cung cấp các chức năng chính bao gồm mã hóa, giải mã, tạo khóa RSA, ký và xác minh chữ ký số.

### Author: Anhdev99

### Website: https://anhdev99.com


## Cài đặt

Trước khi sử dụng module, bạn cần cài đặt thư viện `cryptography`:

```bash
pip install cryptography
```

## Sử dụng

### 1. Tạo một đối tượng RSACryptoManager

```python
from rsa_crypto_manager import RSACryptoManager

crypto = RSACryptoManager()
```

### 2. Tạo cặp khóa RSA

```python
public_key, private_key = crypto.gen_rsa_key(key_size=2048)
```


### 3. Mã hóa dữ liệu
```python
data_to_encrypt = "Hello, World!"
encrypted_data = crypto.encrypt(data_to_encrypt, public_key)
print(f"Encrypted Data: {encrypted_data}")
```

### 4. Giải mã dữ liệu
```python
decrypted_data = crypto.decrypt(encrypted_data, private_key)
print(f"Decrypted Data: {decrypted_data}")
```

### 5. Ký dữ liệu
```python
data_to_sign = "Important message"
signature = crypto.sign(data_to_sign, private_key)
print(f"Signature: {signature}")
```

### 6. Xác minh chữ ký
```python
is_valid = crypto.verify(data_to_sign, signature, public_key)
print(f"Signature valid: {is_valid}")
```

## Các hàm trong module

### `gen_rsa_key(key_size: int) -> [str, str]`

Tạo một cặp khóa RSA.

- `key_size`: Kích thước của khóa (ví dụ: 2048).
- Trả về: Một danh sách chứa khóa công khai và khóa riêng tư dưới dạng chuỗi đã mã hóa Base64.

### `encrypt(data_to_encrypt: str, pub_cer: str) -> str`

Mã hóa dữ liệu bằng khóa công khai.

- `data_to_encrypt`: Dữ liệu cần mã hóa.
- `pub_cer`: Khóa công khai dưới dạng chuỗi Base64.
- Trả về: Dữ liệu đã mã hóa dưới dạng chuỗi Base64.

### `decrypt(data_encrypted: str, priv_key_pem: str) -> str`

Giải mã dữ liệu bằng khóa riêng tư.

- `data_encrypted`: Dữ liệu đã mã hóa dưới dạng chuỗi Base64.
- `priv_key_pem`: Khóa riêng tư dưới dạng chuỗi Base64.
- Trả về: Dữ liệu đã giải mã dưới dạng chuỗi.

### `sign(data_to_sign: str, private_key: str, is_file: bool = False) -> str`

Ký dữ liệu bằng khóa riêng tư.

- `data_to_sign`: Dữ liệu cần ký.
- `private_key`: Khóa riêng tư dưới dạng chuỗi Base64.
- `is_file`: (Tùy chọn) Chỉ định nếu `private_key` là đường dẫn tới file chứa khóa.
- Trả về: Chữ ký số dưới dạng chuỗi Base64.

### `verify(data_to_verify: str, signed_data: str, pub_cer: str, is_file: bool = False) -> bool`

Xác minh chữ ký số bằng khóa công khai.

- `data_to_verify`: Dữ liệu cần xác minh.
- `signed_data`: Chữ ký số dưới dạng chuỗi Base64.
- `pub_cer`: Khóa công khai dưới dạng chuỗi Base64.
- `is_file`: (Tùy chọn) Chỉ định nếu `pub_cer` là đường dẫn tới file chứa khóa.
- Trả về: `True` nếu chữ ký hợp lệ, `False` nếu không hợp lệ.