some useful tools functions
ShichaoMa, updated
🕥
2022-12-08 03:16:06
参考资料
拒绝重复造轮子!python实用工具类及函数大推荐!
厉害了word哥,交互式实时监控调整python程序执行!
深入python协程的实现,带你一层一层揭开协程的神秘面纱!
Issues
opened on 2022-12-08 03:16:06 by dependabot[bot]
Bumps certifi from 2019.11.28 to 2022.12.7.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ShichaoMa/toolkit/network/alerts).
opened on 2022-01-21 20:13:45 by dependabot[bot]
Bumps ipython from 7.12.0 to 7.16.3.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ShichaoMa/toolkit/network/alerts).
opened on 2021-04-20 17:54:55 by dependabot[bot]
Bumps py from 1.8.1 to 1.10.0.
Changelog
Sourced from py's changelog.
1.10.0 (2020-12-12)
- Fix a regular expression DoS vulnerability in the py.path.svnwc SVN blame functionality (CVE-2020-29651)
- Update vendored apipkg: 1.4 => 1.5
- Update vendored iniconfig: 1.0.0 => 1.1.1
1.9.0 (2020-06-24)
-
Add type annotation stubs for the following modules:
py.error
py.iniconfig
py.path
(not including SVN paths)
py.io
py.xml
There are no plans to type other modules at this time.
The type annotations are provided in external .pyi files, not inline in the
code, and may therefore contain small errors or omissions. If you use py
in conjunction with a type checker, and encounter any type errors you believe
should be accepted, please report it in an issue.
1.8.2 (2020-06-15)
- On Windows,
py.path.local
s which differ only in case now have the same
Python hash value. Previously, such paths were considered equal but had
different hashes, which is not allowed and breaks the assumptions made by
dicts, sets and other users of hashes.
Commits
e5ff378
Update CHANGELOG for 1.10.0
94cf44f
Update vendored libs
5e8ded5
testing: comment out an assert which fails on Python 3.9 for now
afdffcc
Rename HOWTORELEASE.rst to RELEASING.rst
2de53a6
Merge pull request #266 from nicoddemus/gh-actions
fa1b32e
Merge pull request #264 from hugovk/patch-2
887d6b8
Skip test_samefile_symlink on pypy3 on Windows
e94e670
Fix test_comments() in test_source
fef9a32
Adapt test
4a694b0
Add GitHub Actions badge to README
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ShichaoMa/toolkit/network/alerts).
opened on 2021-03-29 21:25:41 by dependabot[bot]
Bumps pygments from 2.5.2 to 2.7.4.
Release notes
Sourced from pygments's releases.
2.7.4
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
2.7.3
-
Updated lexers:
-
Deprecated JsonBareObjectLexer, which is now identical to JsonLexer (#1600)
-
The ImgFormatter
now calculates the exact character width, which fixes some issues with overlapping text (#1213, #1611)
... (truncated)
Changelog
Sourced from pygments's changelog.
Version 2.7.4
(released January 12, 2021)
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
Version 2.7.3
(released December 6, 2020)
... (truncated)
Commits
4d555d0
Bump version to 2.7.4.
fc3b05d
Update CHANGES.
ad21935
Revert "Added dracula theme style (#1636)"
e411506
Prepare for 2.7.4 release.
275e34d
doc: remove Perl 6 ref
2e7e8c4
Fix several exponential/cubic complexity regexes found by Ben Caller/Doyensec
eb39c43
xquery: fix pop from empty stack
2738778
fix coding style in test_analyzer_lexer
02e0f09
Added 'ERROR STOP' to fortran.py keywords. (#1665)
c83fe48
support added for css variables (#1633)
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ShichaoMa/toolkit/network/alerts).
opened on 2019-11-29 10:39:19 by QGB
In [3]: pip install toolkity
Collecting toolkity
Using cached https://files.pythonhosted.org/packages/c8/d2/464a990b1c1775ffd556e765ab71901363cc59f4c7988e7258525e5dc536/toolkity-1.9.3.tar.gz
ERROR: Command errored out with exit status 1:
command: 'C:\QGB\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\setup.py'"'"'; file='"'"'C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\pip-egg-info'
cwd: C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\setup.py", line 34, in
VERSION = get_version("toolkit")
File "C:\Users\qgb\AppData\Local\Temp\pip-install-uxirtnrv\toolkity\setup.py", line 14, in get_version
init_py = open(os.path.join(package, 'init.py')).read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 415: illegal multibyte sequence
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Note: you may need to restart the kernel to use updated packages.