from cloze.pandas_query import PandasQuery import pandas
data1=pandas.DataFrame({"列1": range(100),"y": range(100)}) data2=pandas.DataFrame({"x": range(100),"y": range(100)})
sql='select data1.,data2. from data1,data2 where data1.y=data2.y;'
query=PandasQuery() result=query(sql, {'data1':data1,'data2':data2})
#%% from cloze.template_docx import TemplateDocx import pandas import matplotlib.pyplot as plt from io import BytesIO
data1=pandas.Series(range(100),index=['a%i'%i for i in range(100)]) data2=pandas.DataFrame({"x": range(10),"y": range(10)})
plot=BytesIO() plt.plot(data2.y) plt.savefig(plot)
ax = data2.y.plot() fig = ax.get_figure() fig.savefig(plot)
template=TemplateDocx() template('Template.docx','Save.docx',env={'data1':data1,'data2':data2,'plot':plot})
#%% from cloze.template_xlsx import TemplateXlsx import pandas import matplotlib.pyplot as plt from io import BytesIO
data1=pandas.Series(range(100),index=['a%i'%i for i in range(100)]) data2=pandas.DataFrame({"x": range(10),"y": range(10)})
plot=BytesIO()
plt.plot(data2.y) plt.savefig(plot)
data2.y.plot().get_figure().savefig(plot)
template=TemplateXlsx(restore=False) template('Template.xlsx','Save.xlsx',env={'data1':data1,'data2':data2,'plot':plot})
template=TemplateXlsx(restore=True) template('Template.xlsx','Save.xlsx',env={'data1':data1,'data2':data2,'plot':plot}) #%% from cloze.template_text import TemplateText import pandas template=TemplateText() template('这是一个测试{data.a}',{'data':pandas.Series({'a':1})})
Metadata
Release files for cloze 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cloze-0.8.0.tar.gz | 473.8 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloze-0.8.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| cloze-0.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
Total release size: 2.3 MB
Release files / cloze-0.8.0.tar.gz
| Download URL | cloze-0.8.0.tar.gz |
|---|---|
| Size | 473.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62902d43f8316d51181d298cba107a226617093fed77fb6d6391fb8ac69d8a9
|
|
BLAKE2b-256 checksum How to use checksums |
fa6543b8999f55fe4e9c8dae16ee3c1cc6f49730efc794112e6e5d9f07279d5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / cloze-0.8.0-cp312-cp312-win_amd64.whl
| Download URL | cloze-0.8.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 262.1 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cdc096151a271faecfc15aab5f8fb08d55fb6a18b8a9099ef2c9d70c01be306c
|
|
BLAKE2b-256 checksum How to use checksums |
14070e4ed2e17c72a6076ffe3ed2eda7b3d686ceb26c2c7f81210469cfc7f987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / cloze-0.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | cloze-0.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b6f1d7721ac3c0b34c6b7efc16243a4f48e59d4982eed3109d73f6b1eefd4606
|
|
BLAKE2b-256 checksum How to use checksums |
8e137aed38082407ef2915590d78f3545cccff7ca669d8c97f2227329c3f1863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Security for cloze 0.8.0
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.