Saravanan666/pypi-org huggingface dataset:
Package: gotify-handler
gotify-handlerThis repo contains an extremely simple logging handler that relays log events to gotify.Installationpip install gotify-handlerUsageimportloggingfromgotify_handlerimportGotifyHandlerlogger=logging.getLogger()logging.basicConfig()gh=GotifyHandler(server_url="https://gotify.example.com",app_token="$APP_TOKEN",alert_on_log_level=logging.WARNING,extras=None)logger.addHandler(gh)logger.info("Example info (doesn't cause a notification)")logger.warning("Example warning (causes a notification)")alert_on_log_leveldefaults tologging.WARNING, but can be set to any value to make log events trigger notifications on gotify. If the log level is below this value, records are sent to gotify with a priority value of 0. Else, records are sent with a priority value of 5.extrasmay optionally be set to a dictionary with the contents ofMessage Extrasthat you wish to pass along with all log messages.
Package: gotify-message
gotify_messageDescriptionPython module to push messages to gotify serverGotify is messaging service that can be installed in LAN network and used without Internet access.https://gotify.net/Example use>>>fromgotify_messageimportGotifyNotification>>>message=GotifyNotification("http://10.0.0.7:8090","AiOLxxDxYOCc7bY","test_title","test_message")>>>print(message.json){"url":"http://10.0.0.7:8090/message","headers":{"X-Gotify-Key":"AiOLxxDxYOCc7bY","Content-type":"application/json"},"payload":{"title":"test_title","priority":5,"message":"test_message","extras":{"client::display":{"contentType":"text/plain"}}}}>>>message.send()<Response[200]>>>>message.send("test message")<Response[200]>>>>message.send("test message","test_title")<Response[200]>>>>message.deliveredFalse>>>message.send('test message')<Response[200]>>>>message.deliveredTrue
Package: gotify-tray
Gotify TrayA tray notification application for receiving messages from aGotify server.Getting startedDownload the latest release.or, install via pip:$pipinstallgotify-trayor, run from source:$pipinstall-rrequirements.txt
$python-mgotify_trayFeaturesReceive gotify messages in the native notification area.Reconnect after wake from sleep or losing network connection.Disable notification banners for low priority messages.Manually delete received messages.Go through a history of all previously received messages.Receive missed messages after losing network connection.ImagesMain windowDefaultDarkNotification bannersWindows 10KDEMacOS 12Build instructionsSeeBUILDING.Requirementspython >=3.10
Package: gotime
GoTimeHow long does it take to get from Point A to Point BFree software: MIT licenseDocumentation:https://gotime.readthedocs.io.FeaturesDetermine the time it takes to go from one address to a second addressWorks with a number of services included: Google Maps, Bing Maps, MapQuestCan be used as a command line call or via Python importsInstallationPackage is hosted via warehouse in the PyPi repository.You are able to install it via pip:pip install gotimeUsageCommand LineAfter setting up your virtual environment, you can call by running:gotime --start="86 Brattle St., Cambridge, MA 02138" \
       --end="77 Massachusetts Ave., Cambridge, MA 02139"ImportNot properly implemented.CreditsA huge shoutout tomkazinfor the project idea and the initial code.
Though most of the original code has been destroyed, the idea lives on.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.01 (2018-04-21)First release on PyPI.
Package: gotipy
GotipyA simple Python wrapper forGotifyRequirementspython>=3.6gotify/serverInstallationpipinstallgotipyUsagefromgotipyimportGotifyg=Gotify(host_address='https://yourdomain.com')Create a new applicationg.create_app(admin_username='admin',admin_password='admin',app_name='demo',desc='My first app!')# {#     'id': 1,#     'token': 'xxxxxxxxxx',#     'name': 'demo',#     'description': 'My first app!',#     'internal': False,#     'image': 'static/defaultapp.png'# }Push messages to an applicationg.push(title='My message',message='Hello, World!',priority=9,token='xxxxxxxxxx')# {#     'id': 1,#     'appid': 1,#     'message': 'Hello, World!',#     'title': 'My message',#     'priority': 9,#     'date': '2022-05-16T05:25:29.367216435Z'# }Notes:You can setGOTIFY_HOST_ADDRESSas an envionmnt variable instead of passinghost_addressto the class instance.If you want to use the same app in all yourpushcalls, you can omittokenfrom the method, and passfixed_token=...to the class instance or setGOTIFY_APP_TOKENas an envionmnt variable instead.If you want to set a fixed priority level for all yourpushcalls, passfixed_priorityto the class instance.
Package: gotit-verify
GotIt Verify SDKDescriptionThis SDK is used to verify the identity of an app that
attempts to access Got It APIs. The client of the app
needs to provide an environment name, app key an app secret
to use the SDK.InstallationUsagefrom gotit_verify import Verify
verify = Verify(env, app_key, app_secret)

