Saravanan666/pypi-org huggingface dataset:
Package: gmusicapi-scripts
A collection of scripts for [gmusicapi](https://github.com/simon-weber/gmusicapi) using [gmusicapi-wrapper](https://github.com/thebigmunch/gmusicapi-wrapper).## DocumentationDocumentation is available online at <https://thebigmunch.github.io/gmusicapi-scripts>. There you can find [install instructions](https://thebigmunch.github.io/gmusicapi-scripts/install/), [usage instructions](https://thebigmunch.github.io/gmusicapi-scripts/usage/), and [contributing guidelines](https://thebigmunch.github.io/gmusicapi-scripts/contributing/).## ContactYou can contact the author in#gmusicapionirc.freenode.netor by [e-mail](mailto:mail@thebigmunch.me)## DonateDonations, as any compliment, are appreciated but not expected. I include these because people have shown interest.[![Bitcoin](http://img.shields.io/badge/bitcoin-donate-green.svg?style=flat-square)](https://coinbase.com/thebigmunch) [![Flattr](http://img.shields.io/badge/flattr-donate-green.svg?style=flat-square)](https://flattr.com/thing/2419308) [![PayPal](http://img.shields.io/badge/paypal-donate-green.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=DHDVLSYW8V8N4&lc=US&item_name=thebigmunch&currency_code=USD)
[![Coinbase](http://img.shields.io/badge/coinbase-referral-orange.svg?style=flat-square)](https://coinbase.com/?r=52502f01e0fdd4d3ef000253&utm_campaign=user-referral&src=referral-link) [![Digital Ocean](http://img.shields.io/badge/digitalocean-referral-orange.svg?style=flat-square)](https://www.digitalocean.com/?refcode=3823208a0597) [![Namecheap](http://img.shields.io/badge/namecheap-referral-orange.svg?style=flat-square)](http://www.namecheap.com/?aff=67208)Copyright (c) 2016 [thebigmunch](mailto:mail@thebigmunch.me). Licensed under the MIT License. See [LICENSE](LICENSE).
Package: gmusicapi-wrapper
A wrapper interface around [gmusicapi](https://github.com/simon-weber/Unofficial-Google-Music-API).## RequirementsPython 3.4+[gmusicapi](https://github.com/simon-weber/Unofficial-Google-Music-API)[mutagen](https://bitbucket.org/lazka/mutagen)ffmpeg or avconv for uploading non-mp3 files (See [here](http://unofficial-google-music-api.readthedocs.org/en/latest/usage.html#usage))## Installation### Stable Releasepip installgmusicapi-wrapperorpip installgit+https://github.com/thebigmunch/gmusicapi-wrapper### Unstable/Developmentpip installgit+https://github.com/thebigmunch/gmusicapi-wrapper.git@devel## UsageDocs coming soon. See the docstrings for usage information for now.## ContributingSee the [CONTRIBUTING.md](https://github.com/thebigmunch/gmusicapi-wrapper/blob/master/CONTRIBUTING.md) file## ContactYou can contact the author in#gmusicapionirc.freenode.netor by [e-mail](mailto:mail@thebigmunch.me)## DonateDonations, as any compliment, are appreciated but not expected.[![Bitcoin](http://img.shields.io/badge/bitcoin-donate-green.svg?style=flat-square)](https://coinbase.com/thebigmunch) [![Flattr](http://img.shields.io/badge/flattr-donate-green.svg?style=flat-square)](https://flattr.com/thing/2419308) [![PayPal](http://img.shields.io/badge/paypal-donate-green.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=DHDVLSYW8V8N4&lc=US&item_name=thebigmunch&currency_code=USD)
[![Coinbase](http://img.shields.io/badge/coinbase-referral-orange.svg?style=flat-square)](https://coinbase.com/?r=52502f01e0fdd4d3ef000253&utm_campaign=user-referral&src=referral-link) [![Digital Ocean](http://img.shields.io/badge/digitalocean-referral-orange.svg?style=flat-square)](https://www.digitalocean.com/?refcode=3823208a0597) [![Namecheap](http://img.shields.io/badge/namecheap-referral-orange.svg?style=flat-square)](http://www.namecheap.com/?aff=67208)Copyright (c) 2016 [thebigmunch](mailto:mail@thebigmunch.me). Licensed under the MIT License. See [LICENSE](LICENSE).
Package: gmusic-rating-sync
gmusic-sync-rating  [![Build Status](https://travis-ci.org/Bilalh/gmusic-sync-rating.svg?branch=master)](https://travis-ci.org/Bilalh/gmusic-sync-rating/master.svg?style=flat) ![PyPI Version](http://img.shields.io/pypi/v/gmusic-rating-sync.svg?style=flat)==================`gmusic-sync-rating` is a command line tool to sync iTunes rating to google music. It supports the 5 star rating scale.##Installation`gmusic-sync-rating` can be installed from PyPI using pip:$ pip install gmusic-sync-rating##Usageusage: gmusic-sync-ratings [-h] [--password PASSWORD] [--itunes-xml FILE][--only-rated]usernamepositional arguments:username             Google music Usernameoptional arguments:-h, --help           show this help message and exit--password PASSWORD  Google music Password--itunes-xml FILE    iTunes xml file--only-rated         Only sync non empty ratings### `--password`If `--password` is not specified then `gmusic-sync-rating` will prompt you to enter it$ gmusic-sync-rating 'myemail@example.com'Enter your google music passwordPassword:###`--only-rated`Only upload non empty rating.###`--itunes-xml FILE`If you keep your iTunes library in an non standard location (i.e not ~/Music/iTunes/), you have specify the full path to ` `iTunes Music Library.xml` in your iTunes folder.License-------`gmusic-sync-rating` is licensed under the `Apache 2.0 License`
Package: gmusicsync
Google Music playlist syncing to offline destinationInstallationPython3.5 is required.pipinstallgmusicsyncUsageusage:gmusicsync.py[-h][--emailEMAIL][--passwordPASSWORD]--playlistPLAYLISTpathGoogleMusicplaylistsynctoolpositionalarguments:pathPathtosyncplaylisttooptionalarguments:-h,--helpshowthishelpmessageandexit--emailEMAIL--passwordPASSWORD--playlistPLAYLISTPlaylistnameYou can omit–emailand–passwordarguments, if you setGMUSICSYNC_EMAILandGMUSICSYNC_PASSWORDenvironment variables.The program will scanpathdirectory, and create it, if it does not exist (including all parent directories).
After audio download, program will also setartist,titleandalbumID3 tags on it.
Package: gmute
gmute adds support for Gmail’s “mute” feature to mutt, and any other mail
client which can output the raw headers to a file. Muting prevents new entries
in a thread from appearing in the inbox, which can be very useful for managing
mailing list activity.UsageFirst, put your IMAP credentials in~/.config/gmute, like so:[auth]
user = jcd@unatco.int
pass = bionicmanIf you want to use this from the mutt index, you can add something like the
following binding to your configuration with gmute in mutt’s $PATH:macro index M '<enter-command>set pipe_sep="\n_PIPE_SEP_\n"<enter><pipe-message>gmute<enter><sync-mailbox>'Then, with a message from a thread you want to mute highlighted in the index,
press M to mute that thread, just as would work in the Gmail UI. gmute also
works with tags, either usingtag-prefixorset auto_tag.You might also want tounset wait_keyin your mutt config if you don’t want
the “press any key to continue” prompt.InstallationTo install the latest stable version from PyPi:pip install -U gmuteTo install the latest development version directly from GitHub:pip install -U git+https://github.com/cdown/gmute.git
Package: gmxapi
gmxapi Python interface for GROMACS.gmxapi provides Python access to GROMACS molecular simulation tools.
Operations can be connected flexibly to allow high performance simulation and
analysis with complex control and data flows. Users can define new operations
in C++ or Python with the same tool kit used to implement this package.This Python package requires a compatible GROMACS installation with the API
libraries and headers.Seehttp://gmxapi.org/for details on installation and usage.
Package: gmx-clusterByFeatures
gmx_clusterByFeaturesIt can be used to cluster the conformations of a molecule in a molecular dynamics
trajectory using collection of features. The features could be any quantity as a
function of time such as Projections of eigenvector from PCA or dihedral-PCA,
distances, angles, channel radius etc.See details at:gmx_clusterByFeatures homepageNoteIt is developed forGROMACS MD trajectory.However, it can be used with
any other trajectory format after converting it to GROMACS format trajectory.Installation on Linux and MacOSsudopip3installgmx-clusterByFeaturesNo dependency on GROMACS. Install and use it.For more details, visitdownload and installationsection.UsageList of sub-commands available in gmx_clusterByFeaturesCommandFunctionclusterMain module to perform clusteringfeaturesplotFeature vs Feature plot to check quality of clusteringdistmatDistance-matrix related calculationsmatplotTo visulaize/plot matrix obtained fromdistmatholeTo calculate cavity/channel radius using HOLE programholeplotTo calculate average and plot hole output radius fileholefeaturesTo write radius as a features for clusteringholeclustersplotTo plot or write radius for clusters separatelyFor more details, visitusagesection.
Package: gmx-MMPBSA
Welcome to gmx_MMPBSA!gmx_MMPBSA is a new tool based on AMBER's MMPBSA.py aiming to perform end-state free energy calculations with GROMACS
files. It works with all GROMACS versions along with AmberTools >= 20.Please see the documentationhereCite usValdés-Tresanco, M.S., Valdés-Tresanco, M.E., Valiente, P.A. and Moreno E.gmx_MMPBSA: A New Tool to Perform
End-State Free Energy Calculations with GROMACS.Journal of Chemical Theory and Computation, 2021 17 (10), 6281-6291https://pubs.acs.org/doi/10.1021/acs.jctc.1c00645Please also consider citing MMPBSA.py's paper:Bill R. Miller, T. Dwight McGee, Jason M. Swails, Nadine Homeyer, Holger Gohlke, and Adrian E. Roitberg.MMPBSA.py:
An Efficient Program for End-State Free Energy Calculations.Journal of Chemical Theory and Computation, 2012 8
(9), 3314-3321.https://pubs.acs.org/doi/10.1021/ct300418hPlease, visitCite gmx_MMPBSApage for more information on how to cite gmx_MMPBSA and the programs/methods implemented in it.Authors:Mario Sergio Valdés Tresanco, PhD Student.University of Medellin, ColombiaMario Ernesto Valdés Tresanco, PhD Student.University of Calgary, Canada.Pedro Alberto Valiente, PhD.University of Toronto, CanadaErnesto Moreno Frías, PhD.University of Medellin, ColombiaAcknowledgements:First of all, to Amber and GROMACS developers. Without their incredible and hard work, gmx_MMPBSA would not exist.Jason Swails (Amber developer andParmEdprincipal developer) for his continuous support on ParmEd issues.Dr. Hymavathi Veeravarapu for helping with theintroductory videofor gmx_MMPBSA.To the Open Source license of theJetBrainsprograms.To theSourceryteam for supporting us with thePro version.To all researchers that help improving gmx_MMPBSA with comments, feedback, and bug reports.
Package: gnar
gnarShred the gnar in Python by using (half) pipes!Various shell builtins are implemented, allowing for piping commands together.gnar.Pipeablecan be implemented on an arbitrary class; this class only requires you to implementPipeable.runthat takes a single parameter.Examples"/some/dir" | ls | cat | sed(r"this", r"that")The above example replaces all occurrences ofthiswiththatfor all files in/some/dir. Sincels()returns a list,cat()andsed()operate on each file in the list.Notice that bothlsandcatcan be used with out parenthesis; this is due to their constructors not requiring any parameters. Functions likesed, and others that require constructor parameters, must be called with parenthesis.>>> "one:two:three:four" | cut([2,3], ":")
['two', 'three']
Package: gn-arcrest
This is a Pythonic API for consuming REST services from ArcGIS server. These are Python bindings for consuming services and administering an ArcGIS 10.1 Server via its RESTful APIs.Please note THESE ARE NOT COMPLETE – not all of the REST API has been wrapped or implemented. If you have a feature that you’d like to see working, then by all means feel free to contribute a patch.FeaturesPython bindings and utilities for consuming services and administering an ArcGIS 10.1 Server via its RESTful APIsThere are examples in the documentation folder to get startedInstructionsDownload and unzip the .zip file or clone the repo.[New to Github? Get started here.](https://github.com/)RequirementsExperience with Python and the REST API.ResourcesArcGIS REST Admin APIArcGIS Server REST Admin API Python SamplesIssuesFind a bug or want to request a new feature?  Please let us know by submitting an issue.ContributingAnyone and everyone is welcome to contribute.LicensingCopyright 2012-2013 EsriLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.A copy of the license is available in the repository’slicense.txtfile.
Package: gnboorse-rom
romThis is a basic Roman numeral manipulation library written in Python.It is capable of parsing Arabic numerals into Roman numerals, as well as generating Roman numerals from Arabic numerals.Installationpip3installgnboorse-romUsage>>>fromromimportrom>>>rom(12)XII>>>int(rom(12))12>>>int(rom('xlvi'))46>>>rom('XLVI',caps=False)xlvi
Package: gn-build-py
gn-build-pyA Python wrapper to provide a pip-installableGNbinary, designed for use withpre-commit. This tool simplifies the process of installing and using GN for source code formatting in projects that utilize pre-commit hooks.Using gn-build-py as a Pre-commit HookTo usegn-build-pyas a pre-commit hook for formatting GN files, add the following configuration to your.pre-commit-config.yaml:-repo:https://github.com/KindDragon/gn-build-py.gitrev:''hooks:-id:gn-build-pyThan runpre-commit autoupdateto update config to latest available gn build version.This configuration ensures that the GN binary is available and used by pre-commit to format GN files in your repository.Building and Publishing a New Package VersionThebuild_and_push.shscript is used to automate the process of building, testing, and deploying new versions ofgn-build-py. It handles generating the latestsetup.cfg, building the package, running tests, committing changes, and tagging the release.PrerequisitesEnsure you havepython,pip, andgitinstalled.Installtoxfor running tests:pip install tox.Steps to Build and PublishRun the Script: Executebuild_and_push.shfrom the root directory of the project../build_and_push.shAutomated Process: The script will:Generate the latestsetup.cfgwith updated GN version.Build the package.Run tests usingtox.Commit the changes to the repository.Tag the commit with the new version.Push the commit and tag to the repository.Upload to PyPI(Optional): If you wish to distribute the package via PyPI, usetwineto upload the distributions:twineuploaddist/*Ensure you have the necessary credentials for PyPI and have tested the package thoroughly.
Package: gncxml
gncxmlgncxml - extract entries from GnuCash data file to pandas.DataFrameInstallationpipinstallgncxmlUsage (Command Line)usage: gncxml [-h] [-l] [--csv] TYPE [FILE]

gncxml - print entries in GnuCash data file as data frame

positional arguments:
  TYPE        type of entries to print (account | commodity | price | split |
              transaction)
  FILE        GnuCash data file (XML format)

optional arguments:
  -h, --help  show this help message and exit
  -l, --long  list in long format
  --csv       print in csv formatUsage (Python Module)importsysimportgncxmltry:book=gncxml.Book("mybook.gnucash")exceptOSErroraserr:sys.exit(err)# Extract splits as pandas.DataFramedf=book.list_splits()print(df[df["trn_date"]>="2023-07-01"].to_csv())See also:examples/module_usage.ipynbLicenseCopyright 2017-2022 LiosKLicensed under the Apache License, Version 2.0.
Package: gndr.Python
gndr (Python Edition): Determine gender programmaticallyOrginal Packagegndris a breakthrough in automated gender detection.It uses advanced techniques and algorithms to determine the gender of a user byjust fucking asking them.The API couldn't be simpler. All you need to do isask the user what gender they identify asalong withwhat pronouns they use, and the library will give you back which gender they are with 100% accuracy. Incredible.ExamplefromgndrimportidentifyGendergender=identifyGender(gender="Non-binary",pronouns=["They","Them"])gender.get()# Returns gender and pronounsLicenseMIT, but I hope you aren't actually thinking of using thisExampleLicense
MIT, but I hope you aren't actually thinking of using this
Package: gne
GNE: 通用新闻网站正文抽取器GeneralNewsExtractor（GNE）是一个通用新闻网站正文抽取模块，输入一篇新闻网页的 HTML， 输出正文内容、标题、作者、发布时间、正文中的图片地址和正文所在的标签源代码。GNE在提取今日头条、网易新闻、游民星空、 观察者网、凤凰网、腾讯新闻、ReadHub、新浪新闻等数百个中文新闻网站上效果非常出色，几乎能够达到100%的准确率。使用方式也非常简单：fromgneimportGeneralNewsExtractorextractor=GeneralNewsExtractor()html='网站源代码'result=extractor.extract(html)print(result)安装pipinstallgne文档https://generalnewsextractor.readthedocs.io/帮助 GNE 变得更好https://github.com/kingname/GeneralNewsExtractor
Package: gneiss
gneissCanonically pronoucednicegneiss is a compositional data analysis and visualization toolbox designed for analyzing high dimensional proportions.  Seeherefor API documentation.Note that gneiss is not compatible with python 2, and is compatible with Python 3.4 or later.
gneiss is currently in alpha.  We are actively developing it, andbackward-incompatible interface changes may arise.InstallationTo install this package, it is recommended to use conda.  First make sure that the appropriate channels are configured.conda config --add channels https://conda.anaconda.org/bioconda
conda config --add channels https://conda.anaconda.org/biocore
conda config --add channels https://conda.anaconda.org/qiime2
conda config --add channels https://conda.anaconda.org/qiime2/label/r2017.6Then gneiss can be installed in a conda environment as followsconda create -n gneiss_env gneissTo install the most up to date version of gneiss, run the following commandpip install git+https://github.com/biocore/gneiss.gitTutorialsWhat are balancesQiime2 tutorialsLinear regression on balances in the 88 soilsLinear mixed effects models on balances in a CF studyLinear regression on balances in the Chronic Fatigue SyndromePython tutorialsLinear regression on balances in the 88 soilsLinear mixed effects models on balances in a CF studyLinear regression on balances in the Chronic Fatigue SyndromeIf you use this software package in your own publications, please cite it atMorton JT, Sanders J, Quinn RA, McDonald D, Gonzalez A, Vázquez-Baeza Y, 
Navas-Molina JA, Song SJ, Metcalf JL, Hyde ER, Lladser M, Dorrestein PC, 
Knight R. 2017. Balance trees reveal microbial niche differentiation. 
mSystems 2:e00162-16. https://doi.org/10.1128/mSystems.00162-16.
Package: gne-ren
GNE项目起源开发这个项目，源自于我在知网发现了一篇关于自动化抽取新闻类网站正文的算法论文——《基于文本及符号密度的网页正文提取方法》）这篇论文中描述的算法看起来简洁清晰，并且符合逻辑。但由于论文中只讲了算法原理，并没有具体的语言实现，所以我使用 Python 根据论文实现了这个抽取器。并分别使用今日头条、网易新闻、游民星空、观察者网、凤凰网、腾讯新闻、ReadHub、新浪新闻做了测试，发现提取效果非常出色，几乎能够达到100%的准确率。项目现状在论文中描述的正文提取基础上，我增加了标题、发布时间和文章作者的自动化探测与提取功能。目前这个项目是一个非常非常早期的 Demo，不能保证每个版本向下兼容，升级之前请特别注意。发布出来是希望能够尽快得到大家的使用反馈，从而能够更好地有针对性地进行开发。本项目取名为抽取器，而不是爬虫，是为了规避不必要的风险，因此，本项目的输入是 HTML，输出是一个字典。请自行使用恰当的方法获取目标网站的 HTML。本项目现在不会，将来也不会提供主动请求网站 HTML 的功能。如何使用在线体验如果你想先体验 GNE 的提取效果，那么你可以访问http://gne.kingname.info/。
一般情况下，你只需要把网页粘贴到最上面的多行文本框中，然后点提取按钮即可。通过附加更多的参数，可以让提取更精确。具体
参数的写法与作用，请参阅API使用环境如果你想体验 GNE 的功能，请按照如下步骤进行：安装 GNE# 以下两种方案任选一种即可# 使用 pip 安装pipinstall--upgradegne# 使用 pipenv 安装pipenvinstallgne使用 GNE提取正文>>>fromgneimportGeneralNewsExtractor>>>html='''经过渲染的网页 HTML 代码'''>>>extractor=GeneralNewsExtractor()>>>result=extractor.extract(html,noise_node_list=['//div[@class="comment-list"]'])>>>print(result){"title":"xxxx","publish_time":"2019-09-10 11:12:13","author":"yyy","content":"zzzz","images":["/xxx.jpg","/yyy.png"]}更多使用说明，请参阅GNE 的文档提取列表页(测试版)>>>fromgneimportListPageExtractor>>>html='''经过渲染的网页 HTML 代码'''>>>list_extractor=ListPageExtractor()>>>result=list_extractor.extract(html,feature='列表中任意元素的 XPath")>>>print(result)开发环境如果你需要参与本项目的开发，请按照如下步骤进行。如果你只想阅读源代码，请现在直接按下键盘上的句号键（就是问号左边那个），可以获得更好的阅读体验。本项目使用Pipenv管理 Python 的第三方库。如果你不知道Pipenv是什么，请点我跳转。安装完成Pipenv以后，按照如下步骤运行代码：gitclonehttps://github.com/kingname/GeneralNewsExtractor.gitcdGeneralNewsExtractor
pipenvinstall
pipenvshell
python3example.py特别说明项目代码中的example.py提供了本项目的基本使用示例。本项目的测试代码在tests文件夹中本项目的输入 HTML 为经过 JavaScript 渲染以后的 HTML，而不是普通的网页源代码。所以无论是后端渲染、Ajax 异步加载都适用于本项目。如果你要手动测试新的目标网站或者目标新闻，那么你可以在 Chrome 浏览器中打开对应页面，然后开启开发者工具，如下图所示：在Elements标签页定位到<html>标签，并右键，选择Copy-Copy OuterHTML，如下图所示当然，你可以使用 Puppeteer/Pyppeteer、Selenium 或者其他任何方式获取目标页面的JavaScript渲染后的源代码。获取到源代码以后，通过如下代码提取信息：fromgneimportGeneralNewsExtractorextractor=GeneralNewsExtractor()html='你的目标网页正文'result=extractor.extract(html)print(result)如果标题自动提取失败了，你可以指定 XPath：fromgneimportGeneralNewsExtractorextractor=GeneralNewsExtractor()html='你的目标网页正文'result=extractor.extract(html,title_xpath='//h5/text()')print(result)对大多数新闻页面而言，以上的写法就能够解决问题了。但某些新闻网页下面会有评论，评论里面可能存在长篇大论，它们会看起来比真正的新闻正文更像是正文，因此extractor.extract()方法还有一个默认参数noise_node_list，用于在网页预处理时提前把评论区域整个移除。noise_mode_list的值是一个列表，列表里面的每一个元素都是 XPath，对应了你需要提前移除的，可能会导致干扰的目标标签。例如，观察者网下面的评论区域对应的Xpath 为//div[@class="comment-list"]。所以在提取观察者网时，为了防止评论干扰，就可以加上这个参数：result=extractor.extract(html,noise_node_list=['//div[@class="comment-list"]'])提取新闻列表页的功能是测试功能，请勿用于生产环境。你可以通过Chrome 浏览器开发者工具中的Copy XPath来复制列表中任意一项的XPath，如下图所示。GNE 会根据这一项的 XPath，自动找到这个列表里面其他行的数据。运行截图网易新闻今日头条新浪新闻凤凰网网易新闻首页列表项目文档GNE 常见问题 Q&A已知问题目前本项目只适用于新闻页的信息提取。如果目标网站不是新闻页，或者是今日头条中的相册型文章，那么抽取结果可能不符合预期。可能会有一些新闻页面出现抽取结果中的作者为空字符串的情况，这可能是由于文章本身没有作者，或者使用了已有正则表达式没有覆盖到的情况。Todo使用一个配置文件来存放常量数据，而不是直接 Hard Code 写在代码中。允许自定义时间、作者的提取Pattern新闻文章列表页提取对于多页的新闻，允许传入一个 HTML 列表，GNE 解析以后，自动拼接为完整的新闻正文优化内容提取速度测试更多新闻网站……交流沟通如果您觉得GNE对您的日常开发或公司有帮助，请加作者微信 mekingname（或扫描下方二维码） 并注明"GNE"，作者会将你拉入群。验证消息：GNE如果你不用微信，那么可以加入 Telegram 群：https://t.me/joinchat/Bc5swww_XnVR7pEtDUl1vw论文修订在使用 Python 实现这个抽取器的过程中，我发现论文里面的公式和方法存在一些纰漏，会导致部分节点报错。我将会单独写几篇文章来介绍这里的修改。请关注我的微信公众号：未闻Code：
Package: gnetclisdk
python client for Gnetcli serverInstall Gnetcli GRPC-server.Download latest release fromhttps://github.com/annetutil/gnetcli/releases/tar -xzvf gnetcli_server-v1.0.0-darwin-amd64.tar.gz(If see 'cannot be opened because the developer cannot be verified', then callsudo xattr -d com.apple.quarantine gnetcli_server)./gnetcli_server -debugExample:fromgnetclisdk.clientimportCredentials,Gnetcliimportos,asyncioasyncdefexample():api=Gnetcli(insecure_grpc=True)dev_creds=Credentials(os.environ.get("LOGIN"),os.environ.get("PASSWORD"))res=awaitapi.cmd(hostname="myhost",device="huawei",cmd="dis clock",credentials=dev_creds)print("err=%sstatus=%sout=%s"%(res.error,res.status,res.out))asyncio.run(example())err=b'' status=0 out=b'2023-11-10 09:31:58\nFriday\nTime Zone(UTC) : UTC'