utils for python
Project description
pyutils
pip3 install --upgrade slimz
Color
from slimz.color import Color
cl = new Color()
color = Color()
print(cl.red('I am red!'))
print(cl.green('I am gree!'))
print(cl.yellow('I am yellow!'))
print(cl.blue('I am blue!'))
print(cl.magenta('I am magenta!'))
print(cl.cyan('I am cyan!'))
print(cl.white('I am white!'))
print(cl.white_green('I am white green!'))
Book1
Book1 is just for reading specified cell data
from slimz.book import Book1
sheet = b1.sheet(0)
print(sheet.cell_value(0,0))
print(sheet.cell_value(0,1))
print(sheet.cell_value(0,2))
print(sheet.cell_value(1,2))
print(sheet.cell_value(4,0))
Book2
Book2 used for writing data with existing sheet template
from slimz.book import font,style,Book2,borders,alignment_center,alignment_left,alignment_right
style1 = style(font("Arial",10),borders,alignment_center)
b2 = Book2("/Users/scottxiong/Desktop/test.xlsx","/Users/scottxiong/Desktop/test1.xls")
sheet = b2.copy(0,0)
sheet.write(5,1,"hello world")
sheet.write(5,2,1111)
sheet.write(5,3,"2020/03/02")
b2.save()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slimz-0.0.3.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
slimz-0.0.3-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file slimz-0.0.3.tar.gz.
File metadata
- Download URL: slimz-0.0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2fe43ea37f3be2e0b2cb651e74ea65aaa8ada3167622d698d33d88b2e8ad7d3
|
|
| MD5 |
25810fa5899d03727951310bebc4fe61
|
|
| BLAKE2b-256 |
058f610c9ca702d6b0b7cdc1977242070814d8c5a749e6f6a58930813040cf32
|
File details
Details for the file slimz-0.0.3-py3-none-any.whl.
File metadata
- Download URL: slimz-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08177bb5ccc76c4172970797c047348a91be303a8fe26a54958c00f17e070aac
|
|
| MD5 |
d6b71e5cb2a5e258d7d5111211279a23
|
|
| BLAKE2b-256 |
1371f5fd879c611c79347b15e9e71c26fa68526d630884534999155161eb3c0f
|