最有用功能的快捷方式,高API,特殊功能

rx7的Python项目详细描述


PyPI - LicensePyPI - LicensePyPI - License

rx7 Libraryآ.;将帮助您缩短代码!在

-高API

-特殊功能

-收集了最有用的功能和方法。

你厌倦了在一个脚本中导入大量模块吗?rx7可以帮你很多

功能列表:

p()print() function. (Read Doc String)
repeat(function,n)Repeat F_Name function for n times.
rev(v)  (REMOVED 2.4.0)Reverse v and returns it. (Everything like str,list,int)   
read(file)Return content of the file.
write(file,mode,text)Write things you want in file content. (Read Doc String)
wait(n)
sleep(n)
Stop code executing for n seconds
cls()
clear()
It Clears the Terminal
progressbar()In-App Progressbar. (Read Doc String)
cons_integer(Frst,Lst)Return string from Frst to Lst (Read Doc String) (v1.7)
force(tpl,*var)Return tpl with adding var(s) to it.
erase(tpl,*var)Return tpl with removing var(s) from it.
replace(tpl,ind,var)Replace tpl[ind] with var
insert(tpl,ind,var)Set tpl[ind] to var. (Note that tpl[ind] will be tpl[ind+1])
pop(tpl,index)Remove member with index of 'index' from a tuple
wait_for(button)Waits for user to press specific button. 
call_later(func,args,delay)Call func(args) after delay time. 
convert_bytes(num)
convert bytes to (KB,MB,GB,TB)
Input(prompt,default)
default_input()
Prompt an input message with default answer (value) (ONLY ON WINDOWS) 
restart_app()
Restart running python program
active_window_title()
Return Active Window Title
open_image(path)
Open image with default image viewer (Mac OS is not supported)
download(url)
To download files with memory saver and progressbar
extract(file,path,pwd)
Extract Zip file with password to path
screenshot(name)
Take a screenshot and save it.
func_info(function)
Print information of function
Check_Type
Decorator that raise TypeError if function argument type is wrong (Read Help)
Progressbar()
Generator of progressbar() which you can use it to do some stuff between your delays (Read Help)
pixel_color(X,Y)
Return RGB color of pixel[X,Y]
getpass(prompt)
Prompt for a password, with echo turned off.
import_module(path)
Return given path (file with any extension) as a Module

公司名称:<

课程列表:

:Class edge:*随机变量生成器 ^{tb2}$

一些系统操作和信息。

^{3}$

*方法)操作和有关文件的信息。

size(path)
Return size of the file in byte(s). Also work on directories.
delete(path)
Use this to delete a file (Not folder).
rename(path)
Rename files with this function.
abspath(path)
Return absolute path of given path.
exists(path)Return Boolean. If exists True, else: False
mdftime(path)
Get last modify time of the file.
acstime(path)
Get last access time of the file.
move(src,dst)Move file from src to dst. (Read Doc String of copy func)
copy(src,dst,metadata=True)Copy file (with metadata) from src to dst. (Also work on folders)
hide(path)Hide given path. (It can be file or directory.)
read_only(path,mode=True)Make file or folder read-only. (Read Doc String)
read(path)Return content of the path
write(path,text='',...)Same as write function.
isdir(path)Return True for directory and False for others.
isfile(path)Return True for file and False for others.
is_hidden(path)Check whether path is hidden or not
is_readonly(path)Check whether path is readonly or not
search_file(pattern,path,mode)search for pattern in path (Read function doc string)
search_content(path,word)Search for word in all files in path, return list of files that contain word
mkdir(path)Make directory (More than one if its possible!)
generate_tree(dir_path)Returns a visual tree of dir_path
        MEMBERS (Family)
MEMBERS.all_exactdirList of all things those are in exact directory
MEMBERS.files_exactdir
List of files which are in exact directory
MEMBERS.dirs_exactdir
List of dirs  which are in exact directory
MEMBERS.files_allList of files which are in exact directory and all sub-directories
MEMBERS.files_all_sepList of files which are in exact directory and all sub-directories seprated by their directories
MEMBERS.dirs_all
List of directories (Exact dir and all sub-dirs) 
MEMBERS.all_all_sepList  of everything thing in path (exact dir & sub-dirs)

更改文本颜色、背景和样式。(读取文档字符串)

print(txt,clr,BG,style,end)
(from v1.5.0)

Print txt with selected color,BG,style.(Read Doc String)
switch(color,BG,style)Change Terminal Attributes Until another Call.
switch_default()
Restore Terminal Attributes.
reset
switch_default()
log_  (Family)
5 Different Style.print with ready color and style

Record某个操作的时间。(读取文档字符串)

__init__()Set Start Time.
self.stop(self)Stops Recording (You can not lap anymore)
self.lap(self, save=True, round=15)Rreturn time between start time. if save==True: add that time to self.laps
self.lapsA list that contains all laps you have done
self.reset(self, start=False)Empty self.laps, if start is True: set start time to now
self.last_lap(save=True)Return elapsed time from last lap (save it in self.laps if save is true)

对象列表:

:<±objectTuple:它与内置元组相似,只是速度更快,功能更丰富!

说明:

*元组具有内置的元组对象和更多功能。在

[UNK][UNK][UNK][UNK][UNK][UNK]您可以添加、删除、替换甚至使用\u setitem元组对象。在

我建议使用tuple=我建议使用元组接收元组接力可以让你的工作更轻松。在

