lsx


Namelsx JSON
Version 0.3.4 PyPI version JSON
download
home_pagehttps://github.com/znsoooo/lishixian
SummaryLite Software eXtension
upload_time2024-04-06 01:46:30
maintainerNone
docs_urlNone
authorShixian Li (znsoooo)
requires_pythonNone
licenseMIT License
keywords lishixian lsx
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lite Software eXtension

Contain 11 modules and 155 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 -e .
```


## 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 half2hex hex2half float2hex hex2float double2hex hex2double escape unescape quote unquote

$ lishixian float2hex 1.0
3f800000
```

## Modules

### Top module
- all()
- help()
- version()

### Module 'new'
- print(*value, file=True)
- time(start=0)
- loop(start=0, step=1)
- randbytes(n)
- breakpoint()
- popen(cmd)
- listdir(*paths)
- findall(pattern, string, flags=0)
- split(arr, cols)
- pack(fmt, values)
- unpack(fmt, string)
- 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)
- 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')
- sudo()
- check(obj, patt='.*', stdout=True)
- print_paths()
- print_lines(lines)
- print_table(table)
- progress(*value, interval=1)
- fps()
- count(add=1, name='default')
- recent(iterable, max=0)
- 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)
- 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(log='log.txt')
- 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)
- 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(file)
- imwrite(file, img)
- imshow(img, delay=50, title='')
- imsave(file)
- imiter(file_or_id)

### Module 'auto'
- shortcut(p=None, make=True)
- copy(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": "lsx",
    "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/28/62/0e965f34cd5e883c1425db2863c5a2cc589c760a6c5ec05a0997735abfde/lsx-0.3.4.tar.gz",
    "platform": null,
    "description": "# Lite Software eXtension\n\nContain 11 modules and 155 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 -e .\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 half2hex hex2half float2hex hex2float double2hex hex2double escape unescape quote unquote\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- time(start=0)\n- loop(start=0, step=1)\n- randbytes(n)\n- breakpoint()\n- popen(cmd)\n- listdir(*paths)\n- findall(pattern, string, flags=0)\n- split(arr, cols)\n- pack(fmt, values)\n- unpack(fmt, string)\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- 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- sudo()\n- check(obj, patt='.*', stdout=True)\n- print_paths()\n- print_lines(lines)\n- print_table(table)\n- progress(*value, interval=1)\n- fps()\n- count(add=1, name='default')\n- recent(iterable, max=0)\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- 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(log='log.txt')\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)\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(file)\n- imwrite(file, img)\n- imshow(img, delay=50, title='')\n- imsave(file)\n- imiter(file_or_id)\n\n### Module 'auto'\n- shortcut(p=None, make=True)\n- copy(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.3.4",
    "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": "28620e965f34cd5e883c1425db2863c5a2cc589c760a6c5ec05a0997735abfde",
                "md5": "5035a7d09759a9b4a31f65a9029a6231",
                "sha256": "f70088c5937ca25b2cc5e92576010151ca37faa709a2ac8fbbb7c8cdceb7cd53"
            },
            "downloads": -1,
            "filename": "lsx-0.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "5035a7d09759a9b4a31f65a9029a6231",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22876,
            "upload_time": "2024-04-06T01:46:30",
            "upload_time_iso_8601": "2024-04-06T01:46:30.984747Z",
            "url": "https://files.pythonhosted.org/packages/28/62/0e965f34cd5e883c1425db2863c5a2cc589c760a6c5ec05a0997735abfde/lsx-0.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-06 01:46:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "znsoooo",
    "github_project": "lishixian",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lsx"
}
        
Elapsed time: 0.25060s