:rocket: TQL :facepunch:
太强了:数据不是创造规律,而是展示那些原本的规律
Install
pip install tql
Usage
from tql.pipe import *
@X
def xfunc1(x):
_ = x.split()
print(_)
return _
@X
def xfunc2(x):
_ = '>>'.join(x)
print(_)
return _
'I am very like a linux pipe' | xfunc1 | xfunc2
-
xtqdm -
xfilter / xmap / xsort / xreduce
iterable | xfilter(lambda x: len(x) > 1) | xmap(str.upper) | xsort | xreduce(lambda x, y: x + '-' + y)
'AM-LIKE-LINUX-PIPE-VERY'
xsummary
iterable | xsummary
counts 7
uniques 7
missing 0
missing_perc 0%
types unique
Name: iterable, dtype: object
- ...
Metadata
Release files for tql 0.0.1560998220
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tql-0.0.1560998220.tar.gz | 70.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tql-0.0.1560998220-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / tql-0.0.1560998220.tar.gz
| Download URL | tql-0.0.1560998220.tar.gz |
|---|---|
| Size | 70.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
137e89aadcd6b85797d495fb009377cb8a986ee88821fef00fe25384c9e025aa
|
|
BLAKE2b-256 checksum How to use checksums |
b79571bf14bd10ab076cca8bf10f4a4f2895bf5df53bdfc15c0afd92116684cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / tql-0.0.1560998220-py3-none-any.whl
| Download URL | tql-0.0.1560998220-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83f2c73e12590c64c884b943db7af692b263c00de187346bd0c5d789f5c88ef1
|
|
BLAKE2b-256 checksum How to use checksums |
ecbe1e1f9c74f879b253226deeabc9a372eb70a0400184065aafca7e513b6e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|