semvec/pypi-packages huggingface dataset:
SomeTools 0.1.44
Some python tools
Requires Python: >=3.8
Keywords: Python,Tools

# SomeTools 一些常用工具

[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=plastic)](./LICENSE)
[![pypi](https://img.shields.io/pypi/v/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![wheel](https://img.shields.io/pypi/wheel/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![pyversions](https://img.shields.io/pypi/pyversions/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![Downloads](https://pepy.tech/badge/SomeTools?style=plastic)](https://pepy.tech/badge/SomeTools)

---------------------------------------------

一些方便日常使用的工具

* 将输入的任何类型的日期字符串类型转化为datetime.datetime类型的日期对象
* 移除一个字符串中的回车换行空格制表符等内容
* 将中文字符转为其拼音的首字母
* 更加方便的日志记录工具
* 繁体简体中文汉字转换工具
* url编码解码
* 正则表达式提取字符串中的中文内容工具
* 检测 bytes 编码
* 查看硬件信息
* 获取本月的中国法定节假日和工作日

* redis创建连接同步、异步工具
* 异步布隆过滤工具
* 异步 MySql orm
* 同步 MySql 连接池
* 图片处理
* 进程池
* 查看操作系统信息
* 获取本机ip地址
* AES、RSA加密解密
* base64、md5封装

## 安装

``` bash
$ python -m pip install --upgrade pip
$ pip install SomeTools -i https://pypi.python.org/simple
```


## 使用

1.同步工具使用参考demo.py

2.异步工具使用参考async_demo.py
casechecking 0.0.8
OS Information Package
Requires Python: >=3.7

# Case Converter

A robust python package for transforming string cases such as `Hello, world!` into
 `helloWorld` (lowitcase).

## General usage

```python
from casechecking import lowitcase

lowitcase("Hello, world!") # output: helloWorld
```

## Available conversions

### `lowitcase`

```python
from casechecking import lowitcase

lowitcase("Hello, world!")
```

```text
helloWorld
```

### `upitcase`

```python
from casechecking import upitcase

upitcase("Hello, world!")
```

```text
HELLO-WORLD
```

### `flatcase`

```python
from casechecking import flatcase

flatcase("Hello, world!")
```

```text
helloworld
```

### `kebabcase`

```python

from casechecking import kebabcase

kebabcase("Hello, world!")
```

```text
hello-world
```

### `macrocase`

```python
from casechecking import macrocase

macrocase("Hello, world!")
```

```text
HELLO_WORLD
```

#### Additional options

`delims_only : bool` - Only consider delimiters as boundaries (default: `False`).

### `pascalcase`

```python
from casechecking import pascalcase

pascalcase("Hello, world!")
```

```text
HelloWorld
```

### `snakecase`

```python
from casechecking import snakecase

snakecase("Hello, world!")
```

```text
hello_world
```

## Options for all conversions

### Stripping punctuation

Punctuation is stripped when doing a case conversion. However, should you
wish to keep the punctuation you can do so by passing `strip_punctuation=False`.

```python
lowitcase("Hello, world!", strip_punctuation=False) # output: hello,World!
```

### Delimeter customization

Default delimiters used to denote a token boundary.

```python
DELIMITERS = " -_"
```

You can pass `delims` to each case conversion function to specify a custom
set of delimiters.

```python
# Use a pipe `|` as the only delimiter.
lowitcase("Hello,|world!", delims="|") # output: helloWorld
```

## Behavior

### Delimiters

If multiple delimeter characters are identified next to eachother they will be considered as a single delimeter. For example, `-_` contains 2 different delimeter characters and is considered a single delimeter.

### Boundary definitions

|Name|Description|
|---|---|
|OnDelimeterUppercaseNext|On a delimieter, upper case the following character|
|OnDelimeterLowercaseNext|On a delimeter, lower case the following character|
|OnUpperPrecededByLowerAppendUpper|On an upper case character followed by a lower case character, append the upper case character|
|OnUpperPrecededByLowerAppendLower|On an upper case character preceeded by a lower case character append the lower case character|
|OnUpperPrecededByUpperAppendJoin|On an upper case caharacter preceeded by an upper append the join character. Join characters are context dependent. Example: macro cast join character is `_`|
|OnUpperPrecededByUpperAppendCurrent|On an upper case character preceeded by an upper case character append the upper case character|

## Contributing

1. Write clean code.
2. Write new tests for new use-cases.
3. Test your code before raising a PR.
4. Use [black](https://pypi.org/project/black/) to format your code.