Saravanan666/pypi-org huggingface dataset:
Package: gofit
GOFit: Global Optimization for Fitting problemsGOFit is a package of C++ algorithms with python interfaces designed for the global optimization of parameters in curve fitting, i.e. for nonlinear least-squares problems arising from curve fitting. GOFit was developed with scientific curve fitting problems in mind but is also applicable to general curve fitting problems provided they can be formulated as nonlinear least-squares problems.Full details on how to use GOFit are available in thedocumentation.RequirementsGOFit provides pre-builtPython wheelsfor most common platforms with all dependencies included. However if a wheel does not exist for your platform (or if building from source), GOFit requires the following software to be installed:PyBind11 2.9.1 or above (https://pybind11.readthedocs.io/)Eigen 3.4 or above (https://eigen.tuxfamily.org/)CMake 3.18 or above (https://cmake.org/)Installing GOFitFor easy installation, usepip:$pipinstallgofitNote that if an older install of GOFit is present on your system you can use:$pipinstall--upgradegofitto upgrade GOFit to the latest version.Installing GOFit from sourceAlternatively, you can download the source code fromGithuband unpack as follows:$gitclonehttps://github.com/ralna/gofit
$cdgofitGOFit can then be compiled and installed using:$pipinstall.Please Note:don't forget to install the required dependencies (see above).To upgrade GOFit to the latest version, navigate to the top-level directory (i.e. the one containingsetup.py) and re-run the installation usingpip, as above:$gitpull
$pipinstall.TestingThedocumentationprovides some simple examples of how to run GOFit.UninstallationYou can uninstall GOFit as follows:$pipuninstallgofitBugsPlease report any bugs using GitHub's issue tracker.LicenseThis software is released under the New BSD license.
Package: gogame
An easy way to simulate and automize go-like programs.InstallingTo install the library from PyPi, you can just run the following command:# Linux/macOSpython3-mpipinstall-Ugogame# Windowspy-3-mpipinstall-UgogameTo install from the development sources, do the following:$gitclonehttps://github.com/BlackRaven0405/gogame$cdgogame$python3-mpipinstall-U.Quick ExampleimportgogameclassRandomPlayer(gogame.Player):defplay(self):returnself.playable_moves()[0]b=gogame.Board()p1=RandomPlayer(name="John")p2=RandomPlayer(name="Smith")b.join(p1)b.join(p2)winner=b.run_game()print(winner)You can find more examples in the example directory.LinksDocumentationRules of go
Package: gogeta-configure
DescriptionGiven a YAML config file (gogeta.yaml), updates keys in etcd to allow gogeta to proxy hostnames to backendsUsageusage: gogeta-configure [-h] [--debug] [--silent] [--update] [--list]
                        [--dry-run] [--purge] [--version]
                        [config_file]

Update gogeta via etcd

positional arguments:
  config_file    YAML config file (use "-" to read from STDIN)

optional arguments:
  -h, --help     show this help message and exit
  --debug, -d    Show debug logging
  --silent, -s   Hide error logging
  --update, -u   Update services
  --list, -l     List services
  --dry-run, -D  Do not change configuration
  --purge        Purge all gogeta config from etcd
  --version, -v  show program's version number and exitExample Config---
etcd: 127.0.0.1:4001
services:
  bar.example.com:
  - backend-3.backend
  - backend-4.backend
  foo.example.com:
  - backend-1.backend
  - backend-2.backendMore examples are available in the examples folder of the source distribution
Package: goggle0
goggle0goggle0 projectDocumentation:https://siwon12.github.io/goggle0GitHub:https://github.com/siwon12/goggle0PyPI:https://pypi.org/project/goggle0goggle0 pypi projectChangelogSee theCHANGELOGfor more information.ContributingContributions are welcome! Please see thecontributing guidelinesfor more information.LicenseThis project is released under theMIT License.
Package: gog-install
Descriptiongog-installis a command line tool for installing your
GNU/Linux-compatible DRM-free games purchased on theGOG.comonline
store. It allows one to install the games without running the
self-extractable.sharchive and the graphical installer.This tool was created for the following reasons:I dislike graphical interfaces;I use a game controller-only box without mouse and keyboard (so it
would be boring to use a graphical installed, even with remote
display);I avoid to run proprietary code on my computer (no choice for games,
so I useFirejailbut I prefer a cleaner solution if possible).This client is not supported in any way by GOG.com !InstallationYou can always install the latest version from PyPi using:$pipinstallgog-clientUsing an archive, this software can be installed using$pythonsetup.pyinstallUsage$gog-install/path/to/archive_from_gog.shThe game will be extracted to/opt/GOG Games(use--install-dirto select the target directory).The game can be launched with:$/opt/GOGGames/FancyNameoftheGame/start.shThere is nothing pointing to this directory (.desktop files, symbolic
links or scripts/usr/local/bin, etc), so you can freely rename or
move the directory containing the game.DependenciesPython3 (at least 3.4)DownloadVersion 0.1.2:http://chadok.info/gog-install/gog-install-0.1.2.tar.gzDarcs repository:http://hub.darcs.net/oschwand/gog-install/Bugs and commentsPlease submit bug reports on theissues tracker.LicenceHumble is free software, released under the term of the GPLv3+.Copyright 2016 Olivier Schwander <olivier.schwander@ens-lyon.org>
Package: gogoanime-dl
Gogoanime-DLGogoanime Anime DownloaderAn Anime Scraping Package that finds anime from gogoanime and helps in downloading anime$python3-mpipinstallgogoanime-dlExamplefromgogoanimeimportGoGoAnime=GoGo()Anime.search("One Piece")Custom Download Location ExamplefromgogoanimeimportGoGoAnime=GoGo(download_path="/path-to-folder")#         ORAnime=GoGo("/path-to-folder")#By default download_path is downloads
Package: gogo-gadget
A tool to aggregate custom command line tools into one.It can thus serve as a
single entry point into a local ecosystem of tools and scripts. It is of course
inspired byhttps://en.wikipedia.org/wiki/Inspector_Gadget.Instead of remembering obscure script names or command line tool names with possibly
even more obscure options, one can simply create agogofile containing the
whole command and some more memorable command name. In contrast to bash aliases
an command can be split into several word tokens, e.g.gogo cleanup conda.
Thanks to support for autocompletion in the bash (<TAB> <TAB>), it is even
simpler to access the required commands.Furthermore, help or a very short documentation can be included.How does it work?On startupgogo-gadgetloads agogofile by default from~/.gogo.yml. It then
creates a command line interface on the fly using theclickpython library
(http://click.pocoo.org).InstallationIt is recommended to usepipsihttps://github.com/mitsuhiko/pipsito installgogo-gadget. Oncepipsiis installed, run:pipsi install gogo-gadgetApip install gogo-gadgetwould also work in principle, however, gogo would
need to be installed in all virtual environments used.To enable tab autocompletion in the bash, add the following to.bashrc:eval "$(_GOGO_COMPLETE=source gogo)"Example gogo FileGogo files are written in YAML.See below a few command examples along with the corresponding YAML file.Commands:gogostartfoogogoupdategogocleanupcondagogocleanupconda-ygogocleanupfooGogo file:cleanup:conda:cmd:conda clean --allhelp:Remove obsolete files in current conda envfoo:cmd:example_commandhelp:doing some other sort cleanupsstart:foo:cmd:docker run -it --rm foo/foo:latest command_in_dockerhelp:complicated docker commandupdate:cmd:apt-get update && apt-get upgradehelp:updating software on ubuntu
Package: gogogate2-api
Python gogogate2-apiPython library for controlling GogoGate2 and iSmartGate devicesInstallationpip install gogogate2-apiUsage in Commands$gogogate2--help
Usage:gogogate2[OPTIONS]COMMAND[ARGS]...InteractwiththedeviceAPI.

Options:--hostTEXT[required]--usernameTEXT[required]--passwordTEXTOmitforinteractiveprompt.Use'-'toreadfromstdin.--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:closeClosethedoor.infoGetinfofromdevice.openOpenthedoor.


$ismartgate--help
Usage:ismartgate[OPTIONS]COMMAND[ARGS]...InteractwiththedeviceAPI.

Options:--hostTEXT[required]--usernameTEXT[required]--passwordTEXTOmitforinteractiveprompt.Use'-'toreadfromstdin.--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:closeClosethedoor.infoGetinfofromdevice.openOpenthedoor.Usage in Codefromgogogate2_apiimportGogoGate2Api,ISmartGateApi# GogoGate2 APIgogogate2_api=GogoGate2Api("10.10.0.23","admin","password")# Get info about device and all doors.awaitgogogate2_api.async_info()# Open/close door.awaitgogogate2_api.async_open_door(1)awaitgogogate2_api.async_close_door(1)# iSmartGate APIismartgate_api=ISmartGateApi("10.10.0.24","admin","password")# Get info about device and all doors.awaitismartgate_api.async_info()# Open/close door.awaitismartgate_api.async_open_door(1)awaitismartgate_api.async_close_door(1)BuildingBuilding, testing and linting of the project is all done with one script. You only need a few dependencies.Dependencies:python3 in your path.The python3venvmodule.The build script will setup the venv, dependencies, test and lint and bundle the project../scripts/build.sh
Package: gogomanga
GogoMangaApiAn Unofficial Python API Library to Download Manga  for FREE...ImportantInstallation$ pip install gogomangaUsage1. Importing the Libraryfrom gogomanga import get_search, get_detail, get_chapterExampleSearch Exampleprint(get_search(query="naruto"))Detail Exampleprint(get_detail(mangaid="boruto", page=1))Details Exampleprint(get_chapter(mangaid="boruto", chapternum=1))©Otakatsu
Package: gogo-scraper
gogo_scrapperA simple python goganime scraperInstallationinstall gogo_scraper usingpip install gogo_scraperUsageimport gogo_scraper as gogo  # import moduleGets list of Gogoanime search results for the query "naruto"search = gogo.search("naruto")Get link to naruto episode 10Here, "naruto" is the exact anime title/link in Gogoanime. Other anime might have complicated titles, so first use gogo.search() to get exact titlelink = gogo.getEpisode("naruto", 10)Get latest episode from narutoReturns a dictionary {ep_num: 220, link: ...}latest_episode = gogo.getLatestEpisode("naruto")All these functions also take an optionalbase_urlparameter, which could be used to scrap from a different Gogoanime server.Users could also directly changegogo.BASE_URLto globally change the server being used
Package: gogo-utils
Gogo-utilsgogo-utils is a utility library that generates a service name convention based on a repo url. The
library is mainly used to ensure that an application is able to easily know the path to a service
it may need.fromgogoutilsimportParser,Generatorurl='https://github.com/foremast/test.git'project,repo=Parser(url).parse_url()# a way to customize based on your conventionsmy_formats={'jenkins_job_name':'{project}-{repo}-master','app':'app-{project}{repo}','custom':'{project}*.*{repo}',}info=Generator(project,repo,'dev',formats=my_formats)info.jenkins()>{'name':'foremast-test-master'}info.app_name()>app-foremasttestinfo.custom>foremast*.*testClassesParserThis class is needed to parse and gather details about a git repository.
A url is split up and the result is a project, repo.GeneratorThis class provides details about an application’s details when using different technologies.
Its a simple and concise way to know how a specific app is referenced in jenkins, gitlab, s3,
iam, dns and among other services tools.FormatsThis class provides a mechanism to alter the way Generator generates certain application references. It
is mainly referenced within Generator to provide that functionality.In setting up the format the following variables are exposed:VARIABLEDESCRIPTIONdomainDomainenvEnvironmentprojectGit project/group name (lowercase)raw_projectGit project/group nameraw_repoGit repo namerepoGit repo name (lowercase)These are the services you can customize the formats along with their default format:SERVICEDEFAULTDESCRIPTIONapigateway_domainapi.{env}.{domain}API gateway base domainapp{repo}{project}Application Namedns_elb{repo}.{project}.{env}.{domain}FQDN of DNS ELBdns_instance{repo}{project}-xx.{env}.{domain}FQDN of instancesdomainexample.comDomainelb_app{repo}{project}ELB Namegit_repo{raw_project}/{raw_repo}Apps git repogit_repo_configs{raw_project}/{raw_repo}-configConfig git repogit_repo_qe{raw_project}/{raw_repo}-qaQA’s git repoiam_base{project}_{repo}IAM profile baseiam_group{project}IAM group nameiam_lambda_role{project}_{repo}_lambda_roleLambda IAM role nameiam_policy{project}_{repo}_policyIAM policy nameiam_profile{project}_{repo}_profileIAM profile nameiam_role{project}_{repo}_roleIAM role nameiam_user{project}_{repo}IAM usernamejenkins_job_name{project}_{repo}Jenkins job names3_app_bucket{project}-{repo}Application specific S3 bucket names3_app_region_bucket{project}-{repo}-{region}Application specific S3 bucket name with regions3_archaius_namearchaius-{env}/{project}/{repo}{project}/S3 full path for archaiuss3_bucketarchaius-{env}S3 archaius bucket names3_bucket_path{project}/{repo}{project}S3 path for app (within s3_bucket)security_group_app{repo}{project}Security Group nameshared_s3_app_bucketcommon-{project}S3 bucket name for shared bucketsshared_s3_app_region_bucketcommon-{project}-{region}S3 bucket name for shared buckets with regionContributionsWe encourage contributions, feedback and any bug fixes.Running TestsRunning tests are very quick and easy when using tox. We validate against python 2.7 and 3.4+To run the tests simply execute# only needed once$pipinstall-rrequirements-dev.txt$tox
Package: gogoweb
go-go-webCommand-line tool that converts .txt or .md files into .html files.Featuresv1.0.3project package uploaded toTest PyPIv0.0.5additionally parses front matter from .md files for metadatav0.0.4additionally accepts TOML config filev0.0.3additionally parses code blocks and horizontal rules for .md filesv0.0.2additionally converts .md files into .html and parses italic and bold for .md filesv0.0.1converts TIL post (.txt file) into .html file, specify output location, specify stylesheet url, view app version, view app help messageInstallationDownload and install the latest version ofpython. Open a terminal and check that it is installed.py --versionMake sure you have upgraded version of pip.Windowspy -m pip install --upgrade pipLinux/MAC OSpython3 -m pip install --upgrade pipInstall gogoweb using pip.Windowspip install gogowebLinux/MAC OSpython3 -m pip install gogowebCheck that you have the latest version of the app.py -m gogoweb.convert -vUsageView App Versionpy -m gogoweb.convert --versionorpy -m gogoweb.convert -vView Usage Messagepy -m gogoweb.convert --helporpy -m gogoweb.convert -hConvert .txt to .htmlpy -m gogoweb.convert <file or folder path>Example 1 (Convert one file)py -m gogoweb.convert ./examples/til_post1.txtExample 2 (Convert a folder of files)py -m gogoweb.convert ./examplesOutput(s) can be found in til folder.Specify Output Locationpy -m gogoweb.convert <file or folder path> -o <folder path>Examplepy -m gogoweb.convert ./examples/examples.txt -o ./examplesSpecify Stylesheetpy -m gogoweb.convert <file or folder path> -s <stylesheet url>Examplepy -m gogoweb.convert ./examples/til_post2.txt -s https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.8.0/tufte.min.cssSpecify Config Filepy -m gogoweb.convert <file or folder path> -c <config toml file path>Examplepy -m gogoweb.convert ./examples -c src/gogoweb/config.tomlAdditional Features Available for MarkdownInput file must be a .md file that is written in proper Markdown syntaxFront Matter ParsingYou may specify the following front matter in Markdown files and these will become the metadata of the resulting HTML fileNameTypeDefaultDescriptiondescriptionstringundefinedThe description of your document. Used for the page metadata and by search engines.keywordsstring[]undefinedKeywords meta tag for the document page, for search engines.langstringenThe language of your document.titlestringfile nameThe text title of your document. Used for the page metadata.How to specify front matter in a Markdown file:---
title: Katie's Homepage
keywords: website, coding
description: This is Katie's personal website.
---LicenseLicense (MIT)See Examples Outputsgo-go-web examples
Package: gog-price-checker
Game Price Checker 💵TheGame Price Checkeris a Python script that allows you to extract a URL from the clipboard, download the web page content, and retrieve the price of a game from the GOG API. The script is designed to work on macOS systems.RequirementsPython 3.xRequests library (for making HTTP requests)Regular expressions (re) moduleThreading module (for concurrent requests)Logging module (for logging)Installationpip install gog-price-checkerHow to UseCopy a URL containing a game page (e.g.,https://www.gog.com/game/diablo) to the clipboard.Run the Python script with the following arguments:-u,--url: The URL of the game page to scrape (required).-n,--normalize: (Optional) Normalize currencies to USD.-c,--count: (Optional) default = 10, number of countries to show in sorted prices result-p,--pretty: (Optional) shows result as pretty tableExample:gog-price-checker -u https://www.gog.com/game/diablo -n -pOutput:Country                   Price      Currency
---------------------------------------------
Ukraine                   5.51       USD
Moldova                   5.51       USD
Kazakhstan                5.51       USD
Armenia                   5.51       USD
China                     5.57       USD
Poland                    8.34       USD
Australia                 9.24       USD
New Zealand               9.24       USD
Andorra                   9.99       USD
Spain                     9.99       USD
Sweden                    9.99       USD
...The script will download the web page, extract the product ID, and fetch the price from the GOG API for multiple countries concurrently using threads.The prices for different countries will be displayed in descending order of value. If the-nflag is provided, the prices will be normalized to USD.LimitationsThe script uses regular expressions to extract the product ID and prices, which might not handle all possible web page structures or API responses. Some pages may require additional parsing logic.The API endpoint used to fetch prices is specific to GOG, and it may change over time. Ensure the API remains accessible and the script is updated accordingly.Important NoteThe script is provided as-is, and it is advisable to use it responsibly and in accordance with the website's terms of use. Automated scraping of websites can put a strain on their servers, so use the script with caution and avoid making excessive requests.CreditsThis script is provided as an educational example and is not intended for commercial purposes. It was created as part of a task and is not an official GOG product.LicenseTheGame Price CheckerPython script is released under theMIT License. Feel free to modify and distribute the script according to the terms of the license.DisclaimerThe author of this script is not responsible for any misuse or consequences of using the script on unauthorized websites. Always make sure you have the right to access and use the data from the websites you interact with.
Package: gogpy
Communicate with agogserver for data visualization independent of
Python.Thegogfunction sends data from apandasDataFrame to a gog
server such asgogd. The gog server is responsible for passing the
data to a gog frontend such asgogifor visualization.Usage> import pandas as pd
> my_data = pd.DataFrame({'x': [1, 2, 3], 'y': [3, 1, 1]})
> from gogpy import gog
> gog(my_data)
Package: gogs-ldap-groups-syncer
# gogs-ldap-groups-syncer* manual execution:``` sh/usr/local/bin/gogs-ldap-groups-syncer -c ~/gogs-ldap-groups-syncer.conf```* cronjob:``` sh* * * * * root /usr/local/bin/gogs-ldap-groups-syncer -c ~/gogs-ldap-groups-syncer.conf > /dev/null 2>&1```* logrotare:```/var/log/gogs-ldap-groups-syncer.log {weeklyrotate 12compressdelaycompressmissingoknotifemptycreate 0640 root adm}```
Package: gohttp
Warning: This library currently ships with a shared object of gohttplib
compiled for OSX. It will not work on other platforms at the moment.Seehttps://github.com/shazow/gohttplibfor details.Usagefrom gohttp import route, run

@route('/')
def index(w, req):
    w.write("%s %s %s\n" % (req.method, req.host, req.url))
    w.write("Hello, world.\n")

run(host='127.0.0.1', port=5000)LicenseMIT.
Package: goingnats
a Python NATS clientWhy?I likeNATSa lot.asyncioless so hence never played with theofficial Python client.While I got a lot out ofnats-python, it has
some rough edges I would rather not have to work around as an end user.I wanted to teach myself enoughsocketprogramming and gain a deeper understanding
of theNATS protocol.a Python NATS client that fits the way I use NATS.Client must have a nameClient PONGs on PING behind the sceneEncourage to only use Client as a contextmanagernon blocking when receiving messages from subscriptionsblocking on request / responseIt is far from feature complete.It implements the features I use, which may be all you need too.How?A contrived example illustrating how anapplicationwould interact with apublisherand arespondervia NATS.Fire up NATS on your dev box andpython -m goingnatsto see it run.importdatetimeasdtimporttimedefpublisher():"""publish time.time() every second"""withClient(name="publisher")asclient:whileTrue:time.sleep(1)client.publish(subject=b"time.time",payload=f"{time.time()}".encode())threading.Thread(target=publisher,daemon=True).start()defresponder():"""respond to request for today with the date"""withClient(name="responder")asclient:client.subscribe(subject=b"today")client.subscribe(subject=b"add")whileTrue:forrequestinclient.get():ifrequest.subject==b"today":# slow respondertime.sleep(2)# will format the date according to payload or defaults to ...format=request.payload.decode()ifrequest.payloadelse"%Y-%m-%d"response=f"{dt.date.today():{format}}".encode()elifrequest.subject==b"add":response=_int_to_bytes(sum(json.loads(request.payload)))else:continueclient.publish(subject=request.inbox,payload=response,)threading.Thread(target=responder,daemon=True).start()# applicationwithClient(name="consumer")asclient:print("--- one ---")print(one(subject=b"time.time"))print("--- client.subscribe + client.request ---")client.subscribe(subject=b"time.time")received=0response=Nonewhilereceived<5:# waits for at most 10 ms for messagesformessageinclient.get(wait=10):print(message)received+=1ifreceived==3andresponseisNone:# publishpublish(subject=b"time.time",payload=b"hijack")# request response are blockingresponse=client.request(subject=b"today",payload=b"%Y%m%d")print(response)print("--- request ---")print(request(subject=b"add",payload=b"[1, 2, 3]"))try:print(request(subject=b"today",wait=100))exceptTimeoutErrorase:print(e)# UserWarning: NOP - out of context managerclient.publish(subject=b"out.of.context.manager")onemore thing ... three actually>>>fromgoingnatsimportone>>>one(subject=b">")Message(...)oneis a very handy little helper that waits to receive a message on a given subject and returns it.>>>fromgoingnatsimportrequest>>>request(subject=b"add",payload=b"[1, 2, 3]")Message(payload=b"6")requestis another handy helper when developing services running on NATS.>>>fromgoingnatsimportpublish>>>publish(subject=b"something.important",payload=b"OR_NOT")publishis similar torequestbut does not expect a response ... another convenient helper.
Package: gojot
gojotgojotis a modern command-line journal that is distributed and encrypted by default.Ok. But, really,gojotis just a fancy wrapper forgitandgpg` that allows you to maketime-stampedentries to encrypted documents while keeping the entire document synchronized in it a ``gitrepository.Here’s what it looks like in action (check if its encrypted):InstallMake sure you havegpgandgitinstalled, and then:$ pip install gojotHistory2.1.0 (2016-10-16)Final git-based symmetric-key based gojot released1.2.0 (2016-08-18)Final non-git-based symmetric-key based sdees released0.1.0 (2017-05-30)Non-git based sdees released