支持:}索引-len-hash obe-bool-\u add\

Tuple(*var,one=False)Create Tuple object with *var members
self.add(*vars)Add *vars to self
self.force(*vars)self.add
self.remove(*vars)Remove *vars from self (Ignore it if it's not in self).
self.erase(*vars)self.remove
self.replace(ind,var)Replace self[index] with var. (index can be int or anything thats in self
self.pop(ind)Remove member with index of 'index' from self
self[index]=varSet self[index] to var. (Like lists) (it does not replace)

推荐对象:

-强烈建议使用显示函数和类帮助的IDE。VS Code-PyCharm

-使用“from rx7 import FUNC_or_CLASS”

-使用“将rx7作为rx导入”

升级: ---------

在终端中使用以下命令:

:<显示样式类的帮助)

:<打开包含帮助的页面

版本信息:

发布如下:

A

很久以前了

    First number is very important bacause it's for Realy Big new features and changes.

    Second number is important but not like first number because it contains some changes and new features (RECOMMENDED for upgrading package)

    But 3rd number is not important because it's for changing packege codes order and you won't lose anything if youآ  آ  آ  آ  don't install it.

    Numbers are not always in order like: 1,2,3,4,...آ  , Some times they are different like: 1.2.4.8,..._

发布:

(+表示新功能,*表示更改)

VersionRelease DateNew Features & Changes

2.8.0

11/15/2020
+ Decorator Class (attach_to_all --- Check_Type)
+ pop()
+ Tuple.pop()
+ Record.timeit()

2.7.0

10/15/2020
+ getpass()
+ style.log_ Family
+ style.reset() = style.switch_default()
+ load_module()
+ record.last_lap()

2.6.0

10/1/2020
+ system.cpu_percent()
+ system.pid_exists()
+ Progressbar() (Generator)
+ pixel_color()

2.5.0

09/15/2020
+ Check_Type decorator
+ system.pyshell_execute_bit()
+ system.pids()
+ record.lap round arg

2.4.0

09/01/2020
* rand -> random
+ random.shuffle()
+ repeat function supports parameters
+ sleep = wait   ---   clear = cls   ---   default_input = Input
+ system.cpu_count()

2.3.0

08/19/2020

+ extract()

+ screenshot()

+ func_info()

2.2.0

08/03/2020

+ download()

+ system.ip_website()

+ system.win10_notification

2.1.0

07/15/2020

* style class better performance in linux

MEMBERS group in files class

+ File object:  self.basename, self.ext

+ system.device_name()

active_window_title() --- open_image()

2.0.0

07/01/2020

+ Tuple object   ---   rxobject

+ record.reset()   ---   record.lap new arg

+ New methods of files

      files.is_readonly()   ---   files.is_hidden()

      files.search_file()   ---   files.search_content()

      files.copy new arg

      files.generate_tree()

+ File.MEMBERS (when in File(path), path is a directory  (self.MEMBERS.TYPE_PATH)

+ File.tree    ---     File.tree_dirs

+ Input()(Only on windows)

+ restart_app()

1.9.0  06/09/2020

* re() --> repeat()

+ New Methods of System Class:  ip_global(), ip_local(), ram_free(), ram_percent(), ram_total(), ram_used(), boot_time()

+ convert_bytes()

1.8.005/24/2020
+ style.switch_default()
+ Now Linux supports cls()
+ style object: supports multiply,add,index
+ rand.choice Choose >1 & duplicate
* rand.choice --> rand.choose
1.7.0  05/08/2020
+ call_later()  -  wait_for()
+ terminal_size()  -  cwd()
+ right_port,left_port arg for progressbar()
+ file.remove() for static usage
+ self.type in file class
+ if in file(x), x is a directory:
x.files , x.file_list , x.all_files , x.all_files_sep
+ file.isdir() , file.isfile() for static usage.
* string() => cons_int()
* progressbar() arg names
* file.delete() and file.delete_dir() => delete()
* Change replace() and insert() args oreder
1.5.004/21/2020
+ 'replace' and insert 'functions' for tuples
+ 'end' arg for style.print()
+ 'self.laps' in record class will display all laps
* style.text => style.print
* record.stop => record.lap
* now 'record.stop()' will stop recording.
1.3.0 04/08/2020
+ __init__ & read & write & content  func of file class
* Prgoressbar default args

1.0.0

03/18/2020

####

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
多线程重新构造使用线程池和BlockingQueue的I/O密集型Java web服务   java SWT CTabFolder检查CTAB是否存在   java如何防止具体类的实例化?   java如何将子域定向到正确的JBoss应用程序?   java Android外部文件出现不一致   java FileSystemNotFoundException:未安装提供程序“jndi”   显示jframe上的java隐藏单选按钮   java CXF客户端TCP连接在每个请求之间关闭   Hadoop查询、日期、循环、BASH或Java   java从长类型到十进制类型对象的转换类型错误   java为什么不在用户消息中提供用户提供的数据?有可能的威胁/攻击吗?   使用作用域存储MediaStore的应用程序中的java共享意图问题   java我可以通过将成员指针传递给方法并在方法中分配来初始化它吗?   java如何在一个包含正负值的数组中找到最大的负值?   java有比较二叉树路径的简单方法吗?   java Swagger(ui)不显示操作   java KairosDB缺失值的线性插值   用于此特定求和的java循环