Skip to main content

a string split fuction,like split() then ignore case.

Project description

luckdog是类似于内置函数split的方法,扩展支持了分割符号忽略大小写特征的分割。

使用说明:

1) 安装:

pip install luckstring

2) 执行

from luckstring import luckstring
string = "`product_group_id` VARCHAR(64) NULL DEFAULT NULL comment '产品组的ID'"
luckstring.split(string, "COMMENT") 

注: 为方便后期操作方便

可以 把上面的 运行命令放到bat或shell文件中,下次直接双击运行

#######################################################################

Last update time: 2022-04-01

By: 9034.com

#######################################################################

更新日志: 2022-04-01 v1.0.0 初始化

#######################################################################

打包步骤

## 打包 检查
python setup.py check 
## 打包 生成
python setup.py sdist
## 上传
twine upload dist/*
## 使用
pip install luckstring
## 更新
pip install --upgrade luckstring
## 卸载
pip uninstall -y luckstring 

#######################################################################

MANIFEST.in 配置教程

include pat1 pat2 ...   #include all files matching any of the listed patterns

exclude pat1 pat2 ...   #exclude all files matching any of the listed patterns

recursive-include dir pat1 pat2 ...  #include all files under dir matching any of the listed patterns

recursive-exclude dir pat1 pat2 ... #exclude all files under dir matching any of the listed patterns

global-include pat1 pat2 ...    #include all files anywhere in the source tree 
matching — & any of the listed patterns

global-exclude pat1 pat2 ...    #exclude all files anywhere in the source tree matching — & any of the listed patterns

prune dir   #exclude all files under dir

graft dir   #include all files under dir

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luckstring-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file luckstring-1.0.0.tar.gz.

File metadata

  • Download URL: luckstring-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for luckstring-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f82f1e4801932ad88da32d176fb17c200c480b978543d6811c92528f817b280a
MD5 944e69cfd1a114ba9afc80ca28293960
BLAKE2b-256 9c1b3fd17ca14ad1ba48853c315ae747fb466024f7e06854529ebbff95c24a3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page