# Lite Software eXtension
Contain 11 modules and 165 functions.
## About
- __Author:__ Lishixian
- __QQ:__ 11313213
- __Email:__ lsx7@sina.com
- __Github:__ https://github.com/znsoooo/lishixian
- __License:__ MIT License. Copyright (c) 2021-2024 Shixian Li (znsoooo). All rights reserved.
## Install
Install on pip:
```bash
pip install lishixian --upgrade
```
Install on Github:
```bash
git clone https://github.com/znsoooo/lishixian
cd lishixian
pip install .
```
## Usage
Use it in Python script:
```python
import lishixian as lsx
lsx.help()
```
The package can also be used in console, it takes one or zero parameter:
```bash
$ lishixian help
Commands: help version ip mac user crc md5 inv create delete detect escape unescape quote unquote hex2bin bin2hex hex2half half2hex hex2float float2hex hex2double double2hex / \ \\
$ lishixian float2hex 1.0
3f800000
```
## Modules
### Top module
- all()
- help()
- version()
### Module 'new'
- print(*value, file=True)
- loop(start=0, step=1)
- randbytes(n)
- breakpoint()
- popen(cmd, encoding=None)
- listdir(*paths)
- findall(pattern, string, flags=0)
- split(arr, cols)
- sum(seq)
- pack(fmt, values)
- unpack(fmt, string)
- system(cmd, encoding=None)
- detect(path)
- walk(paths='.', exts='')
- bytes(data, width=16)
- memoryview(data, width=16, offset=0)
### Module 'line'
- fake(*v, **kv)
- pause()
- start(fn, *v, **kv)
- freeze(fn, *v, **kv)
- crc(path)
- md5(path)
- inv(path)
- create(path)
- delete(path)
- unique(arr)
- flatten(arr)
- reshape(arr, width)
- transpose(arr)
- join(*string, sep='')
- wash(func, arr)
- dumps(data)
- indent(width, text)
- str2dict(text)
- time(sep='')
- date(sep='')
- stamp(fmt)
- sort_kv(dic, reverse=False)
- sort_key(dic, reverse=False)
- sort_num(text)
- hex2bin(hex)
- bin2hex(bin)
- half2hex(num)
- hex2half(hex)
- float2hex(num)
- hex2float(hex)
- double2hex(num)
- hex2double(hex)
- ip()
- mac()
- user()
- tuple2item(item)
### Module 'util'
- log(*value, file='log.txt')
- redirect(file='log.txt', prefix='[%Y-%m-%d %H:%M:%S]')
- sudo()
- kill(ths=None)
- check(obj, patt='.*', stdout=True)
- print_paths()
- print_lines(lines)
- print_table(table)
- clock()
- timer()
- progress(*value, interval=1)
- fps()
- count(add=1, name='default')
- recent(iterable, max=0, strict=False)
- parser2opt(parser, opt='opt')
- p1 = dirname(path, new='')
- p2 = stem(path)
- p3 = ext(path)
- p12 = root(path, new='')
- p23 = basename(path, new='')
- p123(path, new='')
- select(p)
- file_mtime(path)
- file_ctime(path)
- file_utime(path, date)
- path_mark(path, mark='.bak')
- path_safe(path, repl=None)
- path_split(path)
- path_unique(path, dash='-', start=2)
- copy(src, dst, overwrite=True)
- move(src, dst, overwrite=True)
- factorize(num)
- primes(max)
- escape(s, quote=True)
- unescape(s)
- quote(string, safe='', encoding=None, errors=None)
- unquote(string, encoding='utf-8', errors='replace')
- b64encode(s)
- b64decode(s)
- urlopen(url, base='', query=None, fragment=None, data=None, headers=None, method=None, retry=1, timeout=10, strict=True)
- scan(format, string)
- findpair(text, pair='()', start=0)
- install(path)
- input_wait(msg)
- input_default(msg, default)
- Catch()
- catch = \<Catch object\>
### Module 'dec'
- main(fn)
- fn2parser(fn)
- fn2input(fn)
- timeit(fn)
- tracer(fn)
- protect(fn)
- surround(before=(), after=())
- hotkey(key='F12')
- threads(cnt)
### Module 'cls'
- Config(path, section='default', encoding='u8')
- Thread(target, *args, **kwargs)
- Tcp(addr, port)
- Udp(addr, port)
### Module 'reg'
- GetDir(name, local=False)
- DeleteRecu(key)
- DeleteKey(key, name='')
- SetKey(key, name='', val='')
- NewFilePy()
### Module 'windll'
- MessageBox(info, title='Message', style=0)
- DirDialog(message=None)
- OpenFileDialog(title=None, filter='', path='')
- SaveFileDialog(title=None, filter='', path='')
### Module 'doc'
- readb(path, size=-1)
- read(path, encoding='u8', strict=True)
- write(path, data='', encoding='u8')
- ReadIni(path, encoding='u8')
- WriteIni(path, dic, encoding='u8')
- ReadTxt(path, encoding='u8', sep=None)
- WriteTxt(path, data, encoding='u8', sep=' ')
- ReadCsv(path, encoding='utf-8-sig')
- WriteCsv(path, data, encoding='utf-8-sig', errors='ignore')
- WriteExcel(path, data, new_sheet='sheet1')
- OpenExcel(path)
- MergeCell(data, merge, merge_x=True, merge_y=True, strip_x=False)
- ReadExcel(path, merge_x=True, merge_y=True, strip_x=False)
- ReadSheet(path, index=0)
- Doc2Docx(path, overwrite=False)
- OpenDocx(path)
- ReadWordTexts(path)
- ReadWord(path, merge_x=True, merge_y=True, strip_x=False)
- ReadFile(path, merge_x=True, merge_y=True, strip_x=False)
- File2Csv(path, merge_x=True, merge_y=True, strip_x=False)
- ReadFiles(paths, merge_x=True, merge_y=True, strip_x=False)
### Module 'np'
- imread(path)
- imwrite(path, img)
- imshow(img, delay=50, title='')
- imsave(path)
- imiter(file_or_id)
### Module 'auto'
- shortcut(p=None, make=True)
- paste(word, tab=0)
- Monitor(func)
- Recoder(complete=False)
### Module 'gui'
- center(top)
- WrapBox(parent, w, label='')
- GetClipboard()
- SetClipboard(text)
- Mover(parent, widget)
- EventThread(parent, id, target=bool, *args, **kwargs)
## Extra
- Library [lsx](https://pypi.org/project/lsx) is as same as [lishixian](https://pypi.org/project/lishixian) in [pypi.org](https://pypi.org).
Raw data
{
"_id": null,
"home_page": "https://github.com/znsoooo/lishixian",
"name": "lishixian",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "lishixian lsx",
"author": "Shixian Li (znsoooo)",
"author_email": "lsx7@sina.com",
"download_url": "https://files.pythonhosted.org/packages/e3/eb/2e6f30eb1ee94ead997ef07f64348f56d4cad5cd8ceb1ff9ff427cfd6e0b/lishixian-0.4.0.tar.gz",
"platform": null,
"description": "# Lite Software eXtension\n\nContain 11 modules and 165 functions.\n\n\n## About\n\n- __Author:__ Lishixian\n- __QQ:__ 11313213\n- __Email:__ lsx7@sina.com\n- __Github:__ https://github.com/znsoooo/lishixian\n- __License:__ MIT License. Copyright (c) 2021-2024 Shixian Li (znsoooo). All rights reserved.\n\n\n## Install\n\nInstall on pip:\n\n```bash\npip install lishixian --upgrade\n```\n\nInstall on Github:\n\n```bash\ngit clone https://github.com/znsoooo/lishixian\ncd lishixian\npip install .\n```\n\n\n## Usage\n\nUse it in Python script:\n\n```python\nimport lishixian as lsx\nlsx.help()\n```\n\nThe package can also be used in console, it takes one or zero parameter:\n\n```bash\n$ lishixian help\nCommands: help version ip mac user crc md5 inv create delete detect escape unescape quote unquote hex2bin bin2hex hex2half half2hex hex2float float2hex hex2double double2hex / \\ \\\\\n\n$ lishixian float2hex 1.0\n3f800000\n```\n\n## Modules\n\n### Top module\n- all()\n- help()\n- version()\n\n### Module 'new'\n- print(*value, file=True)\n- loop(start=0, step=1)\n- randbytes(n)\n- breakpoint()\n- popen(cmd, encoding=None)\n- listdir(*paths)\n- findall(pattern, string, flags=0)\n- split(arr, cols)\n- sum(seq)\n- pack(fmt, values)\n- unpack(fmt, string)\n- system(cmd, encoding=None)\n- detect(path)\n- walk(paths='.', exts='')\n- bytes(data, width=16)\n- memoryview(data, width=16, offset=0)\n\n### Module 'line'\n- fake(*v, **kv)\n- pause()\n- start(fn, *v, **kv)\n- freeze(fn, *v, **kv)\n- crc(path)\n- md5(path)\n- inv(path)\n- create(path)\n- delete(path)\n- unique(arr)\n- flatten(arr)\n- reshape(arr, width)\n- transpose(arr)\n- join(*string, sep='')\n- wash(func, arr)\n- dumps(data)\n- indent(width, text)\n- str2dict(text)\n- time(sep='')\n- date(sep='')\n- stamp(fmt)\n- sort_kv(dic, reverse=False)\n- sort_key(dic, reverse=False)\n- sort_num(text)\n- hex2bin(hex)\n- bin2hex(bin)\n- half2hex(num)\n- hex2half(hex)\n- float2hex(num)\n- hex2float(hex)\n- double2hex(num)\n- hex2double(hex)\n- ip()\n- mac()\n- user()\n- tuple2item(item)\n\n### Module 'util'\n- log(*value, file='log.txt')\n- redirect(file='log.txt', prefix='[%Y-%m-%d %H:%M:%S]')\n- sudo()\n- kill(ths=None)\n- check(obj, patt='.*', stdout=True)\n- print_paths()\n- print_lines(lines)\n- print_table(table)\n- clock()\n- timer()\n- progress(*value, interval=1)\n- fps()\n- count(add=1, name='default')\n- recent(iterable, max=0, strict=False)\n- parser2opt(parser, opt='opt')\n- p1 = dirname(path, new='')\n- p2 = stem(path)\n- p3 = ext(path)\n- p12 = root(path, new='')\n- p23 = basename(path, new='')\n- p123(path, new='')\n- select(p)\n- file_mtime(path)\n- file_ctime(path)\n- file_utime(path, date)\n- path_mark(path, mark='.bak')\n- path_safe(path, repl=None)\n- path_split(path)\n- path_unique(path, dash='-', start=2)\n- copy(src, dst, overwrite=True)\n- move(src, dst, overwrite=True)\n- factorize(num)\n- primes(max)\n- escape(s, quote=True)\n- unescape(s)\n- quote(string, safe='', encoding=None, errors=None)\n- unquote(string, encoding='utf-8', errors='replace')\n- b64encode(s)\n- b64decode(s)\n- urlopen(url, base='', query=None, fragment=None, data=None, headers=None, method=None, retry=1, timeout=10, strict=True)\n- scan(format, string)\n- findpair(text, pair='()', start=0)\n- install(path)\n- input_wait(msg)\n- input_default(msg, default)\n- Catch()\n- catch = \\<Catch object\\>\n\n### Module 'dec'\n- main(fn)\n- fn2parser(fn)\n- fn2input(fn)\n- timeit(fn)\n- tracer(fn)\n- protect(fn)\n- surround(before=(), after=())\n- hotkey(key='F12')\n- threads(cnt)\n\n### Module 'cls'\n- Config(path, section='default', encoding='u8')\n- Thread(target, *args, **kwargs)\n- Tcp(addr, port)\n- Udp(addr, port)\n\n### Module 'reg'\n- GetDir(name, local=False)\n- DeleteRecu(key)\n- DeleteKey(key, name='')\n- SetKey(key, name='', val='')\n- NewFilePy()\n\n### Module 'windll'\n- MessageBox(info, title='Message', style=0)\n- DirDialog(message=None)\n- OpenFileDialog(title=None, filter='', path='')\n- SaveFileDialog(title=None, filter='', path='')\n\n### Module 'doc'\n- readb(path, size=-1)\n- read(path, encoding='u8', strict=True)\n- write(path, data='', encoding='u8')\n- ReadIni(path, encoding='u8')\n- WriteIni(path, dic, encoding='u8')\n- ReadTxt(path, encoding='u8', sep=None)\n- WriteTxt(path, data, encoding='u8', sep=' ')\n- ReadCsv(path, encoding='utf-8-sig')\n- WriteCsv(path, data, encoding='utf-8-sig', errors='ignore')\n- WriteExcel(path, data, new_sheet='sheet1')\n- OpenExcel(path)\n- MergeCell(data, merge, merge_x=True, merge_y=True, strip_x=False)\n- ReadExcel(path, merge_x=True, merge_y=True, strip_x=False)\n- ReadSheet(path, index=0)\n- Doc2Docx(path, overwrite=False)\n- OpenDocx(path)\n- ReadWordTexts(path)\n- ReadWord(path, merge_x=True, merge_y=True, strip_x=False)\n- ReadFile(path, merge_x=True, merge_y=True, strip_x=False)\n- File2Csv(path, merge_x=True, merge_y=True, strip_x=False)\n- ReadFiles(paths, merge_x=True, merge_y=True, strip_x=False)\n\n### Module 'np'\n- imread(path)\n- imwrite(path, img)\n- imshow(img, delay=50, title='')\n- imsave(path)\n- imiter(file_or_id)\n\n### Module 'auto'\n- shortcut(p=None, make=True)\n- paste(word, tab=0)\n- Monitor(func)\n- Recoder(complete=False)\n\n### Module 'gui'\n- center(top)\n- WrapBox(parent, w, label='')\n- GetClipboard()\n- SetClipboard(text)\n- Mover(parent, widget)\n- EventThread(parent, id, target=bool, *args, **kwargs)\n\n\n## Extra\n\n- Library [lsx](https://pypi.org/project/lsx) is as same as [lishixian](https://pypi.org/project/lishixian) in [pypi.org](https://pypi.org).",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Lite Software eXtension",
"version": "0.4.0",
"project_urls": {
"Bug Tracker": "https://github.com/znsoooo/lishixian/issues",
"Homepage": "https://github.com/znsoooo/lishixian"
},
"split_keywords": [
"lishixian",
"lsx"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e3eb2e6f30eb1ee94ead997ef07f64348f56d4cad5cd8ceb1ff9ff427cfd6e0b",
"md5": "233a570bdbf86c1838e2c29e157e3df3",
"sha256": "14b3b728bf0786cd2f385a6b24f2d730b89def83de0ca3185c875505d2784686"
},
"downloads": -1,
"filename": "lishixian-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "233a570bdbf86c1838e2c29e157e3df3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23104,
"upload_time": "2024-11-23T09:50:10",
"upload_time_iso_8601": "2024-11-23T09:50:10.264605Z",
"url": "https://files.pythonhosted.org/packages/e3/eb/2e6f30eb1ee94ead997ef07f64348f56d4cad5cd8ceb1ff9ff427cfd6e0b/lishixian-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-23 09:50:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "znsoooo",
"github_project": "lishixian",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lishixian"
}