new_auth = verify.create_verification(
                        channel, template_name, to, 
                        subject_params={}, body_params = {}
                        )

check_auth = verify.check_verification(channel, to, code)The two respective variables will contain the content as followed:check_auth: Dict{
                id:int, 
                channel: str, 
                to: str, 
                code: str, 
                status: str, 
                denied_reasons: str
               }

new_auth: Dict{ 
                id: int,
                channel: str,
                template_name: str,
                subject_params: dict,
                body_params: dict,
                code: str,
                expiration_date: str,
                status: str 
              }LICENSE
Package: gotland
gotlandPython bindings for therabbitmq management http api. The name comes from
theSwedish varietyof rabbit.Licensegotland is released under the terms of the Apache-2.0 licenses.ExamplesFor the most comprehensive list of how the library works please see the testsContributingPull requests are always welcome and greatly appreciated. When sending them please follow the fork and branch workflow,
and open your pull request against the devel branch. Please include in a test where applicable usingvcrpy. You should include a test that shows the failure and a fix if possible.Installingpip install gotland
Package: goto
Installation$ pip install gotoUsage>>> import goto
>>> page = goto('рег.рф')
>>> page.code
200
>>> page.body[:25]
'\n\n\n<!DOCTYPE html PUBLIC '
>>> page.mime
'text/html'
>>> page.charset
'windows-1251'
>>> page.ubody[:25]
u'\n\n\n<!DOCTYPE html PUBLIC '
>>> page.headers['content-encoding']
'gzip'
>>> str(page.cookies)[:20]
'<cookielib.CookieJar'
Package: goto-cd
goto🚀 🚀 🚀 A command line tool for teleporting around your computer! 🚀 🚀 🚀The (very) tldr usage ofgoto:Gifs and usage documentation can be found in thedocs folderKey FeaturesLike browser bookmarks, but for the commandline!Add commonly visited places, likecode/my_projectand teleport to it from anywhere!Did you say you want auto-completion with that? Of course there is auto-completion!Works with both zsh and bash!What if you want to callmy_project"secret_project" instead? Goto's got you covered!Do you want different auto completion at different times? We got profiles for that!Works great as a complement toj!Unnecessary sloganGoto - The good way to programInstallingbashpipinstall--usergoto-cd
_gotohelper--installbashsource~/.bashrczshpipinstall--usergoto-cd
_gotohelper--installzshsource~/.zshrcHelp I get "Command not found!"There is a slight chance you get the error message_gotohelper: command not foundwhen installing. This probably means that goto was installed correctly,
but yourPATHvariable needs to include where_gotohelperis located. With
newer versions of pip_gotohelpertends to be installed in~/.local/binand
so you would addexport PATH=$PATH:~/.local/binto the end of your.bashrcin bash and.zshrcin zsh.DocumentationSee thedocsfolder.ContributingSeecontributing.md.LicenseMIT - seeLICENSE
Package: goto-conversion
goto_conversion (Novel Conversion of Betting Odds to Probabilities)The most common method used to convert betting odds to probabilities is to normalise the inverse odds (Multiplicative conversion). However, this method does not consider the favourite-longshot bias.To the best of our knowledge, there are two existing methods that attempt to consider the favourite-longshot bias. (i) Shin conversion [1,2,3] maximises the expected profit for the bookmakers assuming a small proportion of bettors have inside information. (ii) Power conversion [4] raises all inverse odds to the same constant power. However, both of these methods require iterative computation to convert betting odds to probabilities.Our proposed method (goto_conversion) is significantly more efficient than Shin and Power conversion because it converts betting odds to probabilities directly without iterative computation.The goto_conversion reduces all inverse odds by the same units of standard error. This attempts to consider the favourite-longshot bias by utilising the proportionately wider standard errors implied for inverses of longshot odds and vice-versa.Furthermore, our tables of experiment results below show that the goto_conversion converts betting odds to probabilities more accurately than all three of these existing methods.InstallationRequires Python 3.7 or above.pip install goto-conversionUsageDecimal Oddsimportgoto_conversiongoto_conversion.goto_conversion([1.2,3.4,5.6])[0.7753528189788175, 0.17479473292721065, 0.04985244809397199]American Oddsimportgoto_conversiongoto_conversion.goto_conversion([-500,240,460],isAmericanOdds=True)[0.7753528189788175, 0.17479473292721065, 0.04985244809397199]Pseudo CodeExperiment ResultsThe experiment results table directly below is based on the same 6,000 football matches' betting odds (home win, draw or away win) across four different bookmakers.Kaggle notebook to reproduce the table directly above:https://www.kaggle.com/code/kaito510/novel-conversion-of-football-betting-oddsThe experiment results table directly below is based on 6,348 horse races' betting odds for the win and place markets.Kaggle notebook to reproduce the table directly above:https://www.kaggle.com/code/kaito510/novel-conversion-of-horse-racing-oddsReferences[1]H. S. Shin, “Prices of State Contingent Claims with Insider
traders, and the Favorite-Longshot Bias”. The Economic
Journal, 1992, 102, pp. 426-435.[2]E. Štrumbelj, "On determining probability forecasts from betting odds".
International Journal of Forecasting, 2014, Volume 30, Issue 4,
pp. 934-943.[3]M. Berk, "Python implementation of Shin's method for calculating implied probabilities from bookmaker odds"[4]S. Clarke, S. Kovalchik, M. Ingram, "Adjusting bookmaker’s odds to allow for
overround". American Journal of Sports Science, 2017, Volume 5, Issue 6,
pp. 45-49.Contact MeLinkedIn Message:https://www.linkedin.com/in/goto/Kaggle Message:https://www.kaggle.com/kaito510/competitionsOr fire an issue on this repo.
Package: goto-dir
Tired of typing a lot to get where the fun is happening?gotowas made for you!InstalationMethod 1:$ pip install goto-dirMethod 2:$ git clone git://github.com/pauloborges/goto.git
$ cd goto && [sudo] python setup installgotoThegotocommand is used to navigate through shortcuts.Using it without parameters returns a list of all currently labels:$ goto
home    /home/borges
ws      /home/borges/workspace
docs    /home/borges/DocumentsWhen you pass a label name,gotochanges the current directory:/old/dir$ goto home
/home/borges$But if the label does not exists, an error is thrown:$ goto connman
connman is not a valid label.labelThelabelcommand is used to save shortcuts to directories.When you pass a simple string, the current directory is saved:/home/borges/Downloads$ label downloads
downloads label points to /home/borges/Downloads.Using it without parameters saves the current directory using the inner folder as label:/path/to/something$ label
something label points to /path/to/something.If the label already exists and points to another directory, an error is thrown:/home/borges/workspace$ label ws
ws label already exists. Use --replace.The replacement can be ensured by-r|–replace:/home/borges/my_new_workspace$ label -r ws
ws label now points to /home/borges/my_new_workspace.You can delete a label using-d|–delete:$ label -d docs
docs label was deleted.But if the label does not exists:$ label -d connman
connman is not a valid label..goto fileAll label information are stored in~/.goto. See an example:$ cat ~/.goto
[labels]
home = /home/borges
ws = /home/borges/workspace
docs = /home/borges/DocumentsLicenseSeeLICENSEfile.
Package: go_to_github
go_to_githubis a tool to test whethergithub.comis reachable right now. If not, it will work it out automatically.NoticeIt might be in need for people who come from countries blocking github.
This project only applies tomacOSandLinux.UsagesudogotogithubDon't forgetsudo. Github ip will be updated if the program detects that you cannot connect to github.com. The update happens in your/private/etc/hostsfile, which requires root user.Meanwhile, before any modification, your original hosts file will be copied to~/.local/share/gotogithub/hosts. If the program fails to connect to github in the end, it will restore the backup hosts file automatically to/private/etc/hosts.Installationpipinstallgo_to_github
Package: gotoh
gotohPerforms a global sequence alignment (Needleman-Wunsch) with affine gap penalties (Gotoh). It returns a tuple with the number of characters that match, mismatch, open gaps and extend gaps. The scores/penalties are given as arguments and the defaults correspond to the basic Levenshtein distance.It can also produce a multiple sequence alignment.Based on Brent Pedersen’s nwalign which was originally posted athttps://bitbucket.org/brentp/biostuff/but now has disappeared.For more information, see chapter 7 of Robert Turnbull's thesis 'The Textual History of Codex Sinaiticus Arabicus and its Family'.Documentation and code clean up to come.
Package: goto-label
Installationmake sure you are using python 3.9pip install -U goto-labelNOTE: support for python >=3.10 is very unstable, please run the test before using.Usagea simple example:fromgotoimportwith_gotofromgotoimportgoto,label# optional, for linter purpose@with_gotodefx():goto.endprint("this will not print")label.endprint("this will print")uselabel .NAMEto define a label.usegoto .NAMEto goto into a label.Limitation@with_gotodefx():try:passfinally:label.ahere we define the label "a" once. but if you run the code:SyntaxError:ambiguouslabelname:'a'.atline10it's not a bug, but why is it?let's try to disassemble the code without modifying it:7           0 SETUP_FINALLY           10 (to 12)

  8           2 POP_BLOCK

 10           4 LOAD_GLOBAL              0 (label)
              6 LOAD_ATTR                1 (a)
              8 POP_TOP
             10 JUMP_FORWARD             8 (to 20)
        >>   12 LOAD_GLOBAL              0 (label)
             14 LOAD_ATTR                1 (a)
             16 POP_TOP
             18 RERAISE
        >>   20 LOAD_CONST               0 (None)
             22 RETURN_VALUEbecause thefinallyblock is copy pasted by python.look at the instructions, there are two definitions of label "a".Thanksthis project was inspired bysnoack/python-goto.since the project seems to have been discontinued, I created this.
