semvec/pypi-packages huggingface dataset:
h-breaker 1.0.0
文件头破坏者，用于简单加密文件头/尾部
License: MIT

<p align="center">
      <strong>
        <a href="https://github.com/ButterAndButterfly/H-Breaker" target="_blank">Head-Breaker 爆头者</a>
      </strong>  针对文件恶意扫描解析而生  
  <br>
      源自<strong>
        <a href="https://github.com/ButterAndButterfly" target="_blank">ButterAndButterfly</a><br>
      </strong>  
        Butter, 寓意宅男; Butterfly, 寓意美好的事物。 
        <br/> 美好的世界由我们创造!  
</p>


## 技术原理  
#### 可读性破坏  
+ 当我们解析某类文件(比如`.mp4`/`.jpg`)时，往往需要根据该类文件约定俗成的规范进行读取。  
而不论哪种规范，头部往往是关键。在大多数情况下，更改头部(必要的时候加上尾部)的寥寥几个几十个字节即可使得文件完全无法解析。  
    + **当然文本除外，缺失几个字节对文本后续阅读基本上没有影响**  
    + **针对某些压缩算法(尤其是不带密码的)，因为有一定的冗余的修复信息，一般密钥需要更长一点，且最好对尾部进行一定的破坏**  

#### 可还原性  
本项目根据密钥字符串的字节长度，读取文件相应长度的头/尾部，采用逐字节做加法取模的方法进行加密破坏。  
相应的，自然可以采用逐字节做减法取模的方法进行解密还原。  

#### 转换速度  
相比较于各种压缩/加密算法，由于我们只针对密钥长度的文件部分进行破坏/还原，无论文件有多大，速度低于秒级，快的飞起。  

  
## 如何安装  
```
pip install --upgrade h-breaker

或者克隆本项目后
pip setup.py install
```
或者前往[Release](https://github.com/ButterAndButterfly/H-Breaker/releases)页面下载`exe`文件

## 如何使用  
```
usage: h-breaker [-h] [-breaks | -recover] [-all | -only_tail] path key

version 1.0.0 : 文件头破坏者，用于简单加密文件头/尾部

positional arguments:
  path             待处理的文件路径
  key              密钥

optional arguments:
  -h, --help       show this help message and exit
  -breaks, -b      破坏文件
  -recover, -r     恢复文件
  -all, -a         同时破坏文件头+文件尾
  -only_tail, -ot  仅破坏尾巴
```

#### 举例
+ 破坏文件`test.mp4`，口令字符串为`3.1415926`  
```
h-breaker ./test.mp4 3.1415926
```

+ 还原文件`test.mp4`(假设已经被破坏，相应的口令字符串为`3.1415926`)  
```
h-breaker ./test.mp4 3.1415926 -r
```

+ 破坏文件`test.zip`，口令字符串为(需要足够长)`12345678901234567890123456789012345678901234567890`  
```
h-breaker ./test.zip 12345678901234567890123456789012345678901234567890 -a
```

+ 还原文件`test.zip`(假设已经被破坏，相应的口令字符串为`12345678901234567890123456789012345678901234567890`)  
```
h-breaker ./test.zip 12345678901234567890123456789012345678901234567890 -a -r
```

## **重要的话**
+ 为了提高处理速度，我们直接对原文件进行读写操作，而不是再copy一个副本，在进行操作之前请确认文件已经备份！！！   
+ 如果不小心误操作了，不用慌，记住密钥，使用**相反**操作即可还原。

## LICENSE
MIT
swtoolkit 0.1.1
A SolidWorks Toolkit for Python
License: MIT
Requires Python: >=3.9,<4.0

.. image:: docs/images/logo_swtoolkit.png
        :alt: SW ToolKit
        :align: center
        :width: 600

.. This '|' generates a blank line to avoid sticking the logo to the
   section.


.. image:: https://img.shields.io/pypi/v/swtoolkit.svg?style=flat-square
        :target: https://pypi.python.org/pypi/swtoolkit
        :alt: PyPi Version

.. image:: docs/images/intro_code.png
        :alt: |
        :width: 600
        :align: center

SolidWorks Toolkit for Python
=============================
**SW ToolKit** allows you to leverage Python to quickly develop powerful scripts and programs to automate your SolidWorks workflow.

* Free software: MIT license

|Made With Python|

.. |Made With Python| image:: http://ForTheBadge.com/images/badges/made-with-python.svg
        :target: https://www.python.org/
        :alt: |
flake8-printf-formatting 1.1.2
flake8 plugin which forbids printf-style string formatting
License: MIT
Requires Python: >=3.6

[![PyPI version](https://img.shields.io/pypi/v/flake8-printf-formatting.svg)](https://pypi.org/project/flake8-printf-formatting/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/flake8-printf-formatting.svg)](https://pypi.org/project/flake8-printf-formatting/)
![Tests](https://github.com/atugushev/flake8-printf-formatting/workflows/Tests/badge.svg)
[![Coverage](https://codecov.io/gh/atugushev/flake8-printf-formatting/branch/master/graph/badge.svg)](https://codecov.io/gh/atugushev/flake8-printf-formatting)

flake8-printf-formatting
========================

flake8 plugin which forbids printf-style string formatting

## Installation

`pip install flake8-printf-formatting`

## Codes

| Code   | Description                               |
|--------|-------------------------------------------|
| MOD001 | do not use printf-style string formatting |

## Rationale

The official Python 3 documentation [doesn't recommend](https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting)
printf-style string formatting:

> The formatting operations described here exhibit a variety of quirks that
> lead to a number of common errors (such as failing to display tuples and
> dictionaries correctly). Using the newer formatted string literals,
> the `str.format` interface, or template strings may help avoid these errors.
> Each of these alternatives provides their own trade-offs and benefits of simplicity,
> flexibility, and/or extensibility.

### Bad

```python
print("Hello, %s!" % name)
```

### Good

```python
print("Hello, {name}!".format(name=name))
```

### Even better

```python
print(f"Hello, {name}!")
```

## As a pre-commit hook

See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions

Sample `.pre-commit-config.yaml`:

```yaml
-   repo: https://gitlab.com/pycqa/flake8
    rev: 3.7.8
    hooks:
    -   id: flake8
        additional_dependencies: [flake8-printf-formatting]
```

## Release process

1. Bump version in `setup.cfg`.
1. Add a commit "Release vX.Y.Z".
1. Make sure checks still pass.
1. [Draft a new release](https://github.com/atugushev/flake8-printf-formatting/releases/new) with a tag name "X.Y.Z" and describe changes which involved in the release.
1. Publish the release.
nbc 1.2.0
Number Base Converter
License: MIT

# Number Base Converter by v01d

*Converts string representation from one base to another*

## Installation

### From PyPI (recommended)

Via pip

```cmd
pip install --user nbc
```

### From GitLab

```cmd
git clone https://gitlab.com/v01d-gl/number-base-converter.git
cd number-base-converter
python setup.py install --user
```

## Docs

See docstring.

## Example

See doctests.