Saravanan666/pypi-org huggingface dataset:
Package: python-testing-advanced
=======================Python Testing Advanced=======================.. image:: https://img.shields.io/pypi/v/python_testing_advanced.svg:target: https://pypi.python.org/pypi/python_testing_advanced.. image:: https://img.shields.io/travis/jatap/python_testing_advanced.svg:target: https://travis-ci.org/jatap/python_testing_advanced.. image:: https://readthedocs.org/projects/python-testing-advanced/badge/?version=latest:target: https://python-testing-advanced.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/jatap/python_testing_advanced/shield.svg:target: https://pyup.io/repos/github/jatap/python_testing_advanced/:alt: Updates.. image:: https://pyup.io/repos/github/jatap/python_testing_advanced/python-3-shield.svg:target: https://pyup.io/repos/github/jatap/python_testing_advanced/:alt: Python 3Information-----------Python Testing Advanced Example* Free software: `MIT license`_* Documentation: https://python-testing-advanced.readthedocs.io... _`MIT license`: https://github.com/jatap/python_testing_advanced/blob/master/LICENSECredits-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackageChangelog=========v0.3.5 (2018-08-02)-------------------Administration and Chores^^^^^^^^^^^^^^^^^^^^^^^^^- [packages] update requirements_dev file with bare onesv0.3.4 (2018-07-31)-------------------Documentation Changes^^^^^^^^^^^^^^^^^^^^^- [rst] move CHANGELOG.md to HISTORY.rstv0.3.3 (2018-07-31)-------------------Administration and Chores^^^^^^^^^^^^^^^^^^^^^^^^^- [files] delete deprecated HISTORY.mdv0.3.2 (2018-07-31)-------------------Administration and Chores^^^^^^^^^^^^^^^^^^^^^^^^^- [pyup] update packagesv0.3.1 (2018-07-31)-------------------Administration and Chores^^^^^^^^^^^^^^^^^^^^^^^^^- [pyup] update packagesv0.3.0 (2018-07-31)-------------------New Features^^^^^^^^^^^^- [packages] add Markdown supportv0.2.1 (2018-07-31)-------------------Documentation Changes^^^^^^^^^^^^^^^^^^^^^- [modules] refactor main module docstringv0.2.0 (2018-07-31)-------------------New Features^^^^^^^^^^^^- [modules] refactor main module and its testsv0.1.4 (2018-07-31)-------------------v0.1.3 (2018-07-31)-------------------Documentation Changes^^^^^^^^^^^^^^^^^^^^^- [rst] update rst filesv0.1.2 (2018-07-31)-------------------Documentation Changes^^^^^^^^^^^^^^^^^^^^^- [sphinx] update themev0.1.1 (2018-07-31)-------------------Documentation Changes^^^^^^^^^^^^^^^^^^^^^- [readme] updatev0.1.0 (2018-07-31)-------------------Administration and Chores^^^^^^^^^^^^^^^^^^^^^^^^^- [init] first commit
Package: python-test-pip
pyquotesThis is a API in python3 to get quotes.PlanPhase 1The idea is to use scrap the quotes fromBrainyQuote. We will usebeautifulsoup4for this.To get started with this you can watch a small tutorialhere.Functionalities to be supported are:Get quotes from particular topic, categories.Get quotes from particular person.Phase 2Convert this into a pip package.Phase 3Use what we have built till now to make a twitter bot which will tweet quotes everyday.Contribution GuidelinesWe would love contributions from everyone. Some general guidelines are:Write neat code with proper comments.Follow PEP8 coding style.Write tests wherever necessary.Write descriptive commit messages.For any more information contactakshatkaraniLegalPlease refer to thelicence
Package: python-test-struct
This is a test project, upload the user test package to pypiProject descriptionmyWeb is an extremely simple but WSGI-compliant web application framework. myWeb uses decorators to register routes, not only supports static routes, but also supports dynamic route resolution. You can make it follow the parameters directly in the url.InstallingInstall using pippip3install-ihttps://test.pypi.org/simple/JuejinPdudoProjectSimple static routing casecode:fromJuejinPdudoSampleWebimportmyWeb@myWeb.routes(path="/index",methods="all")defindex(r):return"hello world\n"defmain():myWeb.run("",8888)if__name__=='__main__':main()tests:pdudo$curl-v127.0.0.1:8888/index
*Trying127.0.0.1:8888...
*Connectedto127.0.0.1(127.0.0.1)port8888(#0)>GET/indexHTTP/1.1
>Host:127.0.0.1:8888
>User-Agent:curl/7.81.0
>Accept:*/*
>
*Markbundleasnotsupportingmultiuse
*HTTP1.0,assumecloseafterbody
<HTTP/1.0200OK
<Date:Sat,06May202306:21:17GMT
<Server:WSGIServer/0.2CPython/3.11.0
<Content-Length:12<
helloworld
*Closingconnection0pdudo$Simple Dynamic Routing CasefromJuejinPdudoSampleWebimportmyWeb@myWeb.routes(path="/hello/{name}",methods="all",regular=True)defhello(r):name=r.regular[0]return"hello%s\n"%(name)defmain():myWeb.run("",8888)if__name__=='__main__':main()tests:pdudo$curl-v127.0.0.1:8888/hello/pdudo
*Trying127.0.0.1:8888...
*Connectedto127.0.0.1(127.0.0.1)port8888(#0)>GET/hello/pdudoHTTP/1.1
>Host:127.0.0.1:8888
>User-Agent:curl/7.81.0
>Accept:*/*
>
*Markbundleasnotsupportingmultiuse
*HTTP1.0,assumecloseafterbody
<HTTP/1.0200OK
<Date:Sat,06May202306:22:11GMT
<Server:WSGIServer/0.2CPython/3.11.0
<Content-Length:12<
hellopdudo
*Closingconnection0pdudo$EndGood luck with your use.
Package: pythontexfigures
LaTeX Python figuresGiven a Python script like this which draws a Matplotlib figure:defmain():x=np.arange(10)y=x**2plt.plot(x,y)plt.xlabel('$x$')plt.ylabel('$x^2$')return'test'# Figure filenameyou can insert it into a LaTeX document like this:\begin{figure}\pyfig{'test.py'}\caption{Test figure.}\end{figure}By default, the figure size defaults to\textwidthsquare and the font and font size match the rest of the document.InstallationRequires a LaTeX installation (probably TeX Live 2019), PythonTeX, and Python 3.6 or greater.Examples require latexmk.To install the Python package:pip3installpythontexfiguresTo install the LaTeX package intotexmf-local:sudopython3-mpythontexfigures.installIf you don't have root access, you can install it intotexmf-homeinstead:sudopython3-mpythontexfigures.installTEXMFHOMEAlternatively, callpf.print_preamble()in your pythontexcustomcode and follow with\printpythontex.
Package: python-textops3
python-textops3 provides many text operations at string level, list level or whole text level.These operations can be chained with a ‘dotted’ or ‘piped’ notation.Chained operations are stored into a single lazy object, they will be executed only when an input text will be provided.InstallTo install:pip install python-textops3OverviewThe usual way to use textops is something like below. IMPORTANT : Note that textops library redefines
the pythonbitwise ORoperator ‘|’ in order to use it as a ‘pipe’ like in a Unix shell:from textops import *

result = "an input text" | my().chained().operations()

or

for result_item in "an input text" | my().chained().operations():
   do_something(result_item)

or

myops = my().chained().operations()
# and later in the code, use them :
result = myops("an input text")
or
result = "an input text" | myopsAn “input text” can be :a simple string,a multi-line string (one string having newlines),a list of strings,a strings generator,a list of lists (useful when you cut lines into columns),a list of dicts (useful when you parse a line).So one can do:>>> 'line1line2line3' | grep('2').tolist()
['line1line2line3']
>>> 'line1\nline2\nline3' | grep('2').tolist()
['line2']
>>> ['line1','line2','line3'] | grep('2').tolist()
['line2']
>>> [['line','1'],['line','2'],['line','3']] | grep('2').tolist()
[['line', '2']]
>>> [{'line':1},{'line':'2'},{'line':3}] | grep('2').tolist()
[{'line': '2'}]ExamplesPiped then dotted notation (recommended):>>> print('this is an error\nthis is a warning' | grepi('error').first().upper())
THIS IS AN ERRORYou could use the pipe everywhere (internally a little less optimized, but looks like shell):>>> print('this is an error\nthis is a warning' | grepi('error') | first() | strop.upper())
THIS IS AN ERRORTo execute an operation directly from strings, lists or dictswith the dotted notation,
you must use textops Extended types :StrExt,ListExtorDictExt:>>> s = StrExt('this is an error\nthis is a warning')
>>> print(s.grepi('error').first().upper())
THIS IS AN ERRORDocumentationPlease,read documentation here :News3.2.1 (2022-03-31)add Python 3.10 support3.1.0 (2020-06-25)add TupleExtDictExt now support pickle3.0.8 (2019-10-08)add encoding & encoding_errors arguments to cat()3.0.7 (2019-10-01)add separators argument to parse_smart()3.0.6 (2019-09-25)add key_filter argument to parse_smart()3.0.5 (2019-06-14)add decode_bytes()3.0.3 (2018-11-07)Migrate from python 2 to python 3
Package: python-textunited
A wrapper around the Text United API written in Python. Each Text United
object is represented by a corresponding Python object. The attributes
of these objects are cached, but the child objects are not.Free software: GNU General Public License v3 or later (GPLv3+)Installationpip install python-textunitedDocumentationhttps://python-textunited.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-10-17)First release with the main modules and test working.
Package: python-tfvars
python-tfvarsread secrets from terraform tfvarsThis module will read variables fromterraform tfvars filesto facilitate the usage of python scripts from terraform resources.Currently we do not support json format.basic usageAssuming a terraform.tfvars file as follows:token = "some_token"in your python script:import tfvars

tfv = tfvars.LoadSecrets()
print(tfv["token"])optionally specify a file location:tfv = tfvars.LoadSecrets("../dev.auto.tfvars")
Package: python-tgdbapi
python-tgdbapiA comprehensive python wrapper for thegamesdb.net API (http://wiki.thegamesdb.net/index.php?title=API_Introduction).Installationpip install python-tgdbapiContributingCheck the Issue Tracker:https://github.com/mabernardo/python-tgdbapi/issuesFork the projectConfigure a virtual environmentpython3.6 -m venv ./venvInstall the requirements:make installStart coding ;)Requirementspython3.6pip
Package: python-thepeer
ThePeer Python Sdkpython SDK for ThePeer payment infrastructureReference Official Documentationhttps://docs.thepeer.co/Instantiate ThePeer api objectfromThePeer.clientimportClientclient=Client(api_key="YOUR PRIVATE KEY")"""returns all indexed users for your business"""client.get_users()"""Index/create usersdata = {"name" : "", "identifier" : "", "email" : ""}"""client.create_user(data=data)"""Update indexed userthe method requires two arguments, the user's ReferenceId and the user's new identifierreferenceId = ""data = {"identifier" : ""}"""client.update_user(referenceId,data=data)"""Delete indexed userthis methods allows you to delete an indexed user on your business profilereferenceId = """""client.delete_user(referenceId)# Transactions"""returns all the details of a particuar transactiontransactionId = """""client.get_transaction(transactionId)"""This method refunds a specific transaction back to its origin (business & user of that business)it requires two arguments by default transactionId and refund details, alternatively, you canpass in only the transactionId and we'd use the default refund data i.e data = {"reason": "possible fraud"}"""client.refund_transaction(transactionId)"""This returns all linked accounts associated with a user, It returns the user's account details along with he business the account resides on.pass in the linkId to identify and get user's links"""client.get_user_links(linkId)"""Similarly the method returns a linked account details by passing its ID."""client.get_user_link(linkId)"""This method enables you to charge your user's linked accountwhere data = {"amount": ,"remark": ""}"""client.charge(linkId,data)"""This method allows you simulate receiving moneydata = {"amount": ,"currency": "","user_reference": ""}"""
Package: python-thingiverse
Python ThingiverseNOT OFFICIAL. This is only a Python wrapper for Thingiverse REST API.This project was started in Feb 10 2022. It is still being developed and improved. To see the Test PyPI package, check ithereTable of ContentsGetting StartedUsageInstalling development packageTODOImprovementsGetting StartedTo install the package runpipinstallpython-thingiverseUsageInitializing the ThingiversefromthingiverseimportThingiversethingy=Thingiverse(access_token="<access token>")search_results=thingy.search_term("RPi 4")Installing development packagepython3-mpipinstall-ihttps://test.pypi.org/simple/python-thingiverseTODO:A full list of REST endpoints will go hereImprovementsDocstringsOAuth working (Use App token!!!)CI/CDLook into autoversioningTests (started)READMEThink of documentation hosting
Package: python-throttle
python redis backed limitersliding log or fixed window limiterThis module mainly offer two limiterFixedWindowLimitersimply using redis incr, which about 10 times the speed of the sliding version but the limit is not smooth, may overflow a threshold size near the gap between two intervalsSlidingWindowLimiterusing redis ordered set, slow but offers more smooth limit and more extendabilityinstallationpip install python-throttledummy example usage:reminder: use name_space to avoid possible conflict on the same keyimporttimefromlimiterimportFixedWindowLimiterTEST_REDIS_CONFIG={'host':'localhost','port':6379,'db':10}ip="who are you?"throttle=FixedWindowLimiter(threshold=2,interval=3,redis_config=TEST_REDIS_CONFIG,name_space="default")print("first time, blocked?:{}".format(throttle.exceeded(ip)))print("second time, blocked?:{}".format(throttle.exceeded(ip)))print("now I block you, blocked?:{}".format(throttle.exceeded(ip)))time.sleep(3)print("refill energy, blocked?:{}".format(throttle.exceeded(ip)))ouput:first time blocked?: False
second time blocked?: False
now I block you blocked?: True
refill energy blocked?: Falsedummy beach markIt is from my unittest and not accurate,rate_counter_pressure_test: SlidingRedisCounter
rate_counter_pressure_test: SlidingRedisCounter time count: 1.0075314449495636
rate_counter_pressure_test: FixedWindowRedisCounter
rate_counter_pressure_test: FixedWindowRedisCounter time count: 0.13711917598266155
Package: python-thumbnail
Python ThumbnailPython Thumbnail is a wrapper around multiple image backends that allows
to perform image transformations easily.Based on sorl-thumbnail it implements a seamless integration with more frameworks
than just Django.It also provides a built in command line interface and a wsgi middleware to serve
thumbnails on demand.Supported integrationDjangoFlaskTornadoPyramidWebpySupport Image EnginesPillowImageMagickWandpgmagickStorage SupportDjango Storage BackendsFilesystemS3
Package: python-thunderborg
The MIT License (MIT)OverviewThis API for theThunderBorgboard has additional features that the original API does not have.Python 2.7.x and 3.8 are supported in the same code base. There is an issue
building theevdevpackage with all version or Python 3.8 and higher.Built in logging to a log file of your choice–no print statements.Autovoltage insettings.API initialization is done during class instantiation.Flag to initialize the first board that is found if default is not present.WarningThis version of theThunderBorg APIis a complete rewrite of the
version provided on thePiBorg forums.
It is functionally compatible, but not signature compatible. In other
words the class and method calls are completely different.ProvidesAn API (Application Programming Interface) for the ThunderBorg motor
controller boards.Installation GuideTesting GuidePair bluetooth Wireless ControllerFeel free to contact me at: carl dot nobile at gmail.comComplete Documentation can be found onRead the Docsat:Thunder Borg
Package: python-thycotic
Python ThycoticThis is a Python wrapper for Thycotic Secret Server API version 10.9.Installpipinstallpython_thycoticUsageYou will need to the username, password, and Thycotic Secret Server URL to instantiate the class.importos,thycoticss=thycotic.Api(os.environ.get("THYCOTIC_USER"),os.environ.get("THYCOTIC_PASS"),os.environ.get("THYCOTIC_URL"),)Get an access token, which is used to make API callsss.auth()Get a secret by idsecret=ss.get_secret(123)
Package: python-tic
teleinfo - EDF teléinformation Python libraryThis library allows you to retrieve teleinfo using serial port device (USBTICLCV2).Examplefrom ticpy import Teleinfo, TeleinfoMode

with Teleinfo('/dev/tty.usbserial-DA4Y56SG', mode=TeleinfoMode.HISTORY) as teleinfo:

    frame = teleinfo.read_frame()
    print(frame.get("PAPP"))
Package: python-tictactoe
python-tictactoeA tic-tac-toe library that supports different sizes and dimensions and how many marks in a row to win.InstallingDownload and install the latest release:pip install python-tictactoeFeaturesIncludes mypy typings.Different board sizesfromtictactoeimportBoardboard=Board(dimensions=(4,5))More than 2 dimensionsfromtictactoeimportBoardboard=Board(dimensions=(6,2,5,8))More than 3 in a row to winfromtictactoeimportBoardboard=Board(dimensions=(10,10,10),x_in_a_row=8)See the boardfromtictactoeimportBoardboard=Board(dimensions=(2,2,2),x_in_a_row=2)board.push((0,0,0))board.push((0,1,0))print(board)"""X |-------O |--------------|-------|"""Generate endgame tablebasesfromtictactoe.egtbimportGeneratorimportfunctools,operatordimensions=(4,3)total_squares=functools.reduce(operator.mul,dimensions)forindexinreversed(range(total_squares+1)):Generator(dimensions,3,index)Read endgame tablebasesfromtictactoe.egtbimportReaderfromtictactoeimportBoardreader=Reader((3,3),3,2)board=Board((3,3),3)board.push((0,0))board.push((0,1))print(reader.index(board))Licensepython-tictactoe is licensed under the MIT License. Check out LICENSE for the full text.
Package: pythontidy2
Usagepython-mpythontidy2[-texpandtabsize]script.pyInstallationpipinstallpythontidy2DescriptionLife is short, format the code automatically(人生苦短，自动排版)Tidy python scriptsEffectConvert Tabs to Spaces(Tabs sized can be decide in argument -t, default
is 4)Delete white spaces at end of lineOwn thoughts about code format, some part are different from PEP8PEP8:Whitespace in Expressions and
StatementsNot
compliantAlways add 1 white space between operatorsAlign dict and assignment statments like followingFrom:list=[1,2,{'Alicedefg':'2341','Beth':"c",'Cecil':'3258',},4]To:list=[1,2,{'Alicedefg':'2341','Beth':"c",'Cecil':'3258',},4]From:doc=""long_variable=((doc+' ')ifdocelse'')x=""To:doc=""long_variable=((doc+' ')ifdocelse'')x=""LimitationOnly Windows(CRLF) Linux/Modern OSX(LF) end of line mark
supportedDo not support classic Mac end of line mark(CR)Widechar(Asian) in sorce code (as variable or dict Key) not testedVIM IntegrationBelow example binds the tidy fucntion to F7command-range=%-nargs=* TidyPython<line1>,<line2>!python-mpythontidy2funDoTidyPython()letPos=line2byte(line(".")):TidyPythonexe"goto ". PosendfunauFiletype python nmap<F7>:callDoTidyPython()<CR>auFiletype python imap<F7><ESC>:callDoTidyPython()<CR>auFiletype python vmap<F7>:TidyPython<CR>LicenseBSDCopyright (c) 2016, Boying Xu All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Package: python-tiktok
python-tiktokA simple Python wrapper around for Tiktok API :sparkles: :cake: :sparkles:.IntroductionThis library provides a service to easily use TikTok official apis.For now, include follows apis:TikTok for developersTikTok for Business AccountInstallingYou can install this library easily bypypi:$pipinstallpython-tiktokMore installing detail seeInstallation docsUsingYou can see more usage detail atusage docsBusiness AccountVersion Tips :API for Business Version1.3is now live! visitherefor more details.Now this library set default version tov1.3.Andv1.2will be deprecated on August 15, 2023.If you have account access token, you can initialize api instance by it.>>>frompytiktokimportBusinessAccountApi>>>business_api=BusinessAccountApi(access_token="Your Access Token")Or you can let account to give permission byOAuth flow. Seebusiness authorization docsNow you can get account’s data.Get account profile:>>>business_api.get_account_data(business_id="Business ID",return_json=True)>>># {'code':0,'message':'OK','request_id':'2022070106561301000400402500400500600301500A52386','data':{'display_name':'kiki','profile_image':'https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/accb4aeac4ec812e2bdc45ce1da1ed39~c5_168x168.jpeg?x-expires=1656828000&x-signature=MmXPWeImP%2BRGBwAOqN3wjPpDiZE%3D'}}If you set function parameterreturn_jsontoTrue, will return the json dict data. Otherwise will return adataclassobject representing the response.Get account videos:>>>business_api.get_account_videos(business_id="Business ID",return_json=True)>>># {'code':0,'message':'OK','request_id':'20220701071724010004003007735002053068B3FD9','data':{'videos':[{'item_id':'7108684822863760646'},{'item_id':'7109064881462152453'}],'has_more':False,'cursor':0}}Kit ApiIf you have user access token, you can initialize api instance by it.>>>frompytiktokimportKitApi>>>kit_api=KitApi(access_token="Your Access Token")Or you can let user to give permission byOAuth flow. Seekit authorization docsNow you can get account’s data.Get user info:>>>kit_api.get_user_info(open_id="User Openid",return_json=True)>>># {'data':{'user':{'open_id':'open_id','union_id':'union_id','avatar_url':'https://p16-sign-sg.tiktokcdn.com/tiktok-obj/7046311066329939970~c5_168x168.jpeg?x-expires=1656907200&x-signature=w4%2FugSm2IOdma6p0D9V%2FZneIlPU%3D','display_name':'ki'}},'error':{'code':0,'message':''}}Get user videos:>>>kit_api.get_user_videos(open_id="_000Hqnyyz5UYe39YWBZwFnaQGfyaoh3s4IY",return_json=True)>>># {'data':{'videos':[{'create_time':1654670085,'share_url':'https://www.tiktok.com/@klein_kunkun/video/7106753891953347842?utm_campaign=tt4d_open_api&utm_source=aw46lwwtsqjeapig','duration':5,'id':'7106753891953347842'},{'create_time':1654658105,'share_url':'https://www.tiktok.com/@klein_kunkun/video/7106702437926407426?utm_campaign=tt4d_open_api&utm_source=aw46lwwtsqjeapig','duration':6,'id':'7106702437926407426'}],'cursor':1654658105000,'has_more':False},'error':{'code':0,'message':''}}
Package: python-time
一个简易的时间模块，包含常用的时间方法，仅支持python3安装：pip install python-time使用方法，例如：from pytime import time
print(pytime.timestamps())输出：1576225887提供的所有方法：pytime.timestamps()

pytime.microtime()

pytime.time_format(timestamp=None, format="%Y-%m-%d %X")

pytime.strtotime(format_time)

pytime.shift(time_type: str, timestamp: int=None)

pytime.sleep(second: int)