Saravanan666/pypi-org huggingface dataset:
Package: grumbo
Easy enums for Python.>>>RGB=StringEnum(['Red','Green','Blue'])>>>RGB.Red'Red'Contents1Installation2Features3Use4Contributing4.1Installing for development4.2Running the tests4.3Adding documentation5Credits1InstallationInstallezenumwith:pipinstallezenum2FeaturesPure Python.Compatible with Python 3.5+.Easy creation of usefull enum objects.String enums with unified value and name attributes.3UseStringEnumEasilly get a string enum from a string list.4ContributingPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help.4.1Installing for developmentClone:gitclonegit@github.com:shaypal5/ezenum.gitInstall in development mode with test dependencies:cdezenumpipinstall-e".[test]"4.2Running the testsTo run the tests, use:python-mpytest--cov=ezenum4.3Adding documentationThis project is documented using thenumpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please followthese conventions.5CreditsCreated by Shay Palachy (shay.palachy@gmail.com).
Package: grump
grumpGrep for Unstructured Multiline ParagraphsAmultiline paragraphis a string in which there are no 'empty
lines' - two newlines separated only by whitespace. For example
givendata.txt:This is
one multiline
paragraph.

This is
another
multiline
paragraph.

This one is too!grumptakes a file and a list of strings and outputs all multiline
paragraphs of this file containing each string in the list. For
example:$ grump -f data.txt this one
This is
one multiline
paragraph.

This one is too!Installationpython3 -m pip install grumpUsageusage: grump [-h] [-w] [-c] [-f FILENAME] regex [regex ...]

Grep for unstructured multiline paragraphs

positional arguments:
  regex                 the string or regular expression to match against

optional arguments:
  -h, --help            show this help message and exit
  -w, --word            only match whole words
  -c, --case-sensitive  Perform case sensitive matching. By default, grump is case insensitive.
  -f FILENAME, --file FILENAME
                        the file to grep (default: STDIN)ExamplesFrom the CLIgrump -f testdata.txt amy fred
grump amy fred < testdata.txt
cat testdata.txt | grump amy fred
grump --file testdata.txt amy fred --word --case-sensitive
grump -f testdata.txt amy fred -w -cAs a moduleimport grump

# with text from textfile.txt
with grump.Grump('textfile.txt', ('amy','fred')) as matches:
    for p in matches:
        print(p)

# with text from STDIN
with grump.Grump(None, ('amy','fred')) as matches:
    for p in matches:
        print(p)

# with non-default matching rules
with grump.Grump(
        'textfile.txt',
        ('amy','fred'),
        case_sensitive=True,
        word=True
    ) as matches:ContributingFork the repositoryhttps://github.com/andrewsolomon/grumpMake some changesUpdatetests/test_grump.pyMake sure tests passblack grump/grump.py
black tests/test_grump.py
pytestMake a pull requestReleasingGive it a new version:bump2version --no-commit --no-tag patchand remove--no-commitand--no-tagwhen you're sure. Thengit push
git push --tagsNote, "patch" indicates a bugfix or minor improvement.If there are new, backward compatible features change "patch" to "minor"If there arebackward incompatiblechanges change "patch" to "major"Package it:python setup.py clean --all
rm -rf dist/ build/ grump.egg-info/ grump_andrewsolomon.egg-info/
python setup.py sdist bdist_wheelUpload it to test pypi:twine upload --repository-url https://test.pypi.org/legacy/ dist/*install it from there:python3 -m pip install --upgrade -i https://test.pypi.org/simple/ grumpThen upload it to pypi.orgtwine upload dist/*
Package: grun
A simple example, turn your methods into gui formsfrom grun import grun

@grun
def my_window( name, passwd, cookie=["1 day","1 week","1 month"] ):
    '''Hello, I'm the method's doc

    name:    Login
    passwd:  Password
    cookie:  How long ?
    '''
    if name == passwd:
        return True
    else:
        grun("Set login == password !")

