A small useful package by Mojave2021
Project description
UsefulTool User's Guide
defines:
bqbzz(openimg,size=30,rotate=0,color=(0,0,0),ttf=None,text="Your Text"):
- Can:Write something on a photo
- oepnimg:OpenIMG(PNG,GIF,JPG,JPEG,BMP)
- size:font size
- rotate:font rotate
- color:font color
- ttf:Using TTF font
- text:What do you want to write?
json_rw(filename,mode='r'):
- Can:load a json file
- filename:Oepn file
- mode:How to open the file(r,w,r+,w+,rb,wb,ab,rb+,wb+,ab+)
finder(lst):
- Can:Find a number in a list
- lst:find a number in what?
IDNumber_Tool(idnum):
- Can:Find info in your IDnumber in China(like:Your Gender,when you was born)
- idnum:Your IDnumber in China
tgt(x=0,y=0):
- Let turtle move to(x,y)
hundred_people_name():
- Can:
- Press your First Name into it
- Print a list
summon_gif(gif_dir,sort_reverse=False,ext_file=[".png",".jpg",".jpeg",".bmp"],output_name="Deflut.gif",txt="",ttf="STXINGKA.TTF",text_xy=(80,600),size=80,ttf_color=(0,0,0),use_own_color_list=False,own_color_list=[(0,0,0)]):
-Can:Summon a gif by pictures
- gif_dir:Where are your imgs to summon a gif?
- sort_reverse:Do you want to invert your gif?If you want,set this True.
- ext_file:allowed file exts
- output_name:Your gif's name
- txt,ttf,size,ttf_color:Please look at [bqbzz]
- use_own_color_list:If this porgram is using Multi-group-color-list,please set it True.
-o wn_color_list: Multi-group-color-list
gif_boom(myDir="renders",open_gif="image.gif")
-Can:make a gif become pngs
- myDir:Images will save at here.
- open_gif:Which gif do you want to boom?
init_turtle(x,y,c)
-Can:init your turtle
- x,y:go to (x,y)
- c:set pen_color and fill_color c
os_star(x,y,l,c)
- Can:Draw a five pointed star at (x,y)
- long:l
- color:c
- Angle adjustment is not supported temporarily
log(logs: str, mode:str="System", rtn:bool=False,show_printer:bool=False)
-Can:Print a log
- logs:Log you want to print
- mode:Set the name of the log sender. The options are:
1. System
2. Debug
3. User
4. Your optional name
- rtn:Return all of the logs
- show_printer:Select whether to display the sender name (defined in mode)
ospen(file_name:str)
-Can:Open a file in the current directory by default
-file_name:Your file's name
get_os_type()
-Can:Get your Opering System type(Windows/Mac or Linux)
png_to_pdf(mode: int, lst_of_pngs: list, path: str = ".")
-Can:Convert png files to pdf files
-mode:can be 0 or 1
0:You must use the "lst_of_pngs" to tell the program names of the png files.
1:The program will read all png files in the dir"path"
-Path:The dir png files saved.Deflut is current directory.
Update Logs:
1.2021/10/31 1.1.0 with hotfix 1
2.2021/12/20 1.1.1 (Include in Version1.1.2 )
3.2022/1/17 1.1.2
4.2022/1/17 1.1.2 with README.md update
5.2022/1/21 1.1.3
6.2022/3/6 1.1.4
7.2022/3/29 1.1.4 with hotfix 1
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
UsefulTools-1.1.4.1.tar.gz
(3.6 kB
view details)
File details
Details for the file UsefulTools-1.1.4.1.tar.gz.
File metadata
- Download URL: UsefulTools-1.1.4.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2bb9606c1c70d87e22b8094d5fb83deb97be5f11a67f7e2624228427158e9b1
|
|
| MD5 |
03b7029520f270608743e1bb1c42c88c
|
|
| BLAKE2b-256 |
c23d6dc289aba618792e792ce4603fb250b38377476f4ca31c82456a1f2dfbf0
|