Saravanan666/pypi-org huggingface dataset:
Package: linkotron
linkotronCLI to format GitHub links in a shorter format.InstallationFrom PyPIpython3-mpipinstall--upgradelinkotronWithpipxpipxinstalllinkotronFrom sourcegitclonehttps://github.com/hugovk/linkotroncdlinkotron
python3-mpipinstall.UsageRunlinkotronorlinky, they do the same thing.$linky--helpusage: linky [-h] [-V] [--no-copy] [-m | -r] inputlinkotron: CLI to format GitHub links in a shorter format.positional arguments:input                 text containing GitHub links to shortenoptions:-h, --help            show this help message and exit-V, --version         show program's version number and exit--no-copy             do not copy output to clipboardformatters:-m, --md, --markdown  output in Markdown-r, --rst, --restructuredtextoutput in reStructuredTextLinkify a repo$linkyhttps://github.com/python/pepsCopied! python/pepsLinkify an issue$linkyhttps://github.com/python/peps/issues/1012Copied! python/peps#1012Linkify a pull request$linkyhttps://github.com/python/peps/pull/2399Copied! python/peps#2399Linkify a commit$linkyhttps://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0Copied! hugovk/cpython#28b2355Linkify a comment$linkyhttps://github.com/python/peps/pull/2399#issuecomment-1063409480Copied! python/peps#2399 (comment)FormattingMarkdown$linky--mdhttps://github.com/python/peps/pull/2399Copied! [python/peps#2399](https://github.com/python/peps/pull/2399)reStructuredText$linky--rsthttps://github.com/python/peps/pull/2399Copied! `python/peps#2399 <https://github.com/python/peps/pull/2399>`__
Package: link.parallel
link.parallelis a database agnostic query system.Seedocumentationfor more informations.Installationpip install link.parallelFeaturesparallel loops interface with IPython and multiprocessing driversMap/Reduce middlewareExamplesCreate your map/reduce functions:fromb3j0f.taskimportregister_task@register_task('mymap')defmymap(mapper,item):ifitem['i']<5:mapper.emit('i_lt_5',item)elifitem['i']>5:mapper.emit('i_gt_5',item)else:mapper.emit('i_eq_5',item)@register_task('myreduce')defmyreduce(key,values):return(key,len(values))Get input data and pass it to the middleware:fromlink.middleware.coreimportMiddlewaremapreduce=Middleware.get_middleware_by_uri('mapreduce+ipython:///test/classify?mapcb=mymap&reducecb=myreduce')items=# load itemsresult=dict(mapreduce(items))print(result)Donating
Package: linkparse
Link ParsePythonlibrary for parsing memento link headers.InstallationInstallation of the library requirespippackage installer for Python.Install pip:https://pip.pypa.io/en/stable/installation/1. Using Gitpipinstallhttps://github.com/mahanama94/link-parser2. Local copypipinstallpath/to/package/directoryUsage# sample.pyfromlinkparse.regex_parserimportRegexLinkParserfrompprintimportpprintlink_header='<http://www.mementoweb.org:80/>; rel="original", '\'<https://web.archive.org/web/timemap/link/http://www.mementoweb.org:80/>; rel="timemap"; '\'type="application/link-format", <https://web.archive.org/web/http://www.mementoweb.org:80/>; '\'rel="timegate", <https://web.archive.org/web/20090930115825/http://www.mementoweb.org/>; rel="first '\'memento"; datetime="Wed, 30 Sep 2009 11:58:25 GMT" 'parser=RegexLinkParser()parser_results=parser.parse(link_header)forresultinparser_results:pprint(result.__dict__)$pythonsample.py{'datetime':'','link_from':'','link_type':'','link_until':'','relationship':'original','title':'','uri':'http://www.mementoweb.org:80/'}{'datetime':'','link_from':'','link_type':'application/link-format','link_until':'','relationship':'timemap','title':'','uri':'https://web.archive.org/web/timemap/link/http://www.mementoweb.org:80/'}{'datetime':'','link_from':'','link_type':'','link_until':'','relationship':'timegate','title':'','uri':'https://web.archive.org/web/http://www.mementoweb.org:80/'}{'datetime':'Wed, 30 Sep 2009 11:58:25 GMT','link_from':'','link_type':'','link_until':'','relationship':'first memento','title':'','uri':'https://web.archive.org/web/20090930115825/http://www.mementoweb.org/'}#LANL   IdentificationLANL C number: C21088Copyright© 2021. Triad National Security, LLC. All rights reserved.
This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos
National Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S.
Department of Energy/National Nuclear Security Administration. All rights in the program are
reserved by Triad National Security, LLC, and the U.S. Department of Energy/National Nuclear
Security Administration. The Government is granted for itself and others acting on its behalf a
nonexclusive, paid-up, irrevocable worldwide license in this material to reproduce, prepare
derivative works, distribute copies to the public, perform publicly and display publicly, and to permit
others to do so.
Package: linkparser
LinkParserWritten in Python3 by Gaurav RajTheHackersbrainDescriptionLinkParseris a tool written in Python 3 for scrapping or grabbing all the links from a targeted website, domain or URL.NOTE:This Project was written during Practice session.VersionLinkParser 1.0RequirementsRequestsRichBeautifulSoup4PyFigletInstallation and UsesInstallationInstall this tool fromPyPiusingPIPpip3installlinkparserorBuild it from sourceclone this repogitclonehttps://github.com/thehackersbrain/linkparser.gitchange the directorycdlinkparserNow Run thesetup.pyscriptpythonsetup.pyinstallUsesFor Grabbing All links from a targeted URL.linkparser-u'https://blog.gauravraj.tech/'For Grabbing Links from a specific pathlinkparser-u'https://blog.gauravraj.tech'-p'/about'For Writting all of the finding in a filelinkparser-u'https://blog.gauravraj.tech'-p'/about'-ooutput.logAbout AuthorPortfolioBlogGithubTwitterLinkedInInstagramMore Projects
Package: linkplay-cli
Linkplay CLIControl audio devices supporting the Linkplay API, from the comfort of your shell.Supports UPnP auto-discovery, so you don't even have to know your device's IP address.Installationpipinstalllinkplay-cliAfter installing, runlinkplay-cli -hto get started.(Requirement: Python 3.6+)FAQI'm getting the errorcommand not found: linkplay-cliThe installed script is probably not in yourPATH.Runpip installwith the-vflag to find out the script's directory, and make sure that it's in your path.Some commands have no effectThis CLI utility is a wrapper around the Linkplay API, which may not work in all situations.For example, most commands won't work when the audio source is YouTube playing from your browser.
Package: linkpred
linkpredis a Python package for link prediction: given a network,linkpredprovides a number of heuristics (known aspredictors) that assess the likelihood of potential links in a future snapshot of the network.While some predictors are fairly straightforward (e.g., if two people have a large number of mutual friends, it seems likely that eventually they will meet and become friends), others are more involved.linkpredcan both be used as a command-line tool and as a Python library in your own code.Installationlinkpred(v0.5 and later) works under Python 3.6, 3.7, and 3.8. Version 0.4.1 was the last to support versions 3.4 and 3.5.
It depends on:matplotlibnetworkxnumpypyyamlscipysmokesignalYou should be able to install linkpred and its dependencies using pip (pip install linkpredorpython-mpip install linkpred). If you do not yet have Python installed, I recommend starting withAnaconda, which includes optimized versions of packages like numpy. If you want to use the Community predictor, which relies on community structure of the network, make sure you also have thepython-louvainpackage by installing withpip install linkpred[all].Example usage as command-line toolA good starting point islinkpred--help, which lists all the available options. To save the predictions of theCommonNeighbourspredictor, for instance, run:$ linkpred examples/inf1990-2004.net -p CommonNeighbours --output cache-predictionswhereexamples/inf1990-2004.netis a network file in Pajek format. Other supported formats include GML and GraphML. The full output looks like this:$linkpredexamples/inf1990-2004.net-pCommonNeighbours--outputcache-predictions16:43:13 - INFO - Reading file 'examples/inf1990-2004.net'...
16:43:13 - INFO - Successfully read file.
16:43:13 - INFO - Starting preprocessing...
16:43:13 - INFO - Removed 35 nodes (degree < 1)
16:43:13 - INFO - Finished preprocessing.
16:43:13 - INFO - Executing CommonNeighbours...
16:43:14 - INFO - Finished executing CommonNeighbours.
16:43:14 - INFO - Prediction run finished$headexamples/inf1990-2004-CommonNeighbours-predictions_2016-04-22_16.43.txt"Ikogami, K"    "Ikegami, K"    5.0
"Durand, T"     "Abd El Kader, M"       5.0
"Sharma, L"     "Kumar, S"      4.0
"Paul, A"       "Durand, T"     4.0
"Paul, A"       "Dudognon, G"   4.0
"Paul, A"       "Abd El Kader, M"       4.0
"Karisiddippa, CR"      "Garg, KC"      4.0
"Wu, YS"        "Kretschmer, H" 3.0
"Veugelers, R"  "Deleus, F"     3.0
"Veugelers, R"  "Andries, P"    3.0Example usage within Python>>>importlinkpred>>>G=linkpred.read_network("examples/training.net")11:49:00 - INFO - Reading file 'examples/training.net'...
11:49:00 - INFO - Successfully read file.>>>len(G)# number of nodes632>>># We exclude edges already present, to predict only new links>>>simrank=linkpred.predictors.SimRank(G,excluded=G.edges())>>>simrank_results=simrank.predict(c=0.5)>>>top=simrank_results.top(5)>>>forauthors,scoreintop.items():...print(authors,score)...Tomizawa, H - Fujigaki, Y 0.188686630053
Shirabe, M - Hayashi, T 0.143866427916
Garfield, E - Fuseler, EA 0.148097050146
Persson, O - Larsen, IM 0.138516589957
Vanleeuwen, TN - Noyons, ECM 0.185040358711
Package: link-prediction
Link PredictionLink Predictionis a Python module that provides baseline models to predict links between the screens of smartphone applications.It provides a heuristically constructed set of link data based on theRICO dataset.It provides several heuristic and learning-based link prediction models that can be used using with hierarchical screen data.This package is part of a master thesis project titled "Predicting Links for Mobile GUI Prototyping" byChristoph A. Johnsat German Research Center for Artificial Intelligence (DFKI) and Aalto University.
The project is supervised by Michael Barz and Prof. Antti Oulasvirta.RequirementsLink Prediction is known to work with Python 3.10.3 and above.InstallingYou can install the package using pip with the following command:pipinstalllink-predictionYou can them import the necessary packages fromlink_prediction.QuickstartTypically, link prediction involves (1) loading some screen data, (2) loading a pre-trained link prediction model and (3) predicting a link (or score) for a potential link from that data.# Importsfromlink_prediction.datasetsimportload_rico_linksimportjoblib# Load some dataX=load_rico_links(download_external_data=True)# Load a (pre-trained) modelmodel="PageContainsLabel"clf=joblib.load(f"models/{model}Classifier.joblib")# Predict labels and scoresy_pred=clf.predict(X)y_score=clf.decision_function(X)There is also a CLI for simplified use:$python3-mlink-prediction--source-screenpath/to/view_hierarchy/324.json--source-element76d99c7--target-screenpath/to/view_hierarchy/339.json--modelPageContainsLabelKeep in mind, however, that using thelink-predictionpackage as shown above requires the original RICO dataset, the RICOlinksdataset and the pre-trained models to be present in the project directory.ContributorsChristoph A. Johns
Package: linkpreview
linkpreviewGet link preview in pythonGathering data from:OpenGraphmeta tagsTwitterCardmeta tagsMicrodatameta tagsJSON-LDmeta tagsHTML Generic tags (h1,p,img)URL readable partsInstallpip install linkpreviewUsageBasicfromlinkpreviewimportlink_previewurl="http://localhost"content="""<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><!-- ... ---><title>a title</title></head><body><!-- ... ---></body></html>"""preview=link_preview(url,content)print("title:",preview.title)print("description:",preview.description)print("image:",preview.image)print("force_title:",preview.force_title)print("absolute_image:",preview.absolute_image)print("site_name:",preview.site_name)print("favicon:",preview.favicon)print("absolute_favicon:",preview.absolute_favicon)Automatic fetch link contentfromlinkpreviewimportlink_previewpreview=link_preview("http://github.com/")print("title:",preview.title)print("description:",preview.description)print("image:",preview.image)print("force_title:",preview.force_title)print("absolute_image:",preview.absolute_image)print("site_name:",preview.site_name)print("favicon:",preview.favicon)print("absolute_favicon:",preview.absolute_favicon)lxmlas XML parserVery recommended for better performance.Installthelxmland use it like this:fromlinkpreviewimportlink_previewpreview=link_preview("http://github.com/",parser="lxml")print("title:",preview.title)print("description:",preview.description)print("image:",preview.image)print("force_title:",preview.force_title)print("absolute_image:",preview.absolute_image)print("site_name:",preview.site_name)print("favicon:",preview.favicon)print("absolute_favicon:",preview.absolute_favicon)AdvancedfromlinkpreviewimportLink,LinkPreview,LinkGrabberurl="http://github.com"grabber=LinkGrabber(initial_timeout=20,maxsize=1048576,receive_timeout=10,chunk_size=1024,)content,url=grabber.get_content(url)link=Link(url,content)preview=LinkPreview(link,parser="lxml")print("title:",preview.title)print("description:",preview.description)print("image:",preview.image)print("force_title:",preview.force_title)print("absolute_image:",preview.absolute_image)print("site_name:",preview.site_name)print("favicon:",preview.favicon)print("absolute_favicon:",preview.absolute_favicon)
Package: link_preview
A python module that gathers elements required for linkPreview.Overviewlink_preview is now a fashionable way of sharing links in social media.
The contents of what the preview is made up are:-1. og.title:-
    Title of the preview.
    In HTML: <meta property="og.title" content="XYZ">
    Value: XYZ

