Cool Utils
Release 1.3.2 (The All Around Update!)
선적 서류 비치
이것은 파이썬에서 사용할 수있는 멋진 유틸리티 도구입니다. 매우 유용한 몇 가지 도구가 있습니다. 거의 모든 프로젝트 에서이 작업을 사용할 수 있으며 일부 유틸리티는 간단한 기능이기 때문에 많은 시간을 절약하고 많은 시간을 절약 할 수 있습니다. 우리는 당신이 우리의 utils를 좋아하기를 바랍니다. 좋은 하루 되세요!
PYPI 설치
Windows :
$ pip install -U cool-utilsLinux/MacOS :
$ python3 -m pip install -U cool-utils개발 설치
Windows :
$ pip install git+https://github.com/Senarc-Studios/Cool-UtilsLinux/MacOS :
$ python3 -m pip install -U git+https://github.com/Senarc-Studios/Cool-Utils엮다:
from cool_utils import Compile
strings = [ "This" , "Is" , "A" , "String" ]
num_list = [ 9 , 4 , 2 ]
print ( Compile . string ( strings , startswith = "Hey, " , endswith = "." , joints = " " ))
print ( Compile . numbers ( num_list , startswith = 6 , endswith = 0 ))
>> Hey , This Is A String .
> > 69420JSON :
import cool_utils
json = cool_utils . JSON . open ( "sample" )
json . register_value ( variable = "foo" , value = "bar" ) # This creates a JSON file.
data = json . get_data ( variable = "foo" )
invalid_data = json . get_data ( "non-existant value" ) # You can do this instead of doing the variable's name.
print ( data )
print ( invalid_data )
>> bar
>> NoneGlobalJson :
import cool_utils
cool_utils . GlobalJSON . open ( "sample" )
cool_utils . GlobalJSON . register_value ( variable = "foo" , value = "bar" )
data = cool_utils . GlobalJSON . get_data ( variable = "foo" )
invalid_data = cool_utils . GlobalJSON . get_data ( "non-existant value" )
print ( data )
print ( invalid_data )
>> bar
>> None 이 사람들이 없으면 불가능할 것입니다