Saravanan666/pypi-org huggingface dataset:
Package: gqylpy-datastruct
gqylpy-datastruct创建一张蓝图来规划好程序需要的数据结构，并在之后使用该蓝图去校验到来的数据是否如期。这是一个雏形。pip3 install gqylpy_datastructfromgqylpy_datastructimportDataStructdatastruct=DataStruct({'name':{type:str}})err=datastruct.verify({'name':'Alpha'})gqylpy_datastruct对外提供了一个类DataStruct，在获得DataStruct实例时传入蓝图，并在之后调用实例的verify方法时传入数据，若数据与蓝图不符，将返回（或抛出）错误信息。我们提供了一个完整的示例，运用了该框架的大部分功能，阅读此文档必看此示例。在获得DataStruct实例时传入蓝图，同时会校验蓝图，根据蓝图中定义key的顺序，从前往后，由浅入深进行校验，蓝图{a: {b: {c: ...}}, d: {e: ...}}的校验顺序是aa.ba.b.cdd.e。校验后将蓝图存入属性blueprint，否则将在检查到第一个错误后立即抛出异常。在之后调用实例的verify方法时传入数据，此时开始校验数据。校验过程是递归的，以蓝图作为递归主体，根据蓝图中定义key的顺序，从前往后，由浅入深从数据中取值。若key在数据中不存在，并且没有定义任何取值方法和默认值或定义的取值方法未取到值，并且未声明key是可选的，将立即返回DataNotFoundError。取值后开始调用校验方法，按如下列出校验方法的前后顺序执行，全部校验通过最后执行回调callback，否则将在检查到第一个错误后立即终止校验并返回错误信息。取值方法option从命令行选项中取值并更新到数据中。指定一个选项用"--password"，指定多个选项用("-p", "--password", ...)。若未取到值则不做处理。优先级高于取值方法env和默认值default。option_bool检索命令行中有无指定的选项而更新数据中的值为True或False，它是option的扩展，优先级同option。option和option_bool不可同时定义，否则将抛出BlueprintStructureError。env从环境变量中取值并更新到数据中。若未取到值则不做处理，优先级低于其它取值方法，高于默认值。默认值default若key在数据中不存在，将创建key并用之为value。可选参数params使用元祖或列表指定一个或多个可选参数，可选的参数如下。optional: 声明key是可选的，若key在数据中不存在，则跳过校验。delete_none: 若值是None，则跳过校验，并将其键值对从数据中删除。delete_empty: 若值是空的，则跳过校验，并将其键值对从数据中删除。这里的空包括：None，...，""，以及任何长度等于0的容器。ignore_none: 若值是None，则跳过校验。优先级低于delete_none和delete_empty。ignore_empty: 若值是空的，则跳过校验。优先级低于delete_none和delete_empty。校验方法delete_if_in使用元祖或列表指定一个或多个不希望得到的值，若传入的值位于其中，则跳过校验，并将其键值对从数据中删除。ignore_if_in使用元祖或列表指定一个或多个不需要校验的值，若传入的值位于其中，则跳过校验。优先级低于delete_if_in。type指定一个类，若值不是这个类的实例并且也不是这个类的子类的实例，将返回DataTypeError。其内部调用isinstance方法，可使用元组或列表指定多个类。可指定的类有[int, float, bytes, str, tuple, list, set, frozenset, dict, bool, NoneType,  datetime.date, datetime.time, datetime.datetime, decimal.Decimal]。校验方法type的定义是针对内置的基础的大众所熟知的类型进行校验，若要校验其它类型，可编写校验函数并传给校验方法verify。coerce转换值的类型，可转换为[int, float, bytes, str, tuple, list, set, dict, bool]。若类型无法被转换，将返回DataCoerceError。若要转换为其它类型，可编写回调函数并传给回调callback。enum枚举，列出一个或多个值，只能在给定的范围内选择一个值，否则将返回DataEnumError。enum的灵感来源于 MySQL 中的枚举类型。set集合，列出至少两个值，只能在给定的范围内选择一个或多个值，否则将返回DataSetError。选择值时必须使用列表或元组，若只选择一个值，可直接传入，它会在校验通过后被套上列表。set的灵感来源于 MySQL 中的集合类型。verify使用正则或函数校验数据。可以是一个正则表达式字符串、re.Pattern的实例、可调用对象、可调用对象的路径字符串。正则校验调用search方法，校验函数需要一个参数用于接收数据。若校验失败将返回DataVerifyError。可使用列表或元组定义多个校验，使用列表定义的多个校验将以or的关系执行，元组则and。校验方法verify将在下个版本拆分为regex和validator，分别对应正则校验和函数校验。回调callback指定一个回调函数，将在校验通过后执行，回调函数需要一个参数用于接收数据，并在执行完毕后将其返回值更新到数据中。关键字branch蓝图关键字，当数据内层是一个字典时，用branch连接。items蓝图关键字，当数据内层是一个列表时，用items连接。我们提供了一个完整的示例，运用了该框架的大部分功能，学习此框架必看此示例。
Package: gqylpy-dict
gqylpy-dictgqylpy-dict基于内置dict，它是对内置dict的增强。内置dict能做的它都能做，内置dict不能做的它更能做。（专为神经患者设计）pip3 install gqylpy_dict>>>fromgqylpy_dictimportgdict>>>gdict==dictTrue>>>gdictisdictFalse>>>x={'a':[{'b':'B'}]}>>>x=gdict(x)>>>x.a[0].b'B'>>>x.deepget('a[0].b')'B'我们再详细地介绍一下gdict类的功能和用法。首先，gdict类是一个自定义字典类，继承自 Python 内置的dict类。gdict类有一个特殊的功能是支持点操作符（.）访问和修改字典中的键值对。这意味着，我们可以像访问对象的属性一样访问字典中的值。比如，有一个字典{'name': 'Tom', 'age': 25}，我们可以这样定义一个gdict对象：my_dict=gdict({'name':'Tom','age':25})通过点操作符，我们可以访问这个字典的值：my_dict.name# 'Tom'my_dict.age# 25我们甚至可以修改这个字典的值：my_dict.name='Jerry'此时，这个字典中'name'这个键对应的值已经被修改为'Jerry'。另外，gdict还支持多层嵌套的数据结构，也就是说，gdict对象中存储的键和值也可以是字典类型。比如：my_dict=gdict({'personal_info':{'name':'Tom','age':25},'work_info':{'company':'ABC Inc.','position':'Engineer'}})我们可以访问和修改嵌套字典中的值：my_dict.personal_info.name# 'Tom'my_dict.work_info.position='Manager'除了点操作符，我们也可以使用普通的字典操作方式访问和修改gdict对象中的值：my_dict['personal_info']['name']# 'Tom'my_dict['work_info']['position']='Manager'最后，gdict类在实例化时支持多种不同的输入方式：my_dict=gdict({'name':'Tom','age':25})my_dict=gdict(name='Tom',age=25)my_dict=gdict([('name','Tom'),('age',25)])以上就是gdict类的主要功能和用法。总体来说，gdict类的设计和实现提供了一种方便的、可扩展的数据结构，可以更加灵活地操作 Python 字典对象。
Package: gqylpy-exception
gqylpy-exception在执行raise语句的同时创建异常类，无需提前定义异常类，方便快捷。例如，你想抛出一个名为NotUnderstandError的异常，
导入import gqylpy_exception as ge后直接执行raise ge.NotUnderstandError即可。pip3 install gqylpy_exception使用gqylpy_exception创建异常类importgqylpy_exceptionasgeraisege.AnError(...)gqylpy_exception可以创建任意名称的异常类。AnError不是gqylpy_exception中内置的，它是在你的代码执行到ge.时创建的，魔化方法__getattr__的特性。还有一种用法，导入即创建：fromgqylpy_exceptionimportAnErrorraiseAnError(...)最后，gqylpy_exception不会重复创建异常类，创建过的异常类将存入ge.__history__字典，当你再次创建时从这个字典中取值。
Package: gqylpy-log
gqylpy-log二次封装logging，更方便快捷的创建日志记录器。使用gqylpy_log模块可以快速创建logging.Logger实例并完成一系列的日志配置，使你的代码更简洁。pip3 install gqylpy_log使用内置的日志记录器gqylpy_log中内置了一个基于logging.StreamHandler的日志记录器，你可以直接调用它：importgqylpy_logasglogglog.debug(...)glog.info(...)glog.warning(...)glog.error(...)glog.critical(...)它的默认配置如下：level="NOTSET"output="stream"logfile="/var/log/{default is your startup filename}.log"datefmt="%F%T"logfmt="[%(asctime)s] [%(module)s.%(funcName)s.line%(lineno)d] [%(levelname)s]%(message)s"当然可以修改它：glog.level="INFO"不过需要注意的是，你只有在第一次调用前修改内置的日志记录器配置才会生效，因为在你第一次调用时默认的日志记录器就已经被创建！创建一个新的日志记录器importgqylpy_logasglogglog.__init__("alpha",level="INFO",output="stream,file",logfmt="[%(asctime)s] [%(levelname)s]%(message)s",datefmt="%F%T",logfile="/var/log/alpha.log",gname="alpha")glog.info(...)或者你希望直接得到日志记录器实例，而不是始终通过gqylpy_log模块调用它：log:logging.Logger=glog.__init__("beta",...)log.info(...)
Package: gqylpy-ssh
gqylpy-ssh在远程服务器执行命令并得到执行结果，它是对 paramiko 库的二次封装。在Command对象中，提供了多种方法用于判断命令执行结果是否如期。pip3 install gqylpy_ssh>>>fromgqylpy_sshimportGqylpySSH,Command>>>ssh=GqylpySSH('192.168.1.7',22,username='gqylpy',password=...)>>>c:Command=ssh.cmd('echo Hi, GQYLPY')>>>c.status_output(True,'Hi, GQYLPY')
Package: gr
GRis a universal framework for cross-platform visualization
applications. It offers developers a compact, portable and consistent
graphics library for their programs. Applications range from publication
quality 2D graphs to the representation of complex 3D scenes.GRis essentially based on an implementation of a Graphical Kernel
System (GKS) and OpenGL. As a self-contained system it can quickly and
easily be integrated into existing applications (i.e. using thectypesmechanism in Python orccallin Julia).TheGRframework can be used in imperative programming systems or
integrated into modern object-oriented systems, in particular those
based on GUI toolkits.GRis characterized by its high
interoperability and can be used with modern web technologies. TheGRframework is especially suitable for real-time or signal processing
environments.GRwas developed by the Scientific IT-Systems group at the Peter
Gruenberg Institute at Forschunsgzentrum Juelich. The main development has
been done by Josef Heinen who currently maintains the software, but
there are other developers who currently make valuable contributions.
Special thanks to Florian Rhiem (GR3] and Christian Felder (qtgr,
setup.py).Starting with release 0.6GRcan be used as a backend forMatplotliband significantly improve the
performance of existing Matplotlib or PyPlot applications written in
Python or Julia, respectively. Inthistutorial
section you can find some examples.Beginning with version 0.10.0GRsupports inline graphics which shows
up in IPython’s Qt Console or interactive computing environments forPythonandJulia, such asIPythonandJupyter. An interesting example can be foundhere.For further information please refer to theGR home page.
Package: gr1py
gr1pyis an enumerative (or concrete) reactive synthesis tool for the GR(1)
fragment of LTL. It is pure Python.InstallationReleases are available from thePython Package Indexathttps://pypi.org/project/gr1py/To get it from there and check the version, trypip install gr1py
gr1py -Vpipshould get dependencies for you if you do not have
them. They arePLY (https://www.dabeaz.com/ply/)If it is available, NetworkX (https://networkx.github.io/) will be used.
However, it is not required.  A simple built-in class for directed graphs will
be used if NetworkX is not found.If you want to hack on gr1py, clone the repository fromhttps://github.com/slivingston/gr1py.gitCurrentCI server report:ExamplesBesides the Python package, a script namedgr1pyis installed that provides
access to several routines from the command-line. Consider the file named
examples/arbiter3.spc that is included in the source release. To check that the
specification defined by it can be realized, trygr1py -r examples/arbiter3.spcTo synthesize a winning strategy and dump it in the Graphviz DOT format, trygr1py -t dot examples/arbiter3.spc > arbiter3-fsm.dot
dot -Tsvg -O arbiter3-fsm.dotwhere the second command uses the programdot(part of Graphviz) to create
an SVG file, likely named arbiter3-fsm.dot.svg; e.g., the file can be displayed
using a Web browser or Inkscape.A summary of command-line usage can be obtained bygrpy-h.Input formatsThe default input format is that of gr1c (http://scottman.net/2012/gr1c).Output formatsThese are selected from the command-line using the-tswitch.  Each
corresponds to a function ingr1py.output.json:gr1c JSONdot:Graphviz dotFeedback and contributingBug reports, feature requests, and comments can be submitted via theproject
issue trackeror via email to
the authors.Code contributions are welcome. To avoid redundant effort, please check for an
existing issue or other indication of prior or intended work before starting.
When ready for review, send apull request.LicenseThis is free software released under the terms ofthe BSD 3-Clause License.  There is no warranty; not
even for merchantability or fitness for a particular purpose.  Consult LICENSE
for copying conditions.
Package: graafilohi
GraafilohiGraafilohi is a library intended to create executable graphs and to provide some basic functions such as determining
the execution order of the nodes. The name "Graafilohi" is a play on the Finnish words "graafi" (meaning "graph") and
"graavilohi" (I guess this is something like "gravlax" or sorts; Dammit man, I'm a programmer, not a chef).The library uses at leastnetworkxandmatplotlibas a basis, first of which provides most of the features itself
allowing all the graph operations it contains to be used on the graph. This library implements the execution etc. higher
level features.The intended use is to create tools using this where the problem is related to dependencies and possible to visualize
as a graph.
Package: grab
What is Grab?Grab is a python web scraping framework. Grab provides a number of helpful methods
to perform network requests, scrape web sites and process the scraped content:Automatic cookies (session) supportHTTP and SOCKS proxy with/without authorizationKeep-Alive supportIDN supportTools to work with web formsEasy multipart file uploadingFlexible customization of HTTP requestsAutomatic charset detectionPowerful API to extract data from DOM tree of HTML documents with XPATH queriesAsynchronous API to make thousands of simultaneous queries. This part of
library called Spider. See list of spider fetures below.Python 3 readySpider is a framework for writing web-site scrapers. Features:Rules and conventions to organize the request/parse logic in separate
blocks of codesMultiple parallel network requestsAutomatic processing of network errors (failed tasks go back to task queue)You can create network requests and parse responses with Grab API (see above)HTTP proxy supportCaching network results in permanent storageDifferent backends for task queue (in-memory, redis, mongodb)Tools to debug and collect statisticsGrab ExampleimportloggingfromgrabimportGrablogging.basicConfig(level=logging.DEBUG)g=Grab()g.go('https://github.com/login')g.doc.set_input('login','****')g.doc.set_input('password','****')g.doc.submit()g.doc.save('/tmp/x.html')g.doc('//ul[@id="user-links"]//button[contains(@class, "signout")]').assert_exists()home_url=g.doc('//a[contains(@class, "header-nav-link name")]/@href').text()repo_url=home_url+'?tab=repositories'g.go(repo_url)foreleming.doc.select('//h3[@class="repo-list-name"]/a'):print('%s:%s'%(elem.text(),g.make_url_absolute(elem.attr('href'))))Grab::Spider Exampleimportloggingfromgrab.spiderimportSpider,Tasklogging.basicConfig(level=logging.DEBUG)classExampleSpider(Spider):deftask_generator(self):forlangin'python','ruby','perl':url='https://www.google.com/search?q=%s'%langyieldTask('search',url=url,lang=lang)deftask_search(self,grab,task):print('%s:%s'%(task.lang,grab.doc('//div[@class="s"]//cite').text()))bot=ExampleSpider(thread_number=2)bot.run()Installation$pipinstall-UgrabSee details about installing Grab on different platforms herehttp://docs.grablib.org/en/latest/usage/installation.htmlDocumentation and HelpDocumentation:http://docs.grablib.org/en/latest/Mailing list (mostly russian):http://groups.google.com/group/python-grab/ContributionTo report a bug please use GitHub issue tracker:https://github.com/lorien/grab/issuesIf you want to develop new feature in Grab please use issue tracker to
describe what you want to do or contact me atlorien@lorien.name
Package: grabber
Periodically grab a picture of your Mac’s screen and optionally make a
movie of the grabs.By default, runs the Mac’sscreencaptureutility every 5 minutes and
saves the grab into/var/root/grabs/YYYY-MM-DD/grabNNNN.png.Making MoviesThe script usesffmpegto make movies. Specify the path toffmpegusing the –ffmpeg option to the script.To make a movie of the previous day’s grabs run:$grabber[your-normal-grabber-options]--movieTo make a movie of a specific day’s grabs run:$grabber[your-normal-grabber-options]--movie-dayYYYY-MM-DDWhen making a movie pass in the same options you used to create the
grabs. Just add –movie on the end of the options. This is so the script
knows where the grabs were stored. Note: you may need to specify the
path theffmpeg.The movie is placed in to the same directory as the grabs, namedgrab.mp4.If you wish to make a movie every day, you can use the supplied launchd
filelaunchd/com.yajogo.grabber.movie.plist. Installing this
(symlink to/Library/LaunchDaemonsandlaunchctl load-w) will
launch grabber just after midnight every day to make the movie for the
previous day.UtilitiesSeveral utilities are provided with the script…enc.shis a shell script that can be run in a directory
containing grabbed PNG files to produce a movie of the grabs.seq.pywill uniformly re-name files in ascending order, suitable
for making movies. This really only useful for development.Usageusage:grabber[options]grabber:periodicallygrabsacopyofthescreenoptionalarguments:-h,--helpshowthishelpmessageandexit--versionshowprogram'sversionnumberandexit--dry-runDonothingbutprintwhatwouldbedone.Default:False.--log-fileLOG_FILEFiletowritelogsto.Default:/var/root/logs/grabber.log.-bBASE,--baseBASEBasefilename.Default:grab.-dOUTDIR,--directoryOUTDIRParentdirectorytostoregrabsto.Default:/var/root/grabs.--fontpathFONTPATHPathtofonttousefortimestamps.Default:/Users/simonb/src/grabber/fonts/SourceCodePro-Regular.otf.-rREPEAT,--repeatREPEATRepeatinminutes.Default:5.-fFRMTM,--fromFRMTMFromtime.24-hourformatwithaleadingzeroifneeded.Default:08:30.-tTOTM,--toTOTMTotime.24-hourformatwithaleadingzeroifneeded.Default:20:00.--onceRunonce.Default:False.--movieMakethemovieforthepreviousday.Default:False.--movie-dayYYYY-MM-DDMakethemovieforaspecifiedday.SpecifiedasYYYY-MM-DD.--ffmpegFFMPEGPathtotheffmpegcommand.FontsThe script, by default, uses the suppliedSource Code
Profont from Adobe
to write a time stamp on the screen grab. You can change the font using
the –fontpath option. I suggest you use a mono-spaced font so the time
stamp does not grow and shrink over time.InstallThe script needs to be run as root. So, before you install become root.The script requires Pillow to time stamp the screen grabs, so you may as
well create a virtualenv first and then pip install.Suggested install steps are:Create a virtualenvpip install grabbberin the new virtualenvEdit the launchd filelaunchd/com.yajogo.grabber.plistto suitRunbin/install.py. This will symlinkcom.yajogo.grabber.plistin to/Library/LaunchDaemonsand
load the file in to launchd.UninstallAs root.Either:run thebin/uninstall.pyscript.Or:manually unload fromlaunchdand delete the symlink in/Library/LaunchDaemons.
Package: grabber-ift
Grabber: A Tool to Improve Convergence in Interactive Image SegmentationA tool for contour-based segmentation correction (2D only).This repository provides a demo code of the paper:Grabber: A Tool to Improve Convergence in Interactive Image SegmentationJordão Bragantini, Bruno Moura,Alexandre X. Falcão,Fábio A. M. Cappabiancohttps://user-images.githubusercontent.com/21022743/145699960-57da06a5-668f-4e81-82b5-7f3d3ddf8ee3.mp4Thisnapariplugin was generated withCookiecutterusing with@napari'scookiecutter-napari-plugintemplate.InstallationYou can installgrabber-iftviapip:pip install grabber-iftKnown LimitationsThis implementation doesn't support the items below, feel free to open a PR to add them.It only support 2D image, supporting 3D images isn't trivial, but it could be applied per slice with minor changes.CitationIf this work was useful for your research, please cite our paper:@article{bragantini2020grabber,
  title={Grabber: A Tool to Improve Convergence in Interactive Image Segmentation,
  author={Bragantini, Jord{\~a}o and Bruno Moura, Falc{\~a}o, Alexandre Xavier and Cappabianco, F{\'a}bio AM,
  journal={Pattern Recognition Letters},
  year={2020}
}ContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theMITlicense,
"grabber" is free and open source softwareIssuesIf you encounter any problems, please [file an issue] along with a detailed description.
Package: grabbygram
GrabbyGramA Python package for seamless media downloading from Telegram.Table of ContentsProject StructureInstallationTutorial VideoFeaturesLicenseContributingContactProject StructureThe project structure is organized as follows:grabbyram/
├──grabbyram/
│├──__init__.py
│└──grabbyram.py
├──setup.py
├──README.md
├──.env# Store your API credentials here├──.gitignore
├──LICENSE
├──CODEOWNERS
└──requirements.txtInstallationInstall using pip:pipinstallgrabbygramTutorial VideoLearn how to use GrabbyGram with our step-by-step tutorial video.FeaturesUser Authentication:Securely log in with your Telegram API ID and API Hash.Explore Chats:Retrieve detailed information about your Telegram chats.Group Media Download:Effortlessly download media from specific groups.Channel Media Download:Download media content from specific channels.LicenseGrabbyGram is licensed under the MIT License - see theLICENSEfile for details.ContributingThank you for considering contributing to GrabbyGram! Whether it's reporting a bug, submitting a feature request, or actively participating in the development, your contribution is valued.Bug Reports and Feature RequestsIf you come across a bug or have a feature request, pleaseopen an issueon GitHub. Provide detailed information, steps to reproduce, and, if applicable, code snippets.ContactIf you have any questions, suggestions, or feedback, feel free to reach out:
Package: grabclient
GrabClientPython library for communicating with GrabExpress API
Still work in progressFeaturesGet delivery quoteRoadmapLinks[GrabExpress Swagger Doc](https://app.swaggerhub.com/apis-docs/Grab-Express/Grab-Express-API/2.1.0)CreditsDisclaimerThis software is not provided by or in any way associated with or endorsed by GRAB. It is a 3rd party library to ease communication with the Grab API from Python Code.It is entirely USE AT YOUR OWN RISK.Read the license and documentation for full details.History0.1.0 (2018-11-09)First release
Package: grab-convert-from-libgen
grab-convert-from-libgenAn easy API for searching and downloading books from Libgen.Before InstallingBe sure that you have installed Calibre and have added the necessaryebook-convertcommand to your path!calibreis "a powerful and easy to use e-book manager". It's also free, open-source, and super easy to use.You can install an calibre executable, through MacOS Homebrew, compile from source... pick your poison. They only thing you need to be sure of
is the commandebook-convertis in your PATH.InstallInstall bypip install grab-convert-from-libgenQuickstartThe example below shows to grab the first book returned from a search and save it to your current working directory as a pdf.fromgrab_from_libgenimportLibgenSearchres=LibgenSearch('sci-tech',q='test')res.first(convert_to='pdf')This is an example the gets and downloads a book that matches a given title.fromgrab_from_libgenimportLibgenSearchres=LibgenSearch('fiction',q='test')res.get(title='a title',save_to='.')You must specify atopicwhen creating a search instance. Choices arefictionorsci-tech.DocumentationOnly search parameters marked as required are needed when searching.Libgen Non-fiction/Sci-techSearch Parametersq: The search query (required)sort: Sort results. Choices aredef(default),id,title,author,publisher,yearsortmode: Ascending or decending. Choices areASCorDESCcolumn: The column to search against. Choices aredef(default),title,author,publisher,year,series,ISBN,Language, ormd5.phrase: Search with mask (word*). Choices are0or1.res: Results per page. Choices are25,50, or100.page: Page numberLibgen FictionSearch Parametersq: The search query (required)criteria: The column to search against. Choices aretitle,authors, orseries.language: Language codeformat: File formatwildcard: Wildcarded words (word*). Set to1.page: Page numberLibgenSearchget_resultsget_results(self) -> OrderedDictCaches and returns results based on the search parameters theLibgenSearchobjects was initialized with. Results are ordered
in the same order as they would be displayed on libgen itself with the book's id serving as the key.firstfirst(save_to: str = None, convert_to: str = None) -> DictReturns a the first book (as a dictionary) from the cached or obtained results.getget(save_to: str = None, convert_to: str = None, **filters) -> DictReturns the first book (as a dictionary) from the cached or obtained results that match the given filter parameters.The filter parameters must be pulled from the keys that the book dictionary object returns.
Package: grab-favicon
grab_faviconPython functions to download favicons using internal google apiInstallationInstall function by running the following command.pipinstallgrab_faviconUsage/Examplesfromgrab_faviconimportdownload_favicon,download_favicons# Single downloaddownload_favicon("google.com",size=128)# Multiple downloadswebsites=["google.com","stackoverflow.com","github.com"]download_favicons(websites,path="my/path/favicons")NOTE: The file is saved to a directory under the namewebsite.com.pngAcknowledgementsaanupam23
Package: grabflickr
Download photoset of flickr, support single process, multithread and gevent(Asynchronous I/O)Installationsudo python setup.py installor:sudo pip install grabflickrgeventNotice: Without libevent, grabflickr will fallback to normal multithread downloadIn Macbrew install libeventIn Linuxapt-get install libevent-dev
apt-get install python-all-devUsage# Enter your api key
gf -u

# Download photoset
gf -g <photoset id>Method Benchmark(sec)/usr/bin/time -p ./grabflickr.py -g xxxxxxxxx -O num -s 6single multiprocess31.37multiprocess9.918.247.49gevent7.877.947.66