Saravanan666/pypi-org huggingface dataset:
Package: ypy-websocket
Ypy-websocketYpy-websocket is an async WebSocket connector for Ypy.Documentation:https://davidbrochart.github.io/ypy-websocketSource Code:https://github.com/y-crdt/ypy-websocketYpy-websocket is a Python library for building WebSocket servers and clients that connect and synchronize shared documents.
It can be used to create collaborative web applications.The following diagram illustrates a typical architecture. The goal is to share a document among several clients.Each client has an instance of aYDoc, representing their view of a document. A shared document also lives in aroomon the server side. Conceptually, a room can be seen as the place where clients collaborate on a document. The WebSocket to which a client connects points to the corresponding room through the endpoint path. In the example below, clients A and B connect to a WebSocket at pathroom-1, and thus both clients find themselves in a room calledroom-1. All theYDocsynchronization logic is taken care of by theWebsocketProvider.Each update to a shared document can be persisted to disk using astore, which can be a file or a database.flowchart TD
    classDef room1 fill:#f96
    classDef room2 fill:#bbf
    A[Client A<br>room-1]:::room1 <-->|WebSocket<br>Provider| server(WebSocket Server)
    B[Client B<br>room-1]:::room1 <-->|WebSocket<br>Provider| server
    C[Client C<br>room-2]:::room2 <-->|WebSocket<br>Provider| server
    D[Client D<br>room-2]:::room2 <-->|WebSocket<br>Provider| server
    server <--> room1((room-1<br>clients: A, B)):::room1
    server <--> room2((room-2<br>clients: C, D)):::room2
    A <-..-> room1
    B <-..-> room1
    C <-..-> room2
    D <-..-> room2
    room1 ---> store1[(Store)]
    room2 ---> store2[(Store)]