Package: goto-plus
Python-GoToA PyPi module allowing the users' code to navigate to aliased line number within the Python interpreterHow does it work?User import goto to their project:fromgoto_plusimport*and then complete configuration:gotoconfig(__file__)Why goto_plusgotofrom goto_plus works with line numbers (labels coming very soon) to allows the user dynamic control over the flow of their python code.###Examplej=0j+=1print(j)ifj<10:goto(2)InstallationOn bash:$pipinstallgoto-plusOn windows:py -m pip install goto-plusManually (NOT RECOMMENDED)Copy the contents of the filegoto.pyinto you project and proceed accordinglyThis file can be found heregoto_plus\goto.pyUsagegoto calendar exampleContributinggoto calendar exampleTo goto calendar example, type:goto(line)Example:IN PROGRESSfromgoto_plus.Examplesimportgoto-calContributingFork it (https://github.com/)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Make sure that the script does not have errors or warningsCreate a new Pull RequestLicenseThis tool is open source under theMIT Licenseterms.[Back To Top]
Package: gotopub
GoToPub (Py)Experimental GoToSocial and general Fediverse clientInstallationThe package is on PyPI:gotopubpip install gotopubLicenseGNU Affero General Public License v3.0GoToPub - GoToSocial and general Fediverse client
Copyright (C) 2024  András Németh

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.AcknowledgementsPython section in global .gitignore taken fromgithub/gitignoreunder theCC0-1.0 License.Thanks toGuido van Rossum, thePython Software Foundation, and all contributors for thePythonprogramming language
Package: gotrackit
GoTrackIt作者: 唐铠,794568794@qq.com,tangkai@zhechengdata.com1. 简介本地图匹配包基于隐马尔可夫模型(HMM)实现了连续GPS点位的概率建模，利用这个包可以轻松对GPS数据进行地图匹配，本开源包的特点如下:数据无忧提供路网生产模块以及路网优化接口，您不需要准备任何路网和GPS数据即可玩转地图匹配；提供GPS样例数据生产模块，解决没有GPS数据的难题；提供GPS数据清洗接口，包括滑动窗口降噪、数据降频。文档齐全中文文档，有详细的操作指引；算法原理讲解部分不涉及复杂的公式推导，使用动画形式剖析算法原理,简洁明了。匹配结果自动优化对基于HMM匹配的初步路径进行了优化，对于不连通的位置会自动补路，对于实际路网不连通的位置会输出警告，方便用户检查路网。1.1. 如何安装gotrackit所需前置依赖geopandas(0.14.1)geopy(2.4.1)gdal(3.4.3)networkx(3.2.1)shapely(2.0.2)pandas(2.0.3)numpy(1.26.2)pyproj(3.6.1)keplergl(0.3.2)括号中为作者使用版本(基于python3.11), 仅供参考geopandas为最新版本, 如果不是最新版本可能会报错(有个函数旧版本没有)使用pip安装安装：pipinstall-ihttps://pypi.org/simple/gotrackit更新：pipinstall--upgrade-ihttps://pypi.org/simple/gotrackit1.2 用户手册用户文档链接2. 地图匹配问题如何依据GPS数据推算车辆的实际路径？3. 地图匹配算法动画演示想了解算法过程的可以参考B站视频:基于隐马尔可夫模型(HMM)的地图匹配算法动画版！学不会你来打我！4. 匹配结果可视化中高频GPS匹配效果:低频GPS匹配效果:
Package: gotran
Gotran - General ODE TRAnslatorGotran:provides a Python interface to declare arbitrary ODEs.provides an interface for generating CUDA/C/C++/OpenCL/Julia/Python/Matlab code for a number of functions including the right hand side and symbolic generation of a Jacobian.is intentionally lightweight, and could be interfaced by other
Python libraries needing functionalities to abstract a general
ODE.depends on NumPy, and on SymPy. See further instructions in
INSTALLcan load models from external ODE description files such as CellMLInstallYou can install gotran through pippython -m pip install gotranor if you want to work with the latest version you can install the developement version by either cloning the repository and runpython -m pip install git+https://github.com/ComputationalPhysiology/gotran.gitDocumentationDocumentation can be found here:http://computationalphysiology.github.io/gotran/Source codeSource code can be found athttps://github.com/ComputationalPhysiology/gotran.Licensegotran is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.gotran is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public License along with gotran. If not, seehttp://www.gnu.org/licenses/.ContributorsGotran is developed by Johan Hake.
The version of gotran found in this repository is maintained by Henrik Finsberg and Kristian Hustad.
Package: gotrue
Auth-pyThis is a Python port of thesupabase js gotrue client. The current state is that there is a features parity but with small differences that are mentioned in the sectionDifferences to the JS client. As of December 14th, we renamed to repo fromgotrue-pytoauth-pyto mirror the changes in the JavaScript library.InstallationWe are still working on making thegotruepython library more user-friendly. For now here are some sparse notes on how to install the module.PoetrypoetryaddgotruePippipinstallgotrueDifferences to the JS clientIt should be noted there are differences to theJS client. If you feel particulaly strongly about them and want to motivate a change, feel free to make a GitHub issue and we can discuss it there.Firstly, feature pairity is not 100% with theJS client. In most cases we match the methods and attributes of theJS clientand api classes, but is some places (e.g for browser specific code) it didn't make sense to port the code line for line.There is also a divergence in terms of how errors are raised. In theJS client, the errors are returned as part of the object, which the user can choose to process in whatever way they see fit. In this Python client, we raise the errors directly where they originate, as it was felt this was more Pythonic and adhered to the idioms of the language more directly.In JS we return the error, but in Python we just raise it.const{data,error}=client.sign_up(...)The other key difference is we do not use pascalCase to encode variable and method names. Instead we use the snake_case convention adopted in the Python language.Also, thegotruelibrary for Python parses the date-time string intodatetimePython objects. TheJS clientkeeps the date-time as strings.Usage (outdated)Important:This section is outdated, you can be guided by theJS client documentationbecause this Python client has a lot of parity with the JS client.To instantiate the client, you'll need the URL and any request headers at a minimum.fromgotrueimportSyncGoTrueClientheaders={"apiKey":"my-mega-awesome-api-key",# ... any other headers you might need.}client:SyncGoTrueClient=SyncGoTrueClient(url="www.genericauthwebsite.com",headers=headers)To send a magic email link to the user, just provide the email kwarg to thesign_inmethod:user:Dict[str,Any]=client.sign_up(email="example@gmail.com")To login with email and password, provide both to thesign_inmethod:user:Dict[str,Any]=client.sign_up(email="example@gmail.com",password="*********")To sign out of the logged in user, call thesign_outmethod. We can then assert that the session and user are null values.client.sign_out()assertclient.user()isNoneassertclient.session()isNoneWe can refesh a users session.# The user should already be signed in at this stage.user=client.refresh_session()assertclient.user()isnotNoneassertclient.session()isnotNoneContributionsWe would be immensely grateful for any contributions to this project.