Saravanan666/pypi-org huggingface dataset:
Package: gibi
Gibi is a random word generator, based on Markov chains.It analyzes a text in order to deduce the probability of transition from one
character to another, and then generates a completely random word that will look
alike what you have feeded it as input.Build statusdevelop:master:UsageGibi can be used either as a CLI tool, either as a library.CLIA tool namedgibihelps you to generate a matrix file, and then use it to generate words. It is
self-documented using the–helpswitch, however here is a typical workflow.$ gibi analyze corpus.txt matrix.gibi
$ gibi generate matrix.gibiThis will analyze thecorpus.txtfile into thematrix.gibifile, and then produce 10 random
words.APIBasic usageIn its simplest form, using the API looks like:withcodecs.open(path,'r',encoding='utf-8')asf:n=FrenchNormalizer(f)m=Matrix()m.feed(n)print(m.make_word())You can also make something deterministic by providing a seed tomake_word().
Given the sameMatrixand the same seed, you will always get the same result.
The provided seed is anything thatPython’s randomwould accept. See the following example:assertm.make_word(42)==m.make_word(42)Using matrix filesYou will probably pre-generate a matrix file usinggibi analyze, and then load the resulting file
like thism=Matrix()withopen('matrix.gibi','rb')asf:m.load(f)print(m.make_word())This is much more performant, as generating the matrix can be time-consuming if the corpus is big.Legal termsThis project is written and copyrighted by its authors, as the Git log can
testify.It is released under the terms of the WTFPL. Please refer to the COPYING file
for more information.
Package: gibica
GibicaInterprète ? Interprète ? Cuillère ! -- King of Burgundy (Kaamelott).InstallationYou can install the package usingpiporpipenv. It requires Python 3.6.0+ to run.pip install gibicaUsageAfter have installed the software, you can run it as a CLI program with your Gibica script file as an argument.gibica script.gbcFor more information, you can display the help.gibica --helpFeel free to checkout the documentationhere!ContributingSeeCONTRIBUTINGfor more information about how to contribute to this project.CreditsThis project was initially born by the reading of the amazing series of articlesLet’s Build A Simple Interpreterwritten by Ruslan Spivak.I would also like to mention the projectCInterpretercreated by Slađan Kantar that inspired me during the development of this interpreter.
Package: gibiexport
This is the utility for converting github issues tobitbucket issues export
format.Supported features:Exporting issues titles, descriptions and commentsExporting issue metadata: milestone and assigneeConverting github labels or other issue data to bitbucket issue status,
priority, version, component or kind if properly configuredExporting issue tracker metadata: milestones are taken from github milestones,
components and versions are automatically generated if they were deduced from
issue data according to configurationUser and milestone renaming during exportExample usage::% ./gibiexport.py --user ZyX-I leycec/raiagent --output raiagent-issues.zip
Password for ZyX-I:
% # Now upload raiagent-issues.zip file to bitbucketThis work is licensed under aCreative Commons Attribution-ShareAlike 4.0
International License.
Package: giblets
Giblets is a simple plugin system based on the component architecture ofTrac.
In a nutshell, giblets allows you to declare interfaces and discover components
that implement them without coupling.Giblets also includes plugin discovery based on file paths or entry points along with
flexible means to manage which components are enabled or disabled in your application.The full documenation for giblets is available athttp://ltucker.github.com/giblets.InstallationTo install:$ pip install gibletsor:$ easy_install gibletsYou can also install the currentdevelopment versionof giblets withpip installgiblets==devoreasy_installgiblets==dev
Package: gibra
GibraGibra (Git Binary Repository Assistant) is a static binary repository
manager that uses Git as file storage for a single project.Overviewgibraprovides a simple way to store static binary files in Git.gibrajust pushes static files into adistfolder in a Git
repository, and annotates the changelog in Git tag comments.The Assistant depends on Python 3.UsagePreparationBefore running it, install the required dependencies with:$ ./gibra reqs > requirements.txt
$ pip3 install --user -r requirements.txtThen addgibrascript somewhere in your PATH.ConfigureCreate a Git repository to host your binaries.Put a.gibrarcfile to the root of this repository, following the
template below:{# Gibra will attempt to extract ZIP files with the following extensions:'allowed_extensions':['zip'],# In changelog comments, transform the following pattern in links to your# bugtracking system:'issue_key_pattern':r'#([0-9]{2,})',# Bugtracking links will have the following prefix:'bugtracking_url':'https://github.com/balena/artifacts/issues/',}RunningJust move to your root repository folder and do:$ gibraPoint your browser tohttp://127.0.0.1:5757/and enjoy!Why an Assistant?The idea is to ease using Git as a (small) binary artifacts repository.
Experienced users may not be interested in this interface, as the
command line may be more than enough. On the other hand, those who
aren’t used to Git may want to use it to ease performing the several
steps involved in maintaining a tiny artifacts (binary) repository.Those willing to adopt the idea for automating their publishing process
may extend/change this code in order to add their own processes.Working with branchesJust synchronize remote branches locally, like so:$ git checkout --track origin/branch_nameThen it will show in a selector in the top ofgibrainterface.When handling multiple branches, don’t forget to replicate the.gibrarcconfig file.Modifying the changelogWell, you cannot easily change git comments, but you can addgit notes.gibrawill consider whatever you write on the tag
notes as updates to the changelog entry.
Package: gibson-dataset
Gibson datasetThis python library is a tool to acquire and organize data using Gibson as simulation environment.CUDA supportThis library use Nvidia GPU to accelerate the operations over the data acquired using Gibson.
To do this,CuPyframework is used: it offers an interface highly compatible than NumPy,
but its functionalities are accelerated with CUDA.
To use CuPy's features you must have a Nvidia GPU and the CUDA Toolkit correctly installed.NB: you can configure gibson-dataset to work with NumPy or CuPy without any effort.
If you don't a Nvidia device correctly configured, NumPy is used as default framework.
Package: gic
GICAn image compressor that compresses all images in the working directory.GithubPyPITo execute:In Linux|Unix|macOS:GUI:Rungicin a shell.CLI:Rungic-cliin a shell.In Windows:Method 1:In acmdwindow, change working directory to your desired folder and rungic(GUI) orgic-cli(CLI).Method 2:Copy the filegic.exe(GUI) orgic-cli.exe(CLI) frompythoninstallation\Scripts\to your desired folder and double-click it.To use in your python code:A code that theusersets the compression level.GUIimportgic.main#change the working directory to whatever you wantgic.main.run()CLIimportgic.cli#change the working directory to whatever you wantgic.cli.run()To be quiet:A code thatyouset the compression level.
Set quality to 1|2|3|4 or a percentage. Lower percentage is lower size and lower quality. 1 Means best, 4 means worst.importgic.compressgic.compress.compress(quality)You can also pass another arguement to compress images in that directory.importgic.compressgic.compress.compress(quality,dir)
Package: gicd
gicdgicdcontains a Python function that provides a decorator that will automatcially create an issue on GitHub if a decorated function throws an exception. That's it!RequirementsThe GitHub CLI (gh)UsageDecorate a function with it:fromgicdimportgicd@gicd("zmarffy","test-repo",issue_label="explosion",exception_types=[IndexError,ValueError])deferror_prone_function():ifinput("Don't type anything; just hit enter... "):raiseValueError("Explosions!")print("All good!")Then call the function:error_prone_function()In the off chance that the function raises an exception, it will create an issue in the GitHub repo specified in the decorator. You can have the decorator do this with all exceptions (default behavior), or, if you specify theexception_typesparameter, it will only create an issue when exceptions of those types are thrown.This is mostly a joke package. It was my first library I ever wrote.
Package: gicha
Gicha CLIThe Python CLI for maintaining aGicha stack... or dozens of them!Use casesInstall gicha and list all possible parameterspip install gicha
python -m gicha --helpCreate a completely new projectpython -m gicha --app-name=gicha-baseThose configurations will be automatically saved ingicha.ymlat the end of the creation.Upgrade an already existing projectpip install gicha --upgrade
python -m gicha --app-name=gicha-base --output-dir=folder-already-createdNote the--upgradeand the--output-dir=folder-already-createdflags. The Gicha configuration that was used for the previous generation is saved ingicha.yml: it will be updated after the new upgrade.If you want to do an upgrade without re-specifying each parameter (there are a lot of them!), then gicha conveniently provides de--gicha-confparameter.
Just modify the existinggicha.yml(modify mandatorily theversionparameter so that it reflects the newly upgraded version,
modify optionally any other parameter depending on your needs), then:pip install gicha --upgrade
cd folder-already-created
python -m gicha --gicha-conf=gicha.yml --output-dir=.Activate Function URLIf your calls last longer than 30 seconds (but less than 15 minutes),
then you need to do the invocations throughFunction URL.Call Gicha--with-function-url=true. This will just save the configuration ingicha.ymlfor now.Activate Function URL. You can use either AWS Console or CLI.Set handler to app.minimalistic_handler. You can use either AWS Console or CLI.- TODO: automate step 2 and 3
Package: gickup
This is a script for backing up multiple git repos, keeping local timestamped
copies of all available branches.FeaturesSave state of all remote branches into local branches by current date/timeKeep track of backed up repositories, automatic batch backup of all known reposConfigure repository “indices”Scan servers for git repos to auto-add them (usingssh find)Scan github user for repos to auto-add themHow to use# Add new repo to backup list manuallygickupaddrepossh://user@example.comgickupaddrepohttps://github.com/user/example.gitgickupaddrepo/some/local/path# Optionally specify a target directorygickupaddrepossh://user@example.com/target/dir# Add github users / ssh server to watch for new reposgickupaddindex--typegithubusergickupaddindexgithub://anotherusergickupaddindexuser@example.com:remote/path# Then scan for unknown reposgickupupdaterepolist...# Or scan without configuringgickupupdaterepolist--typegithubuser...gickupupdaterepolistuser@example.com:remote/path...# Now do a backup of all known reposgickupdobackup# ... or a specific onegickupdobackup/local/backup/pathSettingsdateformatformatstring used to save remote branches into (backup/<date>/<name>)localbasepathdirectory where backups will be located by defaultreposconfigured repos and respective backup directoriesserverstuples of server-url (with user part) and server-path which will be scanned
for new repos by updaterepolist.github_usersa list of github usernames which will be scanned for new repos by
updaterepolist.Why “Gickup”?Well, every project needs a name andhttps://github.com/sciunto-org/gitbackupbeat me to the obvious one.On this occasion: Thank you to the one who gave me the suggestion.LicenseGickup is licensed under the AGPLv3 or later, seeLICENSE.txt.Apart from that I’m open to discussion. If you need a different license feel
free to contact me.See alsohttps://github.com/sciunto-org/gitbackuphttps://github-backup.branchable.com/
Package: gi-cli
giEasily create a .gitignoreUsage# Install it$pipinstallgi-cli# Add a language framework$giaddpython# Or add multiple$gitaddnodepython# Clear your gitignore$gitclear# Uninstall it$pipuninstallgi-cliNote: Mac or Linux users may have to usepip3instead ofpip.Build setupClone or fork the repository, then run the commands:poetryshell
poetryinstallAdd the pre-commit hooks:pre-commitinstallEditor settings{"python.formatting.provider":"black","editor.formatOnSave":true,"[python]":{"editor.insertSpaces":true,"editor.detectIndentation":false,"editor.tabSize":4},"python.linting.enabled":true,"python.linting.flake8Enabled":true,"python.linting.pylintEnabled":false,"python.pythonPath":"/Users/username-here/Library/Caches/pypoetry/virtualenvs/xxx-py3.7"}LicenseMIT
Package: gico
GiCo 🤌Git commit composer, or GiCo, is your ultimate answer to "keep your commits as
small as possible". Once you have staged whatever the mess you have accumulated
so far, rungico, and it will make you a neat and comprehensive commit
history.git add <your files>
gico --help
gicoGiCo provides you with a zero-friction way to do this> git log --all --decorate --oneline

e01f0cc (HEAD -> master) [bb:b] Impl | Similar message for each commit
358fcb1 [aa:a] Ref | Similar message for each commit, but different commit types
8c73fb5 [aa:a] Impl | Similar message for each commit, but different commit types
af31232 [aa:* bb:*] Impl | Stemmed representation
7f2c4bd [:b] Ref | hi
39f881c [:a] Impl | echo
4063a8e (tag: base) [:README] Impl | Yo
c9bd056 [:README] Impl |... instead of this> git log --all --decorate --oneline

e01f0cc (HEAD -> master) Minor changes (9999 files)
c9bd056 Initial message. Thank God, it finally works!!11RequirementsVim (for file-mediated prompt);Linux (for complete and vibrant life);InstallationFrom Githubpip install git+https://github.com/damurashov/Git-commit-message-composer.git@main -U --forceFrom PyPiIt might actually be published on PyPi. At the appropriate juncture. In the fullness of time.python3 -m pip install gico -U --forceI have this fancy new python 3.11 with "walruses", and stuffpython3 -m pip install gico -U --force --break-system-packagesAcknowledgementsSimple-term-menu,https://github.com/IngoMeyer441/simple-term-menuShlex,https://docs.python.org/3/library/shlex.htmlTiredhttps://pypi.org/project/tired/. This library is one big boilerplate, and its good!Known limitations / issuesIt does not handle renames well (yet);Announced featuresCache previous selection for file-module associations;Cache messages for further reuse;
Package: gid
GidGid is a small library for generating short globally unique, sortable uri safe identifiers.FeaturesGenerated ids are sortableGenerated ids carry creation time expressed in microsecondsGenerated ids are globally uniqueMinimal footprintHigh performanceInstallationWith pip,pipinstallgidor through poetrypoetryaddgidExample idsShmX2HaaUB9UQL02 
ShmX2JGvSk4ZyZ13 
ShmX2Ku8mDizRc23 
ShmX2MWQVL5J7022 
ShmX2OCegs4MdP22 
ShmX2Pu2MDVFHa02 
ShmX2RYngGET4Z32 
ShmX2TCM6v701q23 
ShmX2UrBjxNGYM11UsageGenerating idfromgidimportGuidsome_id=Guid()some_id.timestamp# contains timestamp expressed in millisecondsstr(some_id)# can be cast to a stringRecreating id from stringfromgidimportGuidmy_id=Guid()same_id=Guid(str(my_id))assertsame_id==my_idassertsame_id.timestamp==my_id.timestampId structureGenerated identifiers are case-sensitive, which means string functions (like lowercase or uppercase) on generated
identifiers may break it becauseSbt5LrD9iSAwb300is not the same value asSbt5LrD9iSAwB300.The below diagram represents single identifier's structure, which is 16-character long:Sbt5LrD9iSAwb300
    |      |      |
    +- first 7 characters for millisecond timestamp
           |      |
           +- next 7 characters is randomly generated hash
                  |
                  + last two characters to ensure uniqueness of guid in a single millisecondWithin 1 ms there can be (62^2 - 620) unique generated ids on a single machine.
Package: giddy
PySAL-giddy for exploratory spatiotemporal data analysisGiddy is an open-source python library for exploratory spatiotemporal data analysis and the analysis of geospatial distribution dynamics. It is under active development for the inclusion of newly proposed analytics that consider the role of space in the evolution of distributions over time.Below are six choropleth maps of U.S. state per-capita incomes from 1929 to 2004 at a fifteen-year interval.DocumentationOnline documentation is availablehere.FeaturesDirectional LISA, inference and visualization as rose diagramAbove shows the rose diagram (directional LISAs) for US states incomes across 1969-2009 conditional on relative incomes in 1969.Spatially explicit Markov methods:Spatial Markov and inferenceLISA Markov and inferenceSpatial decomposition of exchange mobility measure (rank methods):Global indicator of mobility association (GIMA) and inferenceInter- and intra-regional decomposition of mobility association and inferenceLocal indicator of mobility association (LIMA)Neighbor set LIMA and inferenceNeighborhood set LIMA and inferenceIncome mobility measuresAlignment-based sequence analysis methodsExamplesDirectional LISAMarkov based methodsRank Markov methodsMobility measuresRank based methodsSequence methods (Optimal matching)InstallationInstall the stable version released on thePython Package Indexfrom the command line:pip install giddyInstall the development version onpysal/giddy:pip install git+https://github.com/pysal/giddyRequirementsscipy>=1.3.0libpysal>=4.0.1mapclassify>=2.1.1esda>=2.1.1quantecon>=0.4.7ContributePySAL-giddy is under active development and contributors are welcome.If you have any suggestion, feature request, or bug report, please open a newissueon GitHub. To submit patches, please follow the PySAL developmentguidelinesand open apull request. Once your changes get merged, you’ll automatically be added to theContributors List.SupportIf you are having issues, please talk to us in thegitter room.LicenseThe project is licensed under theBSD license.BibTeX Citation@software{wei_kang_2023_7693957,
  author       = {Wei Kang and
                  Sergio Rey and
                  Philip Stephens and
                  James Gaboardi and
                  Nicholas Malizia and
                  Stefanie Lumnitz and
                  Levi John Wolf and
                  Charles Schmidt and
                  Jay Laura and
                  Eli Knaap},
  title        = {pysal/giddy: v2.3.4},
  month        = mar,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {v2.3.4},
  doi          = {10.5281/zenodo.7693957},
  url          = {https://doi.org/10.5281/zenodo.7693957}
}FundingAward #1421935New Approaches to Spatial Distribution Dynamics
Package: gideon-api
GIDEON - Python Interface (BETA)A package for accessing the GIDEON API using Python.Thegideon_apipackage provides functions to access the GIDEON API without the need of writing your own REST API queries.GIDEON AuthenticationThe GIDEON API requires the use of an API key, which can be set in two ways:The package will attempt to read the environment variable$GIDEON_API_KEY, which is set to your GIDEON API key.The API key can be set either in the terminal for the current terminal session only or the$HOME/.bashrcfile for persistent storage.
In either case, set the API key with the lineexport GIDEON_API_KEY=<YOUR API KEY>The GIDEON API key can be updated within Python by calling the functiongideon_api.set_api_key(<YOUR API KEY>).
Be sure to protect your key and not store it in code or a repository shared with others.Basic Installation$ pip install --user gideon-apiDeveloper InstallationInstall the Python Virtual EnvironmentInstall thepipenvPython environment manager.Install thepipenvPython package to your Python user install directory with the following terminal command:$python3 -m pip install --user pipenvInstall the developer virtual environment.
Change directory to the repository root and execute the terminal command$python3 -m pipenv install --devFrom the repository root or an of its subdirectories, enter the virtual environment with the command$python3 -m pipenv shellBuild and Install thegideon_apiPackage.From the root directory,$pip install -e .The-e/--editableflag allows the developer to not have to reinstall the package when the Python files are updated.Build the HTML DocumentationActivate the project's pipenv environment.
Follow step #3 from the "Install the Virtual Environment" section.Change directory to the repository'sdocs/directory, one level below the root of the repository.Runmake htmlto build the HTML documents in thebuild/subdirectory.
If thebuild/directory does not exist, it will be generated by themake htmlcommand.Functionality OverviewGIDEON ID CodesMany of the items in the GIDEON database use a unique identifier code, such as diseases, bacteria, drugs, etc.
Refer to theGIDEON ID Codes Documentationfor a list of lookup functions.Outbreak DataThe following command will query the GIDEON API for particular outbreak data:gideon_api.outbreaks_by_yeargideon_api.outbreaks_by_country_yeargideon_api.latest_outbreaks_by_countrygideon_api.outbreaks_by_diseasegideon_api.endemic_countries_by_diseasegideon_api.endemic_diseases_by_countryQuery the GIDEON API Directlygideon_api.query: This is the main function users should use to send commands to the GIDEON APIgideon_api.query_online: This version should be used to process the request without interacting with the cache and provides lower level response data.
Package: gidgethub
An asynchronousGitHub APIlibrary.Development statusInstallationGidgethub isavailable on PyPI.python3 -m pip install gidgethubGidgethub requires Python version 3.7 and up.GoalsThe key goal is to provide a base library for theGitHub APIwhich performs no I/O of its own (asans-I/Olibrary). This allows users to
choose whatever HTTP library they prefer while parceling out GitHub-specific
details to this library. This base library is then built upon to provide an
abstract base class to a cleaner API to work with. Finally, implementations of
the abstract base class are provided for asynchronous HTTP libraries for
immediate usage.Alternative librariesIf you think you want a different approach to the GitHub API,GitHub maintains a list of libraries.Aside: what’s with the name?I couldn’t think of a good name that was somehow a play on “GitHub” or somehow
tied intoMonty Python. And so I decided to play
off of GitHub’soctocatmascot and use my own
cat’s name, Gidget, in some way. Since “Gidget” somewhat sounds like
“git”, I decided to go with “gidgethub”.ChangelogSee the documentation for thefull changelog.
Package: gidgetlab
An asynchronousGitLab APIlibrary.This library is based ongidgethubfrom Brett Cannon,
an async GitHub API library.I liked the concept with the asynchronous andsans-I/Oapproach and decided to adapt it to the GitLab’s API.
All credit toBrett Cannonfor the initial library!Quick startHere is a complete example of a server that responds to
webhooks which will greet the author and say thanks
whenever an issue is opened:from gidgetlab.aiohttp import GitLabBot

bot = GitLabBot("beenje")


@bot.router.register("Issue Hook", action="open")
async def issue_opened_event(event, gl, *args, **kwargs):
    """Whenever an issue is opened, greet the author and say thanks."""
    url = f"/projects/{event.project_id}/issues/{event.object_attributes['iid']}/notes"
    message = f"Thanks for the report @{event.data['user']['username']}! I will look into it ASAP! (I'm a bot)."
    await gl.post(url, data={"body": message})


if __name__ == "__main__":
    bot.run()InstallationGidgetlab isavailable on PyPI.python3 -m pip install gidgetlabTo install web server support (e.g. foraiohttp,treq, ortornado), specify it as an extra dependency:python3 -m pip install gidgetlab[aiohttp]Note that the library is still in alpha development stage.GoalsThe key goal is the same asgidgethub(but for GitLab):
to provide an async base library for theGitLab APIwhich performs no I/O of its own (asans-I/Olibrary).Another goal is to easily write GitLab bots: applications that
run automation on GitLab, using GitLab WebHooks and API.
This was inspired byMariattaPyCon 2018 workshop:Build-a-GitHub-Bot Workshop.Alternative librariesIf you think you want a different approach to the GitLab API,GitLab maintains a list of libraries.