Skip to main content

Lite Software eXtension

Contain 11 modules and 182 functions.

About

Install

Install on pip:

pip install lishixian --upgrade

Install on Github:

git clone https://github.com/znsoooo/lishixian
cd lishixian
pip install .

Usage

Use it in Python script:

import lishixian as lsx
lsx.help()

The package can also be used in console, it takes one or zero parameter:

$ lishixian help
Commands: help version ip ipv6 mac user crc16 crc32 md5 sha1 sha256 checksum 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, **kw)
  • listdir(*paths)
  • findall(pattern, string, flags=0)
  • split(arr, cols)
  • sum(seq)
  • pack(fmt, values)
  • unpack(fmt, string)
  • ljust(text, width)
  • rjust(text, width)
  • system(cmd, encoding=None)
  • detect(path)
  • walk(paths='.', exts='')
  • bytes(data, width=16)
  • memoryview(data, width=16, offset=0)
  • expandtabs(text, tabsize=4)
  • suppress(func, *args, **kwargs)

Module 'line'

  • fake(*v, **kv)
  • pause()
  • start(fn, *v, **kv)
  • freeze(fn, *v, **kv)
  • crc16(path)
  • crc32(path)
  • md5(path)
  • sha1(path)
  • sha256(path)
  • checksum(path)
  • inv(path)
  • create(path)
  • delete(path)
  • shape(arr)
  • 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()
  • ipv6()
  • 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)
  • varname(var)
  • imports(path)
  • print_paths()
  • print_lines(lines)
  • print_table(table)
  • clock(reset=False)
  • timer(reset=True)
  • 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)
  • randlog(min, max)
  • escape(s, quote=True)
  • unescape(s)
  • quote(string, safe='', encoding=None, errors=None)
  • unquote(string, encoding='utf-8', errors='replace')
  • b64encode(b)
  • 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)
  • trace(fn)
  • protect(fn)
  • surround(before=(), after=())
  • hotkey(key='F12')
  • threads(cnt=-1, order=True)

Module 'cls'

  • Config(path, section='default', encoding='u8')
  • Thread(target, *args, **kwargs)
  • Tcp(addr, port)
  • Udp(addr, port)
  • Table(iterable)
  • Re(object='')
  • File(path)

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'

  • imcvt(img, size=None, color=None)
  • imread(path, size=None, color=None)
  • imwrite(path, img, size=None, color=None)
  • imshow(img, delay=50, title='', size=None, color=None)
  • imsave(path, start=0, step=1, stop=inf)
  • imiter(file_or_id)

Module 'auto'

  • shortcut(to=None, create=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

Metadata

Release files for lsx 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lsx 0.4.5
File Size Uploaded Provenance Actions
lsx-0.4.5.tar.gz 26.9 kB Without provenance Details for lsx-0.4.5.tar.gz

Release files / lsx-0.4.5.tar.gz

Download URL lsx-0.4.5.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa331b7398f014fe6e0c892854306e6368362db31fa44b9bbe8a7544bc46375e
BLAKE2b-256 checksum
How to use checksums
446d38d446a335685281d3e7df791141c0c885b13a340f157d5827c2ea469a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.6.8

Security for lsx 0.4.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page