Package: ypywidgets
ypywidgets: Y-based Jupyter widgets for Pythonypywidgetsis a communication backend between a Jupyter kernel and clients. It allows to synchronize data structures that can be modified concurrently, and automatically resolves conflicts. To do so, it uses:the Jupyter kernelCommprotocol as the transport layer, and thecommimplementation of it.thepycrdtCRDT implementation.thereacttrspackage that implements the observer pattern.It is a replacement for (a part of)ipywidgets. When used withyjs-widgets, it supports JupyterLab clients that implement widgets. The difference withipywidgetsis that these widgets are collaborative: they can be manipulated concurrently from the kernel or from any client. The CRDT algorithm ensures that a widget state will eventually be consistent across all clients.
Package: yql
##YQL[![Build Status](https://travis-ci.org/plasmashadow/yql.svg?branch=master)](https://travis-ci.org/plasmashadow/yql)[![PyPI version](https://badge.fury.io/py/yql.svg)](http://badge.fury.io/py/yql)##Description:YQL is a thin wrapper for Yahoo Query Language.##Installation:```pythonpip install yql```##UsageInorder to create a yahoo request you can use a YRequest call from YQL.```pythonfrom yql import YRequestimport logginglog = logging.getLogger(__name__)y = YRequest(table="html")y.add_filter("url", "http://en.wikipedia.org/wiki/Yahoo")response = y.json()log.info(response)```Since yql comes with the Object mapper you can directly reference thesub keys of a json.```pythonlog.info(response.query.count)```##LICENSEMIT
Package: yqml
YQMLYAML based query language.This library will help you convert a YAML into a Query script.Why using YAML for the query?The query is purely text, hard to parse and convert into any form that we want. Also programming language can't read query text properly. But YAML does.If you have a query that become a source of truth in your service, and need to be convertible or extract to every form let sayjson/yaml/erd/schema/othersthen this is the answer.By using YQML, you write the Query in YAML format and it's transformable into SQL syntax.AdvantageYour query will be easy to read by your programming language, since its YAMLYour query is not isolated with Query engine (say Postgres, MySQL, Bigquery), when you're doing some migration, your query is safe.you can use sharing function / available yqml library around the world to get you covered, say for building SCD table, Fact accumulated, etcYou can apply any templating/function before render into some querySampleSQLYQML-- simple syntaxSELECTid,name,addressFROMpersonsselect:-id-name-addressfrom:persons-- syntax with CTEWITHraw_dataAS(SELECTid,nameasperson_name,left(address,10)asaddressFROMpersonsWHEREid>1213)SELECTaddress,count(*)total_personFROMraw_dataGROUPBY1with:raw_data:select:-name:id-name:person_namesource:name-aname:addresssource:left(address,10)from:personswhere:>id > 1213select:-name:address-name:total_personssource:count(*)from:raw_datagroup_by:-address-- syntax with complex templating/functionWITHscd_type2_rawAS(SELECTid,nameasperson_name,left(address,10)asaddressFROMpersons)-- ..... 1000lines more hereSELECTperson_id,person_name,person_addressFROMsemi_final_rawfunction:-log_to_scd_type2log_to_scd_type2:select:-name:person_idsource:id-name:person_namesource:name-name:person_addresssource:addressfrom:personsInstallationUse the package managerpipto install yqml.pipinstallyqmlUsagefromyqml.yqmlimportYQMLimportyamlcontent=yaml.safe_load(file)engine=YQML(content,engine='bigquery')sql=engine.to_sql()print(sql)What's supported nowSupporting simple SQL (Select, From, Where, Join)TODOSupporting CTESupporting MERGESupporting ScriptingBetter to handling multiple JOIN statementSupporting function import / tmplatingContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: yqn-project-cli
yqn_project_cliFor more faster to create semi-project based on flask##console runner
####new_json_config_file由初始项目json_config_file复制过来，后续整个项目生命周期的路由部分以新文件为依据初始化项目：yqn-project -c absolute_json_config_file_path初始化或更新module：yqn-autoview - c new_json_config_file_path##json-config-file format:{"app_id":22010,"app_name":"project_name","app_path":"absolute_project_dir_path","path_list":[{"path":"/index/","module":"main","view_cls":"Index","view_mth":"get_index","http_methods":["GET","POST"],"doc":"默认"},{"path":"/tool/","module":"tool","view_cls":"Index","view_mth":"get_tool","http_methods":["GET","POST"],"doc":"工具"}]}##json-file参数解释：app_id：项目唯一数字标识项目(app_name)位于路径(app_path)下path_list：所有需路由对象信息数组path: http请求路径module: api下的对应模块，便于分块，如 main、toolview_cls: api对应模块下views.py文件内的视图类, 如 Indexview_mth: 对应视图类下实例方法, 如 get_index、get_tool，http请求时产生调用http_methods: 支持http请求方式doc: 方法doc描述##初始项目结构描述（api/common/config/rpc/scripts/thirds/utils,以及入口和打包文件）
###api:接口模块
#####api.*子模块：
######1.handler:功能逻辑
######2.model:模型定义
######3.parser:参数解析校验
######4.views:视图逻辑###common:通用或不明晰模块###config:项目配置###rpc(http):调用封装###scripts:脚本罗列###thirds:三方插件###utils：功能函数###其他：一些入口或打包文件
Package: yqn-project-pro
yqn_project_cli####console runner:
yqn-project -c absolute_json_file_pathyqn-autoview - c new_json_file_path which named project_name.json in config dir for generating module or view automatically####json-file format:{"app_id":22010,"app_name":"project_name","app_path":"absolute_project_dir_path","path_list":[{"path":"/index/","module":"main","view_cls":"Index","view_mth":"get_index","http_methods":["GET","POST"],"doc":"默认"},{"path":"/tool/","module":"tool","view_cls":"Index","view_mth":"get_tool","http_methods":["GET","POST"],"doc":"工具"}]}####参数解释：#####app_id：项目唯一数字标识
#####项目(app_name)位于路径(app_path)下
#####path_list：所有需路由对象信息数组#####path: http请求路径
#####module: api下的对应模块，便于分块，如 main、tool
#####view_cls: api对应模块下views.py文件内的视图类, 如 Index
#####view_mth: 对应视图类下实例方法, 如 get_index、get_tool，http请求时产生调用
#####http_methods: 支持http请求方式
#####doc: 方法doc描述
Package: yqn-pytorch-framework
pytorch_development_framework###pytorch 开发框架####yqn-module
构建module结构yqn-module -n key_attention -o /data-hdd/ProjectCode/DeepLearning/pytorch_development_framework/out####yqn-project
构建Project结构yqn-project -n attorney_parse -i 50010 -o /data-hdd/ProjectCode/DeepLearning/pytorch_development_framework/out####yqn-model
下载配置模型到本地目录yqn-model -e online -F
Package: yrag
YRAG is aimed to build up Machine Learning Application quickly!This is a simple example package. You can useyragto write your content.Package included:Data Science packagenumpy            -      1.18.4pandas           -     1.0.3scipy            -      1.4.1scikit-learn     -      0.23.0tensorflow       -      2.2.0torch            -      1.4.0+cputransformers     -      2.9.1Database packagepymssql          -      2.1.4PyMySQL          -      0.9.3redis            -      3.5.2requests         -      2.23.0NoteBuild package : python setup.py sdist bdist_wheelUpload package : python -m twine upload dist/*
Package: yRest
yRestyRest is a REST framework for treesIt usesyModel,ySanic,yAuthandyOpenApiand allows you to focus on the architecture and the features of your APIAVuejsset of libraries are about to come to make yRest a fullstack frameworkA website with the documentation is on its way tooInstallationpip install yRestHelpFeel free to help if you think something is weird or incomplete by submiting a pull requestI'm not a technical person but still want to helpYou can tip the project with cryptos too:BTC: 1GtKxwZGR65ar9V8xafxhMiniZyqXej2GCETH: 0x01bd478b8C07633D2f4E58AC553f72CE4E590d56LTC: LYUzrFX6ck5uMhw5VqcD9piQHnX7oeSLdhXMR: 49stcvbfjEkWLjb6mdG21zMJ3uRrLmN3bazGQ8cHjjsVHYYyY61N6P7emCXhpsvB2Vc8Uuz2FA1Qk6hkE8e4ADmJQQ64eyTADA: DdzFFzCqrhsoUF5UjGGAYUayV5uNCJZ17PJn9V8X9MTQ26m2wDVycme42gufKufPNWMazfJLg8RKHpc1iFvn6j8BTJjaozGtLPzCDx5tNEM: NDGYO6X3NTD6CX3V7MCCYKQPBIOYGZRXEKDLCDW2
Package: yrouter-websockets
Yrouter-websocketsyrouter-websoketsis a URL routing package for thewebsocketslibrary. It's built on top ofyrouter.Exampleimportasyncioimporthttpimportwebsocketsfromyrouterimportroutefromyrouter_websocketsimportrouterasyncdefhome(ws):awaitws.send("In home")asyncdefhello_user(ws,username):awaitws.send(f"Hello{username}")asyncdefchannel(ws,channel_id):# Do some stuff with channel_idroutes=(route("/",home),route("hello/<str:username>/",hello_user),route("channels/<int:channel_id>",channel),)asyncdefmain():asyncwithwebsockets.serve(router(routes),"localhost",8765):awaitasyncio.Future()if__name__=="__main__":asyncio.run(main())
Package: yr-weather
yr-weatherRetrieve weather data from Norwegian Meteorological Institute's APIs easily.yr-weatheris an API wrapper for some of the products fromMET's API.
To see an example on how these APIs can be used, take a look atYr, made by MET and NRK.Available onPyPI:Supported products are:Locationforecast (v2.0)Radar (v2.0)Textforecast (v2.0)Sunrise (v3.0)Geosatellite (v1.4)RequirementsThis package requires Python 3.8 or newer.
To download the newest version, visitPython's website.InstallingTo useyr-weather, simply install it usingpip.For Windows:pip install yr-weatherFor Linux/macOS:python3 -m pip install yr-weatherGetting startedTo get started, check out thedocumentation.For specific API Products, check their separate section on the documentation:LocationforecastRadarTextforecastSunriseGeosatelliteFor the best developer experience, all functions and classes are typed and documented with docstrings.CachingBy default, the library makes a cache file namedyr_cache.sqlitein the working directory.
To disable caching, setuse_cachetoFalselike so:yr_weather.Locationforecast(headers=headers,use_cache=False)MET's Terms of Service encourage using caching to avoid extra load on the network. Therefore, disabling caching and not implementing it yourself is not recommended.LicenseThis project is licensed under theApache License 2.0.Disclaimeryr-weatheris not associated with yr.no or the Norwegian Meteorological Institute (MET).
Any usage of the APIs provided by MET must follow theirAPI Terms of Service.
Package: ysa
YSA - You shall ask -- API PYTHON CLIENTWhat is YSA?A Restful API that runs a feature flagging status storage as a service.YSA-REPOWhat is this client for?It makes automatic all the interaction between your code and the api on execution time,
allowing you to relax yourself knowing that you don't need to code such interaction.YSA-PYTHON-CLIENT-REPO
Package: ySanic
ySanicySanic is aSanicsubclass with a bunch of utilities to help the developer to work with it in the context of the yRest framework (which includesyModelandyAuthby the moment and yOpenSanic in the future)yBlueprint adds some decorators and route creators both for CRUD and tree modelsExampleIn the tests folder there is an app with two models: Todos and Nodes
Todos shows how to program the typical plain structure while Nodes shows how to program the tree ones
If you respect the contract you could use the helpers (like the routes generators)Installationpip install ySanicHelpFeel free to help if you think something is weird or incomplete by submiting a pull requestWhat is already needed[] More testing[] Continous integration[] Better help & documentationI'm not a technical person but still want to helpYou can tip the project with cryptos too:BTC: 1GtKxwZGR65ar9V8xafxhMiniZyqXej2GCETH: 0x01bd478b8C07633D2f4E58AC553f72CE4E590d56LTC: LYUzrFX6ck5uMhw5VqcD9piQHnX7oeSLdhXMR: 49stcvbfjEkWLjb6mdG21zMJ3uRrLmN3bazGQ8cHjjsVHYYyY61N6P7emCXhpsvB2Vc8Uuz2FA1Qk6hkE8e4ADmJQQ64eyTADA: DdzFFzCqrhsoUF5UjGGAYUayV5uNCJZ17PJn9V8X9MTQ26m2wDVycme42gufKufPNWMazfJLg8RKHpc1iFvn6j8BTJjaozGtLPzCDx5tNEM: NDGYO6X3NTD6CX3V7MCCYKQPBIOYGZRXEKDLCDW2
Package: ysc2-sdk
The API Client for the Yeaosound ChainInstallationInstall from respositorypython3-mpipinstallysc2-sdkNote: You need to enter your username and password for the gitlab.yeaosound.com when you install from the repository.How to startFor a user who has an account with single privatekey, you can use the following code to start:fromysc2importyscmyaccount=ysc("__YOUR_ACCOUNT_ADDRESS__","__YOUR_ACCOUNT_PRIVATEKEY_CID__","__YSC_ENDPOINT_URL__")myaccount.getuserinfo()#Get the user information of the account#return a dict{'status':True,'uid':'YsAxxxxx','latest_block':'bafybxxxx|1234','last_update_time':1677634486,'last_important_update_block':'bafybxxxx|2345','role':'user','boss':'YsAxxxxx','joined':[],'balance':114514}myaccount.getbalance()#Get the balance of the account#return a integer114514myaccount.getheadblock()#Get the head block of the chain# return a dict{'status':True,'msg':'Success','data':{'block':'bafybxxxxx','data':{# the block data shown as a dict}}myaccount.getblock("__BLOCK_CID__")#Get the block with the block CIDmyaccount.gettrade("__BLOCK_CID__",__TRADE_OFFSET__)#Get the trade with the trade format "bafxxx|0" where "bafxxx" is the block CID and 0 is the trade offset, the offset should be an integer.myaccount.getusertrade(__DEPTH__)#Get the last __DEPTH__ trades of the account with a depth, the depth should be an integer.myaccount.createdeal("__DESTINATION_ACCOUNT_CID__",__AMOUNT__,strict_waiting=False)#Create a deal with the destination account CID and the amount, the amount should be an integer.#The strict_waiting is an optional parameter, if it is set to True, the function will wait until the deal is confirmed, otherwise it will return immediately.For a user who has an account with multi privatekey, it is such different and very complex. The method is only for the advanced user. You can use the following code to start:fromysc2importmuyscmyaccount=muysc("__YOUR_ACCOUNT_ADDRESS__","__ONE_OF_YOUR_ACCOUNT_PRIVATEKEY_CID__","__YSC_ENDPOINT_URL__")Note: The multi privatekey account is currently not supported by the official Yeaosound Chain, it is only for the advanced user who has the ability to create and manage a multi privatekey account.TipsTo set a custom IPFS node, you can use the following code:fromysc2.utils.ipfsimportapihelperasipfshelperipfshelper.IPFS_GW="http://127.0.0.1:8080"ipfshelper.IPFS_API="http://127.0.0.1:5001"
Package: y-scramble
Y-ScrambleY-Scramble is a simple python package to perform y-randomization validation
of machine learning models. It can be used for classification and regression tasks
and accepts models following thescikit-learninteface, and the user may use allscorersavailable atscikit-learn(accuracy,recall,precision).InstallingY-Scramble can be installed from PyPI using the following command:$ pip install y-scambleUsagefromy_scrambleimportScramblerfromsklearn.treeimportDecisionTreeClassifierX,y=load_iris(return_X_y=True)model=DecisionTreeClassifier()scrambler=Scrambler(model=model,iterations=1000)scores,zscores,pvalues,significances=scrambler.validate(X,y,scoring="accuracy",cross_val_score_aggregator="mean",pvalue_threshold=0.01)Thescrambleobject returns the scores, z-scores, p-values and the significancy
information for the model trained (base_model) using the default dataset and for different randomized versions as well (scrambled_models). These results are stores in numpy arrays, where the position of index 0 represents thebase_modeland the others thescrambled_models.The score of thebase_modelis stored inscores[0], and i's p-values is stored inpvalues[0]. If this p-value is significant, the value ofsignificances[0]will beTrue, indicating thatbase_modelshows a significantly better result when comparing to the randomized models. Following the same logic,scores[1]toscores[1000], for example, will store the score values for the randomized model1and1000, respectively.
Package: ys-dl
原神下载器一个可以从原神社区自动抓取图片的命令行工具。观看演示•报告错误•报告功能English•简体中文喜欢这个项目吗？请考虑捐赠（微信|支付宝），以帮助它改善！演示功能原神官网图标下载原神官网背景图片下载原神社区COS图下载原神社区同人图下载原神社区COS 榜与同人榜下图片载原神社区话题标签所属图片下载安装pipinstallys-dlys-dl是基于selenium开发的。目前唯一支持的浏览器是 Chrome，因此你的系统必须安装有 Chrome 浏览器，并下载Chrome WebDriver放入 Python 安装目录。（想了解关于 WebDriver 的详细信息？请参阅这里）用法$ ys-dl原神社区COS图片下载ys-dlcos原神社区同人图下载ys-dlfan根据排名（日榜 | 周榜 | 月榜）下载原神社区COS 图或同人图ys-dlrank更新更新日志见CHANGELOG.md证书MIT License参考
Package: yshs
Here is the open library of Yuan Shang Han Shan (YSHS) co. ltd.InstallpipinstallyshsUsageList Models列出所有可用的模型importos,sysimportyshsyshs.api_key=os.getenv('YSHS_API_KEY')response=yshs.Models.list(refresh=True,return_all_info=True)print(response)Request AI Modelimportos,sysimportyshsyshs.api_key=os.getenv('YSHS_API_KEY')defrequest_model():responese=yshs.LLM.chat(model="openai/gpt-3.5-turbo",# 选择模型messages=[{"role":"system","content":"You are a helpful assistant."},# 系统提示{"role":"user","content":"Who won the world series in 2020?"},# 第一个问题# {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},  # 第一个的答案# {"role": "user", "content": "Where was it played?"}  # 第二个问题])full_response=""forxinresponese:sys.stdout.write(x)# 逐token输出sys.stdout.flush()full_response+=xprint()returnfull_responseanswer=request_model()# print(answer)Continuous ConversationCreate thread to continue the conversation automatically.fromyshsimportClientclient=Client()# 注；一个Client可包含多个ChatThead, 一个ChatThead对应一个Conversation（根据chat_id区分），一个Conversation有多个轮次（turns）prompt="hello"# user promptforchunkinclient.send_prompt(prompt,chat_id=None):# send_prompt()时自动创建ChatTheadprint(chunk['response'],end='',flush=True)print()chat_id=chunk['chat_id']print(f'chat_id:{chat_id}')prompt='who are you?'forchunkinclient.send_prompt(prompt,chat_id=chat_id):# send_prompt()时自动匹配ChatThead，若不存在则创建print(chunk['response'],end='',flush=True)print()print(f'chat_id:{chat_id}')
Package: ysignals
ysignalsInstallpip install -U git+http://github.com/jrdi/ysignals.git@master#egg=ysignalsUsagefrompathlibimportPathfromysignals.dataimportyahoofromysignals.featuresimportRSI,SMAdb_dir=Path('db')yahoo.download_data(db_dir)features_generators=[RSI(num_days=5,interval=14,variable='adj_close'),RSI(num_days=5,interval=21,variable='adj_close'),SMA(num_days=5,interval=14,variable='adj_close'),SMA(num_days=5,interval=21,variable='adj_close'),]train,test,live,feature_names=yahoo.get_data(db_dir,features_generators=features_generators)
Package: ysk-django-lockdown
YSK lock down to make user lockThis is a django application for user lock down after 5 incorrect attempts.Installable AppThis app models a list of items on a lockdown.
This app can be installed and used in your django project by:$pipinstallysk-django-lockdownEdit yoursettings.pyfile to include‘lockdown’in theINSTALLED_APPSlisting.INSTALLED_APPS=[...'lockdown',]Edit your projecturls.pyfile to import the URLs:url_patterns=[...path('lockdown/',include('lockdown.urls')),]Finally, add the models to your database:$./manage.pymakemigrationslockdownThe “project” BranchThemaster branchcontains the final code for the PyPI package. There is also aproject branchwhich shows the “before” case – the Django project before the app has been removed.Docs & SourceSource:https://github.com/santhosh432/ysk_lockdownPyPI:https://pypi.org/project/ysk-django-lockdown/
Package: ysmtool
思明的个人工具库=================该工具库主要是把我平时常用的SEO代码、数据采集代码进行封装，方便在不同的项目中引用。如果你使用该工具库，本人无法保证代码的稳定性。安装======pip install ysmtool使用======import ysmtoolHttp模块=========http=ysmtool.Http()status,html=http.get("https://www.baidu.com")有get 和 post 方法, 返回 (status,html) , status 为 请求返回的状态码,数值型。ip:指定本地出口IP，如果是多网卡服务器，设置为相应网卡绑定的IP地址，就会从指定网卡进行请求gbk:如果返回的源码是gb2312,gbk之类的，设置为TrueserverIp:指定域名对应的IP，可以免解析，或者截持ua: user_agentcookie: cookie文本serverPort:网站对应的端口http.get(self,url,ip=None,ua='',refer='',cookie='',gbk=False,serverIp='',serverPort='')http.post(self,url,ip=None,ua='',refer='',cookie='',data={},gbk=False,serverIp='',serverPort='')tool模块===========bs=ysmtool.tool.soup(html)将html转为BeautifulSoup对象str=ysmtool.tool.urlencode(str)对字符串进行url编码md5str=ysmtool.tool.md5(str)对字符串进行md5jsontxt=ysmtool.tool.json_encode(obj)对json对象转化成json字符串,出错时 jsontxt==Noneobj=ysmtool.tool.json_decode(jsontxt)解析json字符串,出错时 obj==Nonebaidu模块=========status,num=ysmtool.baidu.index('www.taobao.com')淘宝的百度收录 , 正常返回的话， status == 200status,result=ysmtool.baidu.search('连衣裙',1,10)百度搜索“连衣裙”，返回第一页的结果, 正常返回的话， status == 200第三个参数为每页显示条数，默认10,只能设置为10,20,30,40,50if status==200 and  result:for item in result['items']:print item['title'],item['url']当查询为第1页时，result['total'] 为相关结果数:status,result=ysmtool.baidu.search('site:www.yesiming.com',1)if status==200 and result:print result['total']  #收录数凤巢关键词规划师拓词功能,需要网页端登录，然后抓包记录cookie和相关信息每次最多返回1000个相关关键词,kwc:竞争激烈程度pv:整体日均搜索数pcShow:pc搜索数wiseShow:移动搜索数showReason: 展现理由，数组结构 ['黑马','夜间好词']totalWeight: 总权重，不知道什么鬼reqid=''eventId=''token=''userid=''cookie=''page=1status,words=ysmtool.baidu.fengchao('双飞燕鼠标',cookie,token,userid,eventId,reqid,page)if status==200:for word in words:print word['word'],word['kwc'],word['pv'],word['pcShow'],word['wiseShow'],word['showReason'],word['totalWeight']haosou模块==========status,num=ysmtool.haosou.index('www.taobao.com')淘宝的360收录 ， 正常返回的话， status == 200status,result=ysmtool.haosou.search('连衣裙',1)360搜索“连衣裙”，返回第一页的结果 , 正常返回的话， status == 200if status==200 and  result:for item in result['items']:print item['title'],item['url']当查询为第1页时，result['total'] 为相关结果数:status,result=ysmtool.haosou.search('site:www.yesiming.com',1)if status==200 and result:print result['total']  #收录数aizhan模块===========打印出最近半年淘宝在百度的收录情况ysmtool.aizhan.history("www.taobao.com",'baidu')返回淘宝最近半年的历史数据，包括百度收录，百度索引，百度反链，360收录，360反链，搜狗收录，搜狗反链, Json格式json=ysmtool.aizhan.history('www.taobao.com')if json:print json联系我==========有问题请发邮箱至 simon@yesiming.com或者QQ: 176089710
Package: yspacepy
yspacepySynopsis>>>fromyspacepy.objectsimportsun,earth>>>sun.radius.value695508.0>>>sun.radius.unitUnit("km")>>>sun.radius.to('au').value0.004649183820234682>>>sun.radius.to('au').unitUnit("AU")>>>sun.radius<Quantity695508.km>>>>sun.dist('earth')<Quantity1.496e+08km>Using the API interfaceUsing the interface for they-space API:>>>fromyspacepy.apiimportysapi>>>api=ysapi()>>>api.messier.list()['m1','m2','m3','m4','m5',...>>>api.messier.id('m1'){'con':'Tau','dec':'+22° 01′','dist':'6300',...Installation$ pip install yspacepy