print my_window(cookie="1 day")will display :Works on Linux/BSD, Windows and Mac using Tk framework (or pygtk when available)Seemore infosVersion 0.14 (2009/10/05):bugfix : use of the grun decorator was buggued (func_closure)local config enabled, if the conf file is in the root appVersion 0.13 (2009/10/03):fix: gtk number-widget wasn’t initialized when value was Nonetk iconapp simulate now a grunapp (not a popup’app anymore)Version 0.12 (2009/10/03):tk popup should work as expected on win32 (no more tk.mainloop) !!!!!!!tk winform should focus on first entry now (seems not work on win ?!)popup/popapp actions wich return something returns it after grun.popupVersion 0.11 (2009/10/01):clipboard manager available grun.clipboardbetter shortcut grun.popup()better shortcut grun.form()popup menu works with any types of valuepopup menu support submenu too !tk: text widget with usable scrollbars nowtk: fix in msgbox (always of type error)tk: home-made-combobox, replaced by Tk.OptionMenutk: better simulation of tk popapp/popupmenu (no more ‘close’ entry)Version 0.1 (2009/09/28): Initial Public Release
Package: grundkurs-theme
grundkurs_themeA JupyterLab extension.RequirementsJupyterLab >= 4.0.0InstallTo install the extension, execute:pipinstallgrundkurs_themeUninstallTo remove the extension, execute:pipuninstallgrundkurs_themeContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the grundkurs_theme directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstallgrundkurs_themeIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedgrundkurs_themewithin that folder.Testing the extensionFrontend testsThis extension is usingJestfor JavaScript code testing.To execute them, execute:jlpm
jlpmtestIntegration testsThis extension usesPlaywrightfor the integration tests (aka user level tests).
More precisely, the JupyterLab helperGalatais used to handle testing the extension in JupyterLab.More information are provided within theui-testsREADME.Packaging the extensionSeeRELEASE
Package: grunnlag
GrunnlagIdeaGrunnlag is a Schema Provider for the Bergen Client accessing your Arnheim FrameworkPrerequisitesBergen (and in Conclusion Grunnlag) only works with a running Arnheim Instance (in your network or locally for debugging).UsageIn order to initialize the Client you need to connect it as a Valid Application with your Arnheim InstancefrombergenimportBergenclient=Bergen(host="p-tnagerl-lab1",port=8000,client_id="APPLICATION_ID_FROM_ARNHEIM",client_secret="APPLICATION_SECRET_FROM_ARNHEIM",name="karl",)In your following code you can simple query your data according to the Schema of the DatapointExample 1:fromgrunnlag.schemaimportNoderep=Representation.objects.get(id=1)print(rep.shape)Access a Representation (Grunnlags Implementation of a 5 Dimensional Array e.g Image Stack, Time Series Photography) and display the dimensionsExample 2:fromgrunnlag.schemaimportRepresentation,Samplefrombergen.queryimportTypedGQLsamples=TypedGQL("""query {samples(creator: 1){idrepresentations(name: "initial", dims: ["x","y","z"]) {idstore}}}""",Sample).run({})forsampleinsamples:print(sample.id)forrepresentationinsample.representations:print(representation.data.shape)Get all Samples and include the representations if they have the name "initial" and contains the required dimensions. (An automatically documented and browsable Schema can be found at your Arnheim Instance /graphql)Example 3:fromgrunnlag.schemaimportRepresentation,Samplefrombergen.queryimportTypedGQLimportxarrayasxrmassive_array=xr.DataArray(da.zeros(1024,1024,100,40,4),dims=["x","y","z","t","c"])rep=Representation.objects.from_xarray(massive_array,name="massive",sample=1)The Grunnlag Implementation allows for upload of massive arrays do to its reliance on Xarray, dask, and zarr, combined with
S3 Storage on the Backend. Client Data gets compresed and send over to the S3 Storage and automatically added to the system.
(Permissions required!)Example 4:fromgrunnlag.schemaimportRepresentation,Samplefrombergen.queryimportTypedGQLimportxarrayasxrimportnaparirep=Representation.objects.get(name="massive",sample=1)withnapari.gui_qt()asgui:viewer=napari.view_image(rep.data.sel(c=0).data)Combined with Napari that is able to handle dask arrays, data visualization of massive Datasets becomes a breeze as only required chunks are downloaded form the storage backend.Testing and DocumentationSo far Grunnlad does only provide limitedunit-tests and is in desperate need of documentation,
please beware that you are using an Alpha-VersionBuild withArnheimPydanticRoadmapThis is considered pre-Alpha so pretty much everything is still on the roadmapDeploymentContact the Developer before you plan to deploy this App, it is NOT ready for public releaseVersioningThere is not yet a working versioning profile in place, consider non-stable for every releaseAuthors**Johannes Roos ** -Initial work-jhnnsrsSee also the list ofcontributorswho participated in this project.LicenseAttribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)AcknowledgmentsEVERY single open-source project this library used (the list is too extensive so far)
Package: grunnur
Grunnur, a base layer for GPGPUWhat's with the name?"Grunnur" means "foundation" in Icelandic.What does it do?Grunnur is a thin layer on top ofPyCUDAandPyOpenCLthat makes it easier to write platform-agnostic programs.
It is a reworkedcludasubmodule ofReikna, extracted into a separate module.Warning:The current version is not very stable and the public API is subject to change as I'm transferring the functionality from Reikna and extending it to support multi-GPU configurations. Bug reports are welcome, and especially welcome are any suggestions about the public API.Main featuresFor the majority of cases, allows one to write platform-independent code.Simple usage of multiple GPUs (in particular, no need to worry about context switching for CUDA).A way to split kernel code into modules with dependencies between them (see Modules and Snippets).Various mathematical functions (with complex numbers support) organized as modules.Static kernels, where you can use global/local shapes with any kinds of dimensions without worrying about assembling array indices fromblockIdxandgridIdx.A temporary buffer manager that can pack several virtual buffers into the same physical one depending on the declared dependencies between them.
Package: grunt
Grunt=====Grunt make slideshow. Grunt make slideshow from text file.Installation------------sudo pip install gruntExample-------$ cat examples/fruit.gruntHere is a presentation about fruitsIt starts with some apples ... http://farm4.static.flickr.com/3139/2780642603_920207d6cd_o.jpg... followed by some pears. http://farm1.static.flickr.com/59/214356955_aba23e7b13_o.jpgWant something more exotic?http://farm3.static.flickr.com/2745/4346213550_43117ec8fc_o.jpghttp://farm5.static.flickr.com/4023/4405120042_8165106b6e_o.jpg(fin) http://farm1.static.flickr.com/176/425537870_7bf42a21cb_o.jpg$ grunt examples/fruit.grunt > my_fruity_presentation.html$ head my_fruity_presentation.head<!doctype html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" /><title>Here is a presentation about fruits</title><link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css"><style type="text/css" media="screen">$ open my_fruity_presentation.htmlGrunt not extensible. Grunt not customizable. Grunt only make slideshow.
Package: grunt-django
django-grunt============Managing Grunt with runserver and Grunt initialization for your project.Inspired to [Brandon Konkle's post](http://lincolnloop.com/blog/simplifying-your-django-frontend-tasks-grunt/)Installation----------From command line```pip install grunt-django```In your settings.py:```pythonINSTALLED_APPS = (...,'grunt')```optional:```pythonimport osBASE_DIR = os.path.dirname(os.path.dirname(__file__))GRUNTFILE_ROOT = os.path.join(BASE_DIR, 'MY_GRUNTFILE_DIR')```Usage----django-grunt provide 2 management commands:1.```manage.py gruntinit```which creates a package.json and Gruntfile.js2.```manage.py gruntserver```Run this command instead of ```manage.py runserver``` for running django server along with grunt. This is helpful when you use livereload and watch.
Package: gruntest
前置安装allure并配置好环境变量项目根目录新建 hooks.py 实现动态扩展函数编写测试文件代码执行测试作用graphql, restful
HTTP/HTTPS 接口测试工具，需要编写代码example# testcase.pyfromgruntest.grunnerimportGrunnerfromgruntest.schemasimportConfig,TestStep,RequestSchemaclassTestRunner(Grunner):config=Config(base_header={"Host":"49.232.203.244:1339"})steps=[TestStep(name='百度',request=RequestSchema(url='http://www.httpbin.org/get',method='get',headers={"token":"123"},params={"limit":5,"page":1}),extra={"code":"$.args.limit"}),TestStep(name='百度',request=RequestSchema(url='http://www.httpbin.org/get',method='get',headers={"token":"123"},params={"limit":5,"page":"${sum2('$code')}"}),extra={"code":"$.args.limit"},expect={"$.code":"code"})]
Package: gruvbox-factory
gruvbox-factory 🏭"The main focus when developing gruvbox is to keep colors easily distinguishable, contrast enough and still pleasant for the eyes"-morhetzA simpleclitoconvertmanufacture agruvboxthemed wallpaper;Now supports "hipster" mode, passing image paths as arguments;Now has two different palettes:panther"pink" andsnoopywhite;Installation ⬇️pip3 install gruvbox-factoryUsage ⌨️Theclihas two modes:🔮 wizard: typegruvbox-factoryanywherein your terminal and folllow the instructions ✨💽 hipster: typegruvbox-factory -hand check how to use in CLI mode 😉Credits 🎥📦 Usingmorhetz's gruvbox color scheme;🐈MadewithSchrodinger-Hat's ImageGoNord, but with the gruvbox palette;💄Text User Interface (TUI)made withrichContributing 💕⭐ If you like it, leave yourstarin this project💟 If you would like to complain/suggest/contribute to this project,feel free to open a issue✏️ Add your name in the"Contributorssection after when opening a PRContributors ✏️
Package: gruvboxsphinx
gruvbox-sphinxSphinx HTML theme, forked fromautophagy/Insegel, with modifications to the stylesheet for visual similarity to theGruvbox Vim theme.Code-block syntax highlighting was adapted fromdaveyarwood/gruvbox-pygments.See Usage for installation and configuration instructions and Sample for a preview screenshot.UsageInstall withpip.pipinstallgruvboxsphinxSpecify gruvbox-sphinx to be your project's HTML theme under theconf.pyfile.html_theme="gruvboxsphinx"Sample
Package: grvlms-discovery
Installationpip install git+https://github.com/groovetch/grvlms-discoveryUsagegrvlms plugins enable discovery
grvlms discovery config -i (Interative Mode)
grvlms config save
grvlms local quickstartConfigurationDISCOVERY_INDEX_NAME(default:"catalog")DISCOVERY_MYSQL_DATABASE(default:"discovery")DISCOVERY_MYSQL_USERNAME(default:"discovery")DISCOVERY_MYSQL_PASSWORD(default:"{{ 8|random_string }}")DISCOVERY_SECRET_KEY(default:"{{ 20|random_string }}")DISCOVERY_OAUTH2_KEY(default:"discovery")DISCOVERY_OAUTH2_KEY_DEV(default:"discovery-dev")DISCOVERY_OAUTH2_SECRET(default:"{{ 8|random_string }}")Release Note 1.0.8hotfix/EDT-339-fixing-templateRelease Note 1.0.7edt-339/updating-hook-templatehotfix/edt-120-update-interactiveLicenseThis software is licensed under the terms of the AGPLv3.
Package: grvlms-ecommerce
Installationpip install git+https://github.com/groovetch/grvlms-ecommerceUsagegrvlms plugins enable ecommerce
grvlms ecommerce config -i (variable configuration option)
grvlms local start
grvlms local initConfigurationECOMMERCE_MYSQL_DATABASE(default:"ecommerce")ECOMMERCE_MYSQL_USERNAME(default:"ecommerce")ECOMMERCE_MYSQL_PASSWORD(default:"{{ 8|random_string }}")ECOMMERCE_SECRET_KEY(default:"{{ 20|random_string }}")ECOMMERCE_OAUTH2_KEY(default:"ecommerce")ECOMMERCE_OAUTH2_SECRET(default:"{{ 8|random_string }}")ECOMMERCE_API_KEY(default:"{{ 20|random_string }}")LicenseThis software is licensed under the terms of the AGPLv3.Release NoteMerged edt-45/adding-ecommerce-configuration
Package: grvlms-figures
Figuresis a data retrieval and reporting app for Open edX; this is a plugin for Grvlms that allows quick and easy integration in an Open edX platform. It works both locally and on a Kubernetes-based platform.InstallationThis plugin requires grvlms>=1.0.4. Also, you should have installed grvlms from source, and not from a pre-compiled binary.pip install grvlms-figuresThen, to enable this plugin, run:grvlms plugins enable figuresYou will have to re-generate the environment and rebuild the “openedx” docker image:grvlms config save
grvlms images build openedxYou will then have to run LMS migrations. To do so, run:grvlms local initThis last step is unnecessary if you run insteadgrvlms local quickstart.You should then be able to access the Figures dashboard athttp://<yourlmshost>/figures. On a local instance, you should be able to access it athttp://localhost/figures.Release Version 1.0.2EDT-302: Applying Custom Frontend.
Package: grvlms-notes
Installationpip install git+https://github.com/groovetch/grvlms-notes

To enable student notes for a specific course, you should go to the course advanced settings in the studio, and set "Enable Student Notes" to "true". Then, hit "save changes".Usagegrvlms plugins enable notes
grvlms images build notes
grvlms notes config -i (variable configuration option)
grvlms local start
grvlms local initConfigurationNOTES_MYSQL_PASSWORD(default:"{{ 8|random_string }}")NOTES_SECRET_KEY(default:"{{ 24|random_string }}")OAUTH2_KEY(default:"{{ 8|random_string }}")NOTES_OAUTH2_SECRET(default:"{{ 24|random_string }}")NOTES_DOCKER_IMAGE(default:"groovetech/openedx-notes:{{NOTES_VERSION }}")NOTES_HOST(default:"notes.{{WILDCARD_DOMAIN }}")NOTES_MYSQL_DATABASE(default:"notes")NOTES_MYSQL_USERNAME(default:"notes")LicenseThis software is licensed under the terms of the AGPLv3.
Package: grvlms-socialoauth
Installationpip install git+https://github.com/groovetch/grvlms-socialoauthUsagegrvlms plugins enable socialoauthConfiguration::grvlms socialoauth config -i (Run interactively to config ID azure client and secret key)
grvlms socialoauth config -s (Set a configuration value base on format KEY=VAL)Azure Configuration::We must to setSOCIALOAUTH_AZURE_CLIENT_IDandSOCIALOAUTH_AZURE_SECRET_KEYvariable. (Get them in your azure-portal).
(If you don’t have Azure portal account yet, please register athttps://azure.microsoft.com/en-us/features/azure-portal)Authorized redirect URIs at Azure portal:https://{site_name}/auth/complete/google-oauth2/(more infomation athttps://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/)Make sureSOCIALOAUTH_ACTIVATE_AZUREis true.Set ENABLE_AZURE_PICTURE_PROFILE: true if you want to enable edx-azuresso appGoogle Configuration::We must to setSOCIALOAUTH_GOOGLE_CLIENT_IDandSOCIALOAUTH_GOOGLE_SECRET_KEYvariable. (Get them in Google API Console).
(If you don’t have account yet, please register athttps://console.developers.google.com)Authorized redirect URIs at Google API Console:https://{site_name}/auth/complete/google-oauth2/(more infomation athttps://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/)Make sureSOCIALOAUTH_ACTIVATE_GOOGLEis true.Set ENABLE_GOOGLE_PICTURE_PROFILE: true if you want to enable edx-googlesso appFinally::grvlms images build openedx (update Dockerfile)grvlms local start (If you run on Local ENV)grvlms socialoauth init (run migration to update Provider Configuration records)LicenseThis software is licensed under the terms of the AGPLv3.
Package: gr-xs
# gr_xs
Implementation of [arxiv:1407.4415](https://arxiv.org/abs/1407.4415) for nu-e W-Boson resonance with Doppler broadening.Install viapip install gr-xs.`Python import gr_xs gr_xs.sigma_erest(6.3e6) # Eq. (3),cross-sectionratio of electron at rest gr_xs.sigma_edopp(6.3e6, 'O') # Eq. (6),cross-sectionratio of bound electron in O `
Package: gryaml
Represent Neo4j graph data as YAML.FeaturesCreates nodes and relationships in a Neo4j graph database from YAML using
PyYAML-specific tags.Operates at a whole-file level, as it uses custom YAML tags to deserialize
the data to live objects.Developed for loading data for integration testing.Requires a running Neo4j instance and instantiates actual database entities,
rather than just generating abstract/unboundpy2neo.Nodeandpy2neo.Relationshipobjects. This is due topy2neoversion
1.6 not supporting node labels with abstract nodes. This might be changed if
we are able to migrate off of 1.6 in the near future.VersionsPythonTested with both Python 2.7 and 3.6.Neo4jShould work with anything >= 2.0. Tested with 3.3.5. Running the
tests requires 2.3 as it uses theDETACH DELETEfeature to drop the
database.py2neoCurrently supports 1.6 and 2.0.pyyamlTested with PyYAML v3.13.TestingRunning the tests requires an installed, running Neo4j instance. Pass the URL
through the environment variableNEO4J_URI.FutureMake nodes just dicts with ‘labels’ and ‘properties’ keys? Maybe make rels
dicts with ‘head’, ‘tail’, ‘type’ and ‘properties’ keys too?Add a context manager to register with PyYAML, create graph database
connection and then cleanup.Support locating nodes with a Cypher query as part of creating a
relationship.Addgryaml-dumpCLI tool to render database (or query result) as YAML.Test/supportruamel.yaml.Add ability to update & display schema.Laterpy2neo.   Dependent mainly on supporting later versions inpy2neo_compat.Documentation more complete & published to ReadTheDocs.History1.0.0 (2018-08-02)Require registration for YAML constructors & representers – this no longer
happens automatically as a side-effect of importing thegryamlpackage.Add “simple” constructors & representers, to convert Nodes or Relationships
to plain YAML structures or YAML structures tagged with ‘!gryaml.*’ to
plain Python structures.Reorganized repo so package is insrc/.Added more tests.Usepy2neo_compatas compatibility layer.0.4.0 (2017-08-30)Enable using application-specific tagsgryaml.nodeandgryaml.relto
construct instead of PyYAML’s general-purpose!python/object/apply:.0.3.1 (2016-10-28)Fix assumption that a non-Noneinstance ofGraphDatabaseServicein py2neo 1.6 would not beFalse.0.3.0 (2016-10-28)Fix so that it should mostly work with py2neo 1.6 in addition to py2neo 2.0.
py2neo 1.6 does not support abstract nodes without labels, so it must be used
against a live database, whereas py2neo 2.0 does not. (py2neo v3 support is
in progress.)0.2.0 (2016-07-05)Initial implementation of working constructors with some basic testing.0.1.0 (2015-11-11)First tagged release. No working code, just ideas of what the YAML might look
like. Not released on PyPI.