2. og.description:-
    Description of the preview.
    In HTML: <meta property="og.description" content="XYZ">
    Value: XYZ

3. og.image:-
    Image of the preview.
    In HTML: <meta property="og.image" content="XYZ">
    Value: XYZ

4. title:-
    if 'og:title' is not found, this becomes the Title.
    In HTML: <title>XYZ</title>
    Value: XYZ

5. meta description:-
    if 'og:description' is not found, this becomes the Description.
    In HTML: <meta name="description" content="XYZ">
    Value: XYZ

6. favicon:-
    if 'og:image' is not found, this becomes the Image.
    In HTML: <link rel="shortcut icon" href="XYZ" type="image/x-icon">
    Value: XYZ

7. website:-
    Host website for the link.Reference:-richpreview(from where I
learned)This module fetches all these data and combines those into a dictionary.A sample WhatsApp link_preview:-#######################################
#   I    #    Title                   #
#   M    #    Description             #
#   A    #                            #
#   G    #    website                 #
#   E    #                            #
#######################################Usage:-from link_preview import link_preview
dict_elem = link_preview.generate_dict(url) # this is a dict()

# Access values
title = dict_elem['title']
description = dict_elem['description']
image = dict_elem['image']
website = dict_elem['website']InsatallationTo install from pip, use the following commandpip install link_previewto update, usepip install -U link_previewLicenseMIT
Package: link-previewer
This package creates a link preview of a URL. This largely relies on the Open Graph protocol proposed by Facebook.Installation$pipinstalllink-previewerUsage>>>frompreviewerimportget_preview
>>>url="https://youtube.com">>>preview_info=get_preview(url)>>>get_preview(url)finalurlis:https://youtube.com{'title':'YouTube','description':'Enjoy the videos and music that you love, upload original content and share it all with friends, family and the world on YouTube.','url':'www.youtube.com','img_url':'https://www.youtube.com/img/desktop/yt_1200.png'}Developing link-previewerTo install link-previewer, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]
Package: linkpy
Linkpy - Access your Linky data via PythonWhat is this?This Python 3 library allows you to retrieve your Linky power consumption data
without any hardware, just a connection to your Enedis account.This module was previously part of Linkindle and was extracted for better
modularity and easier usage.How to installpip3installlinkpyHelp, it's not working!First, check that the Enedis website itself is working.You might need to accept updated terms and conditions on the website. Linkpy won't work until you do.Check that you have the latest version of this package. As Enedis changes its website, stuff can and occasionally does break.If everything else fails, you canreport an issue. I'll try to get to it on my free time, but contributions are welcome!How to usefromlinkpyimportLinky,LinkyLoginException,LinkyServiceExceptiontry:linky=Linky()linky.login(USERNAME,PASSWORD)today=datetime.date.today()res_year=linky.get_data_per_year()# 6 months ago - todayres_month=linky.get_data_per_month(dtostr(today-relativedelta(months=6)),dtostr(today))# One month ago - yesterdayres_day=linky.get_data_per_day(dtostr(today-relativedelta(days=1,months=1)),dtostr(today-relativedelta(days=1)))# Yesterday - todayres_hour=linky.get_data_per_hour(dtostr(today-relativedelta(days=1)),dtostr(today))exceptLinkyLoginExceptionasexc:logging.error(exc)exceptLinkyServiceExceptionasexc:logging.error(exc)ExampleSee myLinkindle projectfor a real-life
example.
Package: linkquarto
Ce package est conçu pour générer une mise en forme des
documents linkpact sous différents formats. Des templates
de rédaction sont initiés pour permettre à l utilisateur de
produire des rendus au bon format sans se soucier de la mise en forme.Pour le moment, le package s installe dans le répertoire courant des
librairies python. Il faudra y aller récupérer les sources.
Package: linkreaper
linkReaper-cli - Release 0.1A Python cli tool for finding dead links in html files and
websites. Completed as part of DPS909 open-source course for
Seneca College.Functionalities and FeatureslinkReaper searches through html files stored locally and those pulled
from the web and determines whether any of the links in file are dead. It collects the link's response and then displays
the status code and the corresponding link with a short description
of the result. These are color coded for the user's convenience and for easy identification of dead links.Optional FeaturesLooks through a webpage for dead links given the urlColourized outputRed for bad urlsGreen for good urlsYellow for any urls with abnormal/unknown behaviourOption to check if http links work as https when looking through both local files and web pagesall http links found will have their scheme changed to https and will output the resultOptimized to search only through the headers rather than full bodiesDoesn't download the full page when looking for a responseOption to only output only good, only bad and all linksgood option will only output links with 200 response codebad option will output anything elseall option is default and will output allOption to have the outputs in json formatThis works with the good,bad and all output optionsUsageThis program has two main capabilities:Find broken links in local html filesFind broken links in a website given the urlEntering the program name with no arguments will show the help page.Local filesoptions-s , --sChecks if http links works as https-bad, --bOutputs only the links that don't have a successful response-good, --gOutputs only the links that have a successful response-all, --aThe default, outputs all the links-json, --jOutputs the results as a json array. This options works with the '-good', '-all', and '-bad' options.Command:Look through local filelinkreaper readfile [file path]Check if the http links work with the https schemelinkreaper readfile -s [file path]Have all the good links outputted in json formatlinkreaper readfile --g --j [filepath]WebsiteCommand:Look through a webpagelinkreaper readwebsite [website url]Check if the http links work with the https schemelinkreaper readwebsite -s [website url]Have all the http links that don't work as https outputted as jsonlinkreaper readwebsite -s --b --j [website url]Coveragepip install coveragefor code coveragereleasesThis project has been released onpypi.
To install execute the following command in your terminal.pip install linkreaperDependenciesClick- Package for making cli toolsColorama- Required for colour on Windowsurllib3- Used to manage connections and make requestscertifi- Validating certificates
Package: linksaas-events-py
定义在linksaas里面的事件项目事件事件定义在project_events.py类名事件类型CreateProjectEvent创建项目UpdateProjectEvent设置项目OpenProjectEvent打开项目CloseProjectEvent关闭项目RemoveProjectEvent删除项目GenInviteEvent创建邀请码JoinProjectEvent加入项目LeaveProjectEvent离开项目CreateRoleEvent创建角色UpdateRoleEvent更新角色RemoveRoleEvent删除角色UpdateProjectMemberEvent更新成员RemoveProjectMemberEvent删除成员SetProjectMemberRoleEvent设置成员角色UploadWorkSnapShotEvent工作快照CreateChannelEvent创建频道UpdateChannelEvent更新频道OpenChannelEvent打开频道CloseChannelEvent关闭频道RemoveChannelEvent删除频道AddChannelMemberEvent增加频道成员RemoveChannelMemberEvent删除频道成员CreateAppraiseEvent创建评估AddProjectAppEvent增加项目应用RemoveProjectAppEvent删除项目应用文档事件事件定义在project_doc_events.py类名事件类型CreateSpaceEvent创建文档空间UpdateSpaceEvent修改文档空间RemoveSpaceEvent删除文档空间CreateDocEvent创建文档UpdateDocEvent更新文档 (同一个用户同一个文档修改，不记录一个小时内的操作)MoveDocToRecycleEvent移动到回收站RemoveDocEvent删除文档RecoverDocEvent恢复文档WatchDocEvent关注文档UnWatchDocEvent取消关注文档MoveDocEvent移动文档迭代事件事件定义在project_sprit_events.py类名事件类型CreateEvent创建迭代UpdateEvent更新迭代RemoveEvent删除迭代工单事件事件定义在project_issue_event.py类名事件类型CreateEvent创建issueUpdateEvent更新issueRemoveEvent删除issueAssignExecUserEvent指派执行者AssignCheckUserEvent指派检查者ChangeStateEvent修改状态LinkSpritEvent关联到迭代CancelLinkSpritEvent取消到迭代的关联SetStartTimeEvent设置开始时间CancelStartTimeEvent取消开始时间SetEndTimeEvent设置结束时间CancelEndTimeEvent取消结束时间SetEstimateMinutesEvent设置预估时间CancelEstimateMinutesEvent取消预估时间SetRemainMinutesEvent设置剩余时间CancelRemainMinutesEvent取消剩余时间CreateSubIssueEvent增加子工单UpdateSubIssueEvent更新子工单UpdateSubIssueStateEvent更新子工单状态RemoveSubIssueEvent删除子工单AddDependenceEvent增加依赖RemoveDependenceEvent删除依赖书库事件事件定义在project_book_shelf_events.py类名事件类型AddBookEvent增加书本RemoveBookEvent删除书本第三方接入事件事件定义在project_ext_event_events.py类名事件类型CreateEvent创建事件源UpdateEvent更新事件源GetSecretEvent获取事件源秘钥RemoveEvent删除事件源SetSourceUserPolicyEvent设置事件源用户策略gitlab事件事件定义在project_gitlab_events.py类名事件类型BuildEventCommentEventIssueEventJobEventMergeRequestEventPipelineEventPushEventTagEventWikiEventgitee事件事件定义在project_gitee_events.py类名事件类型PushEventIssueEventPullRequestEventNoteEvent机器人事件事件定义在project_robot_events.py类名事件类型CreateEvent创建机器人UpdateEvent更新机器人RemoveEvent删除机器人AddAccessUserEvent新增访问用户RemoveAccessUserEvent删除访问用户RenewTokenEvent更新访问令牌earthly事件事件定义在project_earthly_events.py类名事件类型AddRepoEvent创建仓库RemoveRepoEvent删除仓库CreateActionEvent创建执行命令UpdateActionEvent更新执行命令RemoveActionEvent删除执行命令