Saravanan666/pypi-org huggingface dataset:
Package: gladius
gladiusGladiusaka "gladius" is afull-stack web frameworkfacilitating web application development exclusively in purePython, eliminating the need for HTML, CSS, or JavaScript. It is built for those who prefer to use Python, providing access to features typically found in modern web frameworks.Gladius integrates basicHTML5elements,TailwindCSSstyling, andDaisyUIcomponents, built on top ofaiohttp,uvloop, andhtmx, allowing developers to concentrate on application logic and functionality, while the framework handles the UI/UX aspects. It also incorporates client-side routing typical of Single Page Applications (SPAs), promoting smoother transitions and increased interactivity.In essence, gladius offers a simplified and cohesive development experience, making it a practical choice for developers seeking a Python-centric approach to both frontend and backend development.Hello WorldfromrandomimportrandintfromgladiusimportGladius,Component,Eventfromgladius.daisyuiimportDaisyUIg=Gladius()d=DaisyUI(g)# callbacksasyncdefhello_button_click(button:Component,event:Event):v:int=randint(0,100)hello_card.data=f'Hello{v}'hello_button.data=f'Hello{v}'asyncdefworld_button_click(button:Component,event:Event):v:int=randint(0,100)world_card.data=f'World{v}'world_button.data=f'World{v}'# pagepage=d.Page(title='Hello world 0').add_class('p-10')page.add(vflex:=d.VFlex())# cardsvflex.add(hello_card:=d.Card('Hello'))vflex.add(world_card:=d.Card('World'))# buttonsvflex.add(join:=d.Join())join.add(hello_button:=d.Button('Hello',onclick=hello_button_click).add_class('btn-primary'))join.add(world_button:=d.Button('World',onclick=world_button_click).add_class('btn-secondary'))# routerg.route('/',page)app=g.get_app()if__name__=='__main__':g.run_app(host='0.0.0.0',port=5000)InstallpipinstallgladiusRun Examplesgitclonehttps://github.com/mtasic85/gladius.gitcdgladius
python-mvenvvenvsourcevenv/bin/activate
pipinstall.# https://picocss.comgunicornexamples.pico_0:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker# https://daisyui.comgunicornexamples.daisyui_layout_0:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker# daisyui hello world 0gunicornexamples.hello_world_0:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker# daisyui hello world 1gunicornexamples.hello_world_1:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker# daisyui hello world 2gunicornexamples.hello_world_1:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker# daisyui multi page 0gunicornexamples.multi_page_0:app--reload--bind'0.0.0.0:5000'--worker-classaiohttp.GunicornWebWorker
Package: glaft
GLAcier Feature Tracking testkit:glaftA Python package for assessing and benchmarking feature-tracked glacier velocity maps derived from satellite imagery. Includes demo Notebook examples using data from Kaskawulsh glacier, Canada. See ouruser manualfor more information.InstallationTry GLAFT without installing: We recommend running ourQuick Start notebook on MyBinder.org.For cloud access: We recommend using theGhub portal to launch GLAFT(registration required).For local installation: GLAFT is available on PyPI and can be installed viapip.pip install glaftLicenseGLAFT uses theMIT License.Contribution is always welcome!
Package: glagolitic-transliter
Glagolitic TransliterПростой транслитератор кириллицы в глаголицу.
Предоставляет классGlagoliticTransliterc одним методомtranslit, что принимает аргументом текст и возвращает его транслитерированную версию.Usage casefromgltransliterimportGlagoliticTransliterprint(GlagoliticTransliter.translit("Мал золотник, да дорог"))# Ⰿⰰⰾ ⰸⱁⰾⱁⱅⱀⰺⰽ, ⰴⰰ ⰴⱁⱃⱁⰳInstallingpipinstallglagolitic-transliter
Package: glamkit-collections
OverviewThis package contains common code for the SFMOMA website and collection
projects, such as:Abstract collection models.Database routers.Elastic Search integration.Abstract and concrete modelsYou must implement concrete versions of each abstract collection model
in an app namedcollectionwithin your project.This will allow you to define different methods and behaviour for the
models in each project (as if they were proxy models), but without any
foreign key problems (as with proxy models).Even if multiple projects access a shared database with different
concretecollectionimplementations, only one set of migrations will
be defined in thecollection_migrationsapp, and they can be applied
by any project.Model import paths will be the same, so it should be possible to swap in
a different concrete implementation by factoring it out of the project
into a standalone app and then substituting it for another.Projects that use acollectionapp MUST include the following
setting to ensure the database is consistent across projects:MIGRATION_MODULES = {
    'collection': 'collection_migrations',
}These migrations are stored in the top levelcollection_migrationspackage, instead ofcollection_models.migrations, becausecollection_modelsis installed into projects and that confuses
Django.Shared Artwork ImagesAll projects should symlink theartwork_image_pathto a common
directory:COLLECTION_MODELS = {
    'artwork_image_path': 'collection-artwork-images',
}You can also configure options for artwork thumbnails:COLLECTION_MODELS = {
    'artwork_thumbnail_options': {'size': (250, 250)},
}Elastic Search IntegrationInstall thecollection_models.searchapp and use theindex_collectionmanagement command to populate the search index:$ ./manage.py index_collection
Package: glance
Glance is an OpenStack project that provides services and associated libraries
to store, browse, share, distribute and manage bootable disk images,
other data closely associated with initializing compute resources,
and metadata definitions.Use the following resources to learn more:APITo learn how to use Glance’s API, consult the documentation available
online at:Image Service APIsDevelopersFor information on how to contribute to Glance, please see the contents
of the CONTRIBUTING.rst in this repository.Any new code must follow the development guidelines detailed in the
HACKING.rst file, and pass all unit tests.Further developer focused documentation is available at:Official Glance documentationOfficial Client documentationOperatorsTo learn how to deploy and configure OpenStack Glance, consult the
documentation available online at:Openstack GlanceIn the unfortunate event that bugs are discovered, they should be
reported to the appropriate bug tracker. You can raise bugs here:Bug TrackerRelease notesTo learn more about Glance’s new features, optimizations, and changes
between versions, consult the release notes online at:Release NotesOther InformationDuring each design summit, we agree on what the whole community wants
to focus on for the upcoming release. You can see image service plans:Image Service PlansFor more information about the Glance project please see:Glance Project
Package: glance-check
Glance checkTooling for glance operators to verify the
health of/diagnose their Glance service.Usage: glance-check [-h] [–connection] [–createimage] [–getimage][–updateimage] [–all] [–testimageid TESTIMAGEID]
[–configfile CONFIGFILE] [–envvar]optional arguments:-h,--helpshow this help message and exit--connection,-cChecks if a connection to glance can be established--createimage,-iChecks if an image can be created--getimage,-gChecks if an image can be retrieved--updateimage,-uChecks if image details can be updated--all,-aRuns all checks (except create image)--testimageidTESTIMAGEID,-tTESTIMAGEIDOverrides the default test image id--configfileCONFIGFILE,-CCONFIGFILESpecify a configuration file--envvar,-eUse environment variable configurationverrides the default test image idThe following environment variables must be set if environment variable configuration is used:OS_AUTH_URL     keystone API URL
OS_TENANT_NAME  keystone tenant name
OS_USERNAME     keystone username
OS_PASSWORD     keystone password
Package: glance_dom
Quickly reference DOM elements with minimal inspection.To learn more about Glance DOM visit theGlance Website.InstallationInstallation requirespip:pip install glance-domUsageInstantiate Glance DOM using a browser driver (for example,WebDriver).fromseleniumimportwebdriverfromglance_domimportGlanceDomdeftest_glance():driver=webdriver.Firefox()driver.get('http://quasimatic.org/glance')# Using the old waylanguages=driver.find_element_by_css_selector('h2#other-languages + ul > li')# Using Glanceglance=GlanceDom(driver)languages=glance.get_element('Other Languages > li')print(languages.text)You can also get a list of matching elements usingget_elementsExceptionsget_elementwill raiseNoReferenceErrorif thereferencedid not match any elements.
Similarly it will raiseTooBroadReferenceErrorit there are more than one match.
Package: glances-api
A Python client for interacting withGlances.This module is not official, developed, supported or endorsed by Glances.InstallationThe module is available from thePython Package Index.$pip3installglances_apiOr on a Fedora-based system or on a CentOS/RHEL machine with has EPEL enabled.$sudodnf-yinstallpython3-glances-apiFor Nix or NixOS ispre-packed moduleavailable. The lastest release is usually present in theunstablechannel.$nix-env-iAnixos.python3Packages.glances-apiUsageThe fileexample.pycontains an example about how to use this module.Licensepython-glances-apiis licensed under MIT, for more details check LICENSE.
Package: glance-store
Glance Store LibraryGlance’s stores libraryThis library has been extracted from the Glance source code for the
specific use of the Glance and Glare projects.The API it exposes is not stable, has some shortcomings, and is not a
general purpose interface. We would eventually like to change this,
but for now using this library outside of Glance or Glare will not be
supported by the core team.License: Apache License, Version 2.0Documentation:https://docs.openstack.org/glance_store/latest/Source:https://opendev.org/openstack/glance_store/Bugs:https://bugs.launchpad.net/glance-storeRelease notes:https://docs.openstack.org/releasenotes/glance_store/index.html
Package: glance-tempest-plugin
This directory contains additional Ginder tempest tests.See the tempest plugin docs for information on using it:https://docs.openstack.org/tempest/latest/plugin.html#using-pluginsTo run all tests from this plugin, install glance into your environment. Then
from the tempest directory run:$ tox -e all -- glance_tempest_pluginIt is expected that Glance third party CI’s use thealltox environment
above for all test runs. Developers can also use this locally to perform more
extensive testing.
Package: glanscan-sprokkel78
glanscan-sprokkel78A graphical user interface in PyGTK4 for use with the nmap binary for scanning your lan and performing portscans on Ubuntu and other Linux distro's.
It requires Python3.10 or higher and the PyGTK apps, it also relies on gnome-terminal for performing portscans.
Developed and tested on Ubuntu 23.10.Installation on Ubuntu 23.10$sudo apt install python3 python3-dev python3-pip python3-venv$sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-4.0 gir1.2-adw-1$sudo apt install gnome-terminal$python3 ./glanscan.pyAdded 'install.sh' script for system-wide installation.The startup shell script will be /usr/bin/glanscanThe application is installed in /usr/share/glanscan-sprokkel78The .desktop file is placed in /usr/share/applications/com.sprokkel78.glanscan.desktopAdded 'uninstall.sh' script for system-wide uninstallation.This will delete /usr/bin/glanscan and /usr/share/glanscan-sprokkel78,
This will also remove /usr/share/applications/com.sprokkel78.glanscan.desktopCheckhttps://www.github.com/sprokkel78/glanscanfor contributing, development features and pre-releases.Funding: Paypal email:sprokkel78.bart@gmail.com
Package: glap
glapA GitLab Artifact Puller / DownloaderQuick Startglapis a convenience tool to download artifacts of your frequently used GitLab repositories. Install viapipinstallglapBefore you can useglap, you have to setup a configuration file namedglap.toml.glapsearches the file at the following locations (in this order):./glap.toml~/.config/glap/glap.toml(default location for configuration files on your OS; here for Linux)It contains the following information:Remotes with correspondingurls and access-tokens:[remotes.myremote]url="https://gitlab.com"private_token="<my-private-token>"oauth_token="<my-oauth-token>"job_token="<my-job-token>"Note that there must be exactly one authentication token specified.Shortcuts for specific repositories. For example, the following shortcut points at thePDFsjob of themainbranch ofhttps://gitlab.com/name/repo.[shortcuts.myshortcut]remote="myremote"namespace="name"repository="repo"ref="main"job="PDFs"Any configured shortcut will appear as a subcommand, i.e. you can use it as followsglapmyshortcutAlternatively, you can specify the namespace and repository directlyglapdownload<namespace><repository>-j<job>--ref<branchortag>If no remote is given,glapwill use the first one in the configuration file. Otherwise, you can useglapdownload<namespace><repository>-rmyremotewheremyremoteis the name of the remote in the configuration file.Options--job(-j) specifies the job's name.--refspecifies the name of the branch or tag from where the job is located.--output(-o) specifies the download location.--temp(-t) downloads the artifact to a temporary location and opens the directory.--silent(-s) enables silent mode (exceptions only).--verbose(-v) enables verbose mode (e.g. print file list).
Package: gl-api-requester
France LeaderA Galaxy Life API requester in PythonGalaxy Life Python Api RequesterA simple pip package to make request on the Galaxy Life game API.Installationpip install gl-api-requesterUsagefromgl_api_requesterimport*try:requester=GLAPIRequester()# Alliance requestrequester.get_alliance(name="France Leader")requester.get_alliance_warpoint_leaderboard()# Leaderboard requestrequester.get_leaderboard_xp()requester.get_leaderboard_xp_from_attack()requester.get_leaderboard_rivals_wons()requester.get_leaderboard_warpoint()# Status requestrequester.get_status()# Users requestrequester.get_user_from_name('vadeledav')requester.get_user_from_id(player_id="268172")requester.get_search_user_by_name(player_name="vadeledav")requester.get_user_steam_account(player_id=76561198403360223)requester.get_user_platform_id(player_id=268172)requester.get_user_stats(player_id="268172")requester.get_user_count()exceptAPIErrorExceptionase:print(e.api_error)
Package: glare
Glare (from GLare Artifact REpository) is a service that provides access to a
unified catalog of structured meta-information as well as related binary data
(these structures are also called ‘artifacts’).Get Started:https://github.com/openstack/glare/blob/master/doc/source/quickstart.rstDocumentation:https://github.com/openstack/glare/blob/master/docSource:https://git.openstack.org/cgit/openstack/glareBugs:https://bugs.launchpad.net/glareBlueprints:** https://blueprints.launchpad.net/glareREST Client:** https://git.openstack.org/cgit/openstack/python-glareclientLicenseApache License Version 2.0http://www.apache.org/licenses/LICENSE-2.0
Package: glaredb
Python bindings for GlareDBCheck out theGlareDB repoto learn more.Use GlareDB directly in Python to query and analyzer a variety of data sources,
including Polars and Pandas data frames.importglaredbimportpolarsaspldf=pl.DataFrame({"A":[1,2,3,4,5],"fruits":["banana","banana","apple","apple","banana"],"B":[5,4,3,2,1],"cars":["beetle","audi","beetle","beetle","beetle"],})con=glaredb.connect()df=con.sql("select * from df where fruits = 'banana'").to_polars();print(df)# shape: (3, 4)# ┌─────┬────────┬─────┬────────┐# │ A   ┆ fruits ┆ B   ┆ cars   │# │ --- ┆ ---    ┆ --- ┆ ---    │# │ i64 ┆ str    ┆ i64 ┆ str    │# ╞═════╪════════╪═════╪════════╡# │ 1   ┆ banana ┆ 5   ┆ beetle │# │ 2   ┆ banana ┆ 4   ┆ audi   │# │ 5   ┆ banana ┆ 1   ┆ beetle │# └─────┴────────┴─────┴────────┘
Package: glaring-simulation
The Augmentation methods: this lib help simulation glaring phenomena in imageInstall:pip3 install glaring-simulationBasic using:from glaring_simulation import Glaring
glaring_testing = Glaring.Glaring()
img_path = "resource/image.jpg"
glaring_image = glaring_testing.predict(image_path=img_path)
cv2.imwrite("resource/glaring_image.jpg", glaring_image)ResultNormal imageGlaring image
Package: glartifacts
GlartifactsPython utility to analyze and clean up GitLab artifacts.Glartifacts is a tool designed to help GitLab administrators manage CI job
artifacts. The artifact expiration functionality provided by GitLab (11.6, as
of this writing) is primitive. The goal of this project is to design and
implement improved artifact expiration policies which act as a model for
future GitLab improvements.See thedocumentationfor more detail on
how glartifacts works and how to use it.RequirementsGlartifacts requires Python 3.It is also a tool for GitLab administrators, designed to run as root on the
GitLab server. It connects directly to the GitLab database and Gitaly gRPC
service.Warning: Backup your database and artifactsBe sure you have a GitLab backup before you start.Glartifacts modifies theci_builds.artifacts_expire_atcolumn in the GitLab
database. The next execution of theSidekiqbackground task willremoveCI artifacts from the database and file system. Once removed, artifacts
are non-recoverable.InstallationGlartifacts from PyPI using pip.$ sudo pip install glartifactsConfigurationGlartifacts requires access to the GitLab database and Gitaly server. The
default connection settings are based on a standard Omnibus install, but can be
modified for custom deployments via settings inglartifacts.conf. You can
also override individual settings per-invocation using environment variables.The table below lists the available configuration options:SectionOptionENV varDefaultpostgresdbnameGLARTIFACTS_DBNAMEgitlabhq_productionpostgresuserGLARTIFACTS_DBUSERgitlabpostgreshostGLARTIFACTS_DBHOST/var/opt/gitlab/postgresqlpostgresportGLARTIFACTS_DBPORT5432gitalyaddressGLARTIFACTS_GITALYADDRunix:/var/opt/gitlab/gitaly/gitaly.socketThe following paths are searched for the glartifacts.conf. Settings are merged
for each conf file found:Defaults>System Settings>User Settings.$HOME/.config/glartifacts/glartifacts.conf
/etc/glartifacts/glartifacts.conf
Package: glas
Genetic Lookup for Apt Substances (GLAS)Python module for solving the inverse design of materials.What is it?GLAS offers a helper class to facilitate the inverse design of new materials. All the genetic algorithm code is handled by theDEAPmodule.How to installThe source code is hosted on GitHub athttps://github.com/drcassar/glas.Binary installers for the latest released version are available at thePython Package Index. To install GLAS using pip runpipinstallglasDependenciesPython 3.6+DEAPExamplesSee theexamplesdirectory.How to citeCassar, D.R., Santos, G.G., and Zanotto, E.D. (2020). Designing optical glasses by machine learning coupled with genetic algorithms. ArXiv:2008.09187 [Cond-Mat, Physics:Physics].GLAS licenseGPLGLAS, Python module for solving the inverse design of glasses. Copyright (C) 2020 Daniel Roberto CassarThis program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.
Package: glasflow
Glasflowglasflow is a Python library containing a collection ofNormalizing flowsusingPyTorch. It builds uponnflows.Installationglasflow is available to install viapip:pipinstallglasflowor viaconda:condainstallglasflow-cconda-forgePyTorchImportant:glasflowsupports using CUDA devices but it is not a requirement and in most uses cases it provides little to no benefit.By default the version of PyTorch installed bypiporcondawill not necessarily match the drivers on your system, to install a different version with the correct CUDA support see the PyTorch homepage for instructions:https://pytorch.org/.UsageTo define a RealNVP flow:fromglasflowimportRealNVP# define RealNVP flow. Change hyperparameters as necessary.flow=RealNVP(n_inputs=2,n_transforms=5,n_neurons=32,batch_norm_between_transforms=True)Please seeglasflow/examplesfor a typical training regime example.nflowsglasflow uses a fork of nflows which is included as submodule in glasflow and can used imported as follows:importglasflow.nflowsasnflowsIt contains various bugfixes which, as of writing this, are not included in a current release ofnflows.Using standard nflowsThere is also the option to use an independent install of nflows (if installed) by setting an environment variable.exportGLASFLOW_USE_NFLOWS=TrueAfter setting this variableglasflow.nflowswill point to the version of nflows installed in the current python environment.Note:this must be set prior to importing glasflow.ContributingPull requests are welcome. You can review the contribution guidelineshere. For major changes, please open an issue first to discuss what you would like to change.CitingIf you use glasflow in your work please citeour DOI. We also recommend you also cite nflows following the guidelines in thenflows readme.
Package: glass
GLASS: Generator for Large Scale StructureThis is the core library for GLASS, the Generator for Large Scale Structure.
For more information, see the fulldocumentation.  There are a number ofexamplesto get you started.InstallationReleases of the code can be installed with pip as usual:pip install glassIf you are interested in the latest version of the code, you can pip-install
this repository:pip install git+https://github.com/glass-dev/glass.gitCitationIf you use GLASS simulations or the GLASS library in your research, pleasecite
the original GLASS paperin your publications.Getting in touchThe best way to get help about the code is currently to get in touch.If you would like to start a discussion with the wider GLASS community about
e.g. a design decision or API change, you can use ourDiscussionspage.We also have a publicSlack workspacefor discussions about the project.To keep up with new GLASS releases, you can receive GitHub release
notifications from this repository.  Alternatively, you can subscribe to our
announcement mailing list, which only receives 1 email/release.  To subscribe,
use themailing list page, or send an email tolistserv@jiscmail.ac.ukwith
any subject and the following message body:subscribe glass <Your name>where<Your name>is your full name, orANONYMOUSif you prefer. You will
be sent a confirmation email in return.