Saravanan666/pypi-org huggingface dataset:
Package: glassblower
GlassBlower v2
The Best Flask Boilerplate!!
GlassBlower is an implementation based on the Rails styleFist steps:In the directory where you want to do the project
$python glassblower.py$cd project#in your current directory, to generate the virtual envairoment
$ virtualenv venv$ source venv/bin/activate#this file contain Flask-libs
$ pip install -r requirements.txt#(optional)start database
$ python manage.py db init#(require 4) first migrate
$ python manage.py db migrate#(require 5) update database
$ python manage.py db upgrade#for run the server, is like django manage.py
$ python manage.py runserverConfig database and enviroment work:
config/config.pyAdd the routes in:
config/routes.pyGlassBlower File creator:
You can create views, models, api, login and scaffoldingCreate view example:$ python glassblower.py blow view –newFile whateverthis command make:app/views/whatever.py
app/templates/whatever.htmland modify:app/views/__init__.pyyou need to update route.py for routingCreate model example:$ python glassblower.py blow model –newFile whateverthis command make:
app/models/whatever.pyand modify:
app/models/__init__.pyyou need to do$ python manage.py db migrate
$ python manage.py db upgradeCreate login example:In GlassBlower is very simple make a login$ python glassblower.py blow loginYou need to do after:$ python manage.py db migrate
$ python manage.py db upgradeCreate api example:This command make rest api$ python glassblower.py blow api –newFile whateverYou need to do after modify models file:$ python manage.py db migrate
$ python manage.py db upgradeCreate scaffold example:$ python glassblower.py blow scaffold –newFile whateverYou need to do after modify models file:$ python manage.py db migrate
$ python manage.py db upgrade
Package: glassdoor
Python API for Glassdoor.comInstallFrom source:$ clone https://github.com/hackerlist/glassdoor
$ cd glassdoor
$ sudo pip install .
...From pip:$ sudo pip install glassdoor
...UseFrom the Command Line:$ glassdoor google
{
    'satisfaction': {
        'ratings': 1953,
        'score': 4.2
    },
    'ceo': {
        'reviews': 985,
        '%approval': 95,
        'name': u 'Larry Page',
        'avatar': u 'http://media.glassdoor.com/people/ceo/9079/google-larry-page.jpg'
    },
    'meta': {
        'website': u 'www.google.com',
        'reviews': 1953,
        'name': u 'Google',
        'Revenue': '$10+ billion (USD) per year',
        'Industry': 'Information Technology',
        'Founded': '1998',
        'connections': 0,
        'Competitors': 'Microsoft,Apple,Facebook',
        'score': None,
        'location': u 'Mountain View, CA',
        'logo': u 'http://static.glassdoor.com/static/img/sqLogo/generic-150.png?v=7fc3122vf',
        'Type': 'Company - Public\r\n\t\t\t\t\t\t(GOOG)',
        'size': [5000]
    },
    'salary': [{
        'position': u 'Software Engineer',
        'range': (78000, 215000),
        'samples': 4456,
        'mean': 118966
    }, {
        'position': u 'Software Engineer In Test',
        'range': (63000, 169000),
        'samples': 269,
        'mean': 104644
    }, {
        'position': u 'Senior Software Engineer',
        'range': (80000, 250000),
        'samples': 255,
        'mean': 150506
    }]
}
...Within Python:>>> from glassdoor import get
>>> x = get('dropbox')
>>> x
{'ceo': {'%approval': 100,
         'avatar': 'http://media.glassdoor.com/people/ceo/415350/dropbox-drew-houston.jpg',
         'name': 'Drew Houston',
         'reviews': 14},
 'meta': {'Competitors': 'Unknown',
          'Founded': 'Unknown',
          'Industry': 'Computer Software',
          'Type': 'Company - Private',
          'connections': 0,
          'location': 'San Francisco, CA',
          'name': 'Dropbox',
          'reviews': 16,
          'score': 4.6,
          'size': (None, None),
          'website': 'www.dropbox.com'},
          'salary': [{'mean': 112688,
                      'position': 'Software Engineer',
                      'range': (100000, 138000),
                      'samples': 4},
                     {'mean': 78912,
                      'position': 'Software Engineer',
                      'range': (69840, 87996),
                      'samples': 2},
                     {'mean': 60892,
                      'position': 'Technical Support Engineer',
                      'range': (56000, 66000),
                      'samples': 2}],
 'satisfaction': {'ratings': 16, 'score': 4.6}
}
Package: glass-engine
Glass Engine -- 相当易用的 Python 3D 渲染引擎Glass Engine是一个相当易用的 Python 实时 3D 渲染引擎，完全免费开源。使用Glass Engine你可以轻松地在你的 Python 界面程序中嵌入可交互的 3D 画面。首先，使用以下命令即可完成对Glass Engine的安装：pip install glass-engine如果你是中国区用户，则可以使用以下命令以加速安装过程：pip install glass-engine -i https://pypi.tuna.tsinghua.edu.cn/simple若发生安装错误，请参考Glass Engine 的安装教程进行解决。接下来，让我们通过一个简单例子来直观感受一下Glass Engine的使用过程：fromglass_engineimport*fromglass_engine.Geometriesimport*# 导入所有的基本几何体scene,camera,light,floor=SceneRoam()# 创建基本场景sphere=Sphere()# 创建一个球体模型sphere.position.z=1# 设置球体位置scene.add(sphere)# 将球体添加到场景中camera.screen.show()# 相机显示屏显示渲染结果上述代码首先使用SceneRoam创建出一个基本场景，包括了相机、光源、地板，然后往场景中添加了一个球体模型，最后将相机观察到的视口显示出来。可以看出，使用Glass Engine创建 3D 场景无需自定义任何类和任何函数，仅通过对象创建、方法调用的顺序程序结构就可完成场景的构建和显示，由此体现出Glass Engine高度的易用性，这也是Glass Engine相比于其他同类 3D 引擎的优势所在。运行上述程序，你将得到下图所示结果：你可以通过鼠标右键拖动以旋转视角，还可通过键盘按键WASDEC来在场景中漫游：A向左移动，D向右移动W向前移动，S向后移动E向上移动，C向下移动怎么样，是不是很简单、直观、易用？如果你感兴趣的话，就让我们开始接下来的 3D 渲染之旅吧！Github 项目主页Gitee 项目主页文档Release notestemp version 0.1.52添加深度树摇尝试修复 bug #3临时版本，代码结构有待优化version 0.1.51修复相机挂载到有缩放的节点位置不对的 bug将所有屏幕四边形绘制取消依赖顶点和索引去除不必要的 FBOversion 0.1.39兼容 Linux支持 PyInstaller 无配置打包version 0.1.36修复纹理数超过硬件限制问题version 0.1.35修改 PyPI 主页文档version 0.1.34:删除对 OpenEXR 的依赖，使用 opencv 读取 exrversion 0.1.33:修复打包错误version 0.1.31:将 OpenGL 封装模块分离出来并单独打包为python-glass将模型加载模块分离出来并单独打包为assimpy模型加载支持内置纹理添加对 metallic-roughness map 的支持version 0.1.30:兼容了 AMD 显卡修复仅有天空盒不显示 bug优化 shader 逻辑改进 Qt API 选择逻辑version 0.1.29:修改动态加载新功能代码 bugversion 0.1.28:修改 pcpp 冲突 bugversion 0.1.27:禁用滚轮修改 Python 3.7 f-string bugversion 0.1.26:添加 treeshake 功能，自动删除 glsl 无用函数添加功能自动剪裁功能，没有用到的功能不参与 glsl 编译version 0.1.25:添加 minifyc 进一步减小 glsl 代码体积，避免 OSError: 0x000000010 bugversion 0.1.24:修复 OSError: 0x000000010 bug修复 dynamic_env_map 开启再关闭失效 bug修复 cast_shadows 开启再关闭失效 bug修复 16bits 灰度图像加载错误 bugversion 0.1.23:修复后处理 bug修复半透明 bugversion 0.1.22:支持了 Python 3.12
Package: glassjar
Pickled database that provide Object-Relational Mapper.MotivationGlassjar is a database that provides a storage mechanism based on pickled Python objects
with ORM.Installationglassjarcan be installed by runningpip install glassjar.Example>>>fromglassjar.modelimportModel>>>>>>classItem(Model):...name:str...attrs:dict...>>>item=Item.records.create(name="item",attrs={"color":"red","shape":"rectangle"})>>>item.as_dict(){'name':'item','attrs':{'color':'red','shape':'rectangle'}}>>>item2=Item.records.create(name="item 2",attrs={"color":"blue","shape":"triangle"})>>>Item.records.first()Item(name='item',attrs={'color':'red','shape':'rectangle'})>>>Item.records.last()Item(name='item 2',attrs={'color':'blue','shape':'triangle'})>>>Check out ourdocumentationto learn more!
Package: glassnode
Glassnode Python APIGlassnode API client for python.DisclaimerThis is anon-officialpython client for the Glassnode API.
I am in no way affiliated, associated, authorized, endorsed by, or in any way officially connected with Glassnode, or any of its subsidiaries or its affiliates. The name Glassnode as well as related names, marks, emblems and images are registered trademarks of their respective owners.OverviewThis is a very simple and intuitive library for accessing the Glassnode API.Quick StartTo start using the library, first install the package.pipinstallglassnodeThen, just instanciate theGlassnodeClientproviding your API key and start making requests.
Here's a code sample that demonstrates how to get the full history of BTC addresses count.fromglassnodeimportGlassnodeClientapi_key=""client=GlassnodeClient(api_key)data=client.get("addresses","count",{"a":"BTC"})How to make requestsIn order to request any metric, just call thegetmethod on theGlassnodeClientinstance passing the following parameters:domain: the metric's domain.metric: the metric name.params: the dict of the query parameters to pass along to the request.The difference betweendomainandmetricis actually very simple. Glassnode has designed it's API in a very modular and intuitive way, grouping metrics by domain.
All metrics endpoints follow this pattern:https://api.glassnode.com/v1/metrics/{domain}/{metric}.
For a complete list ofdomains,metricsandparams, see their official API docs (https://docs.glassnode.com).Here's another example. This time we'll use the client to get both the STH and LTH NUPL for the market cycle from the 2016 halving to the 2020 halving, with a 24h resolution.fromglassnodeimportGlassnodeClientapi_key=""client=GlassnodeClient(api_key)since=1589148000# July 9 2016until=1468015200# May 11 2020resolution="24h"params={"a":"BTC","s":since,"u":until,"i":resolution}sth_nupl=client.get("indicators","nupl_less_155",params)lth_nupl=client.get("indicators","nupl_more_155",params)
Package: glasspy
Welcome to GlassPyGlassPy is a Python module for scientists working with glass materials.What is it?GlassPy's current focus is on providing an easy way to load SciGlass data and use GlassNet and ViscNet, two deep learning predictive models of glass and glass-forming liquid properties. Clickherefor the documentation.How to installThe source code is available on GitHub athttps://github.com/drcassar/glasspy.Binary installers for the latest released version are available from thePython Package Index.Before installing GlassPy, make sure that you havepytorchinstalled (see the instructionshere).To install GlassPy with pip runpipinstallglasspyDevelopmentGlassPy is under development. API changes are not only likely, but expected as development continues.How to citeIf GlassPy or GlassNet was useful in your research, please cite the following paper:Cassar, D.R. (2023). GlassNet: A multitask deep neural network for predicting many glass properties. Ceramics International 49, 36013–36024. 10.1016/j.ceramint.2023.08.281.GlassPy licenseGPLGlassPy, Python module for scientists working with glass materials. Copyright (C) 2019-2024 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: glassure
GlassureAn API and GUI program for data analysis of total x-ray diffraction data.
It performs background subtraction, Fourier transform and optimization of
experimental data.MaintainerClemens Prescher (clemens.prescher@gmail.com)Requirementspython 3.9+It is known to run on Windows, Mac OS X and Linux.InstallationThe Glassure package can be installed into your existing python distribution using pypi via:python-mpipinstallglassureThe graphical user interface for Glassure can then be started from by typingglassureif you want to make a shortcut for the desktop, the glassure executable can be found in the
python scripts folder.
Package: glasswall-visual-layer-comparison-tool-cli
glasswall-visual-layer-comparison-tool-cliCLI Tool that makes requests to the glasswall-visual-layer-comparison APIInstallationFirst Install:pip install glasswall-visual-layer-comparison-tool-cliUpgradingpip install glasswall-visual-layer-comparison-tool-cli --upgradeUsageglasswall_visual_comparison_tool_cli [OPTIONS] COMMAND [ARGS]dir-compareTo run the dir-compare command locally, pass in the URL of the API, the left and right directories -and the path to output logs to.glasswall_visual_comparison_tool_cli dir-compare -u <url> -l <left/directory> -r <right/directory> --log <log/directory>NOTE:The dir-compare command will NOT process subdirectories, it will log a warning when it encounters a folder in the left/right directories.OptionsOptionRequiredDescription-u, --urlRequiredURL for the GW Comparison API-l, --leftRequiredDirectory for the original files(the left side of the comparison)-r, --rightRequiredDirectory for the rebuilt files(the right side of the comparison)--logRequiredDirectory to store log file--non_verboseOptionalNon Verbose logging(hides filenames)--helpOptionalShow help message and exit
Package: glass-web
Glass is a mini WSGI routing library for building web applications.
It comes with bultin template engine. It is micro-framework because it comes with limited tools for web development. But it is extensible.Glass  comes with builtin development server.InstallationInstall from pypi;$pipistallglass-webor upgrade to latest release ;$piinstall--upgradeglass-webor clone from github;$gitclonehttps://github.com/horlarwumhe/glass.git$cdglass$pipinstall-rrequirements.txt$pythonsetup.pyinstallExamplefromglassimportGlassAppapp=GlassApp()@app.route('/')defhome():return'Hello, welcome.'@app.route('/greet/<name>')defgreet(name):return'Hello{}'.format(name)app.run()#app.run(host='127.0.0.1',port=8000,debug=True,auto_reload=True)Using TemplateGlass template syntax is very similar to django template.# index.html<html><title>{% block title %} Blog {% endblock %}</title><body>{% block content %}
       {% for post in posts %}<h3>{{post.title}}</h3>Author:<b>{{post.author}}<ahref='{{post.url}}'>read more</a>{% endfor %}
       {% endblock %}</body>fromglassimportGlassAppfromglassimportrender_template,render_stringfromglassimportrequest,redirectapp=GlassApp()@app.route('/')defhome():posts=get_all_posts()returnrender_template('index.html',posts=posts)@app.route('/greet/<name>')defgreet(name):template='''Hello {{name}}, welcome to {{request.host}}'''returnrender_string(template,name=name)@app.route('/login',methods=["GET",'POST'])deflogin():ifrequest.method=='POST':name=request.post.get('username')password=request.post.get('password')do_login(name,password)returnredirect('/')else:returnrender_template('login.html')app.run()DocumentationDocumentation is available onglass site. It is also available onreadthedocs.
Package: glaxnimate
Python GlaxnimatePython bindings forGlaxnimate.Allows to create and modify vector animations. With support for Lottie, SVG, and other formats.See thedocumentation pagefor more details.ExamplesConvert animated SVG to Lottieimportglaxnimate# Set up environmentwithglaxnimate.environment.Headless():# Create a document objectdocument=glaxnimate.model.Document("")# Load an animated SVGwithopen("MyFile.svg","rb")asinput_file:glaxnimate.io.registry.from_extension("svg").load(document,input_file.read())# ...# Write to Lottiewithopen("MyFile.json","wb")asoutput_file:output_file.write(glaxnimate.io.registry.from_extension("json").save(document))Render Lottie to giffromPILimportImagefromPILimportfeaturesimportglaxnimatedefpng_gif_prepare(image):"""Converts the frame image from RGB to indexed, preserving transparency"""ifimage.modenotin["RGBA","RGBa"]:image=image.convert("RGBA")alpha=image.getchannel("A")image=image.convert("RGB").convert('P',palette=Image.ADAPTIVE,colors=255)mask=Image.eval(alpha,lambdaa:255ifa<=128else0)image.paste(255,mask=mask)returnimagedefsave_gif(document,file,skip_frames=1):start=int(document.main.animation.first_frame)end=int(document.main.animation.last_frame)# Get all frames as PIL imagesframes=[]foriinrange(start,end+1,skip_frames):frames.append(png_gif_prepare(document.render_image(i)))# Save as animationduration=int(round(1000/document.main.fps*skip_frames/10))*10frames[0].save(file,format='GIF',append_images=frames[1:],save_all=True,duration=duration,loop=0,transparency=255,disposal=2,)# Initialize environmentwithglaxnimate.environment.Headless():document=glaxnimate.model.Document("")# Load the lottie JSONwithopen("MyFile.json","rb")asinput_file:glaxnimate.io.registry.from_extension("json").load(document,input_file.read())# Save as GIFwithopen("MyFile.gif","rb")asoutput_file:save_gif(document,output_file)Create animations from codeimportglaxnimatewithglaxnimate.environment.Headless():# Create an empty documentdocument=glaxnimate.model.Document("")# Add a layerlayer=document.main.add_shape("Layer")# The fill will be applied to all following shapes in the same group / layerfill=layer.add_shape("Fill")fill.color.value="#ff0000"# A simple circle moving left and rightellipse=layer.add_shape("Ellipse")radius=64ellipse.position.set_keyframe(0,glaxnimate.utils.Point(radius,document.size.height/2))ellipse.position.set_keyframe(90,glaxnimate.utils.Point(document.size.width-radius,document.size.height/2))ellipse.position.set_keyframe(180,glaxnimate.utils.Point(radius,document.size.height/2))ellipse.size.value=glaxnimate.utils.Size(radius,radius)# Export itwithopen("MyFile.svg","wb")asoutput_file:output_file.write(glaxnimate.io.registry.from_extension("svg").save(document))DependenciesThis module depends on the following system librariesQt5 (widgets, xml)potracelibav / ffmpeglibarchiveTo install them on Ubuntu and similar:aptinstalllibqt5widgets5libqt5xml5potraceffmpeglibarchive13
Package: glazari-test
Using Python libraryFirst, create a virtualenv (this just needs to be done once):python-mvenv.envThen, activate the virtualenv (needs to be done every time):source.env/bin/activateNow, install the requirements (just needs to be done once):pipinstall-rrequirements.txtFinally, install the Python library at the local virtual environment with the following command (needs to be done every time you change the Rust code):maturindevelop--release
Package: glaze
glazeis a Python library and command line tool for rendering
algorithmically-generated fonts and typefaces.Table of ContentsDemoInstallationUsageDocumentationContributingLicenseDemo>>>importmatplotlib.pyplotasplt>>>fromglazeimportread_json,render>>>>>>font=read_json("data/Georgia.json")>>>font_name,glyph_name,glyph=font[0]>>>render(glyph)>>>plt.show()InstallationThe latest release ofglazecan be installed from PyPI:pipinstallglazeUsageTo useglazeas a library:importmatplotlib.pyplotaspltfromglazeimportrenderfig=render(contours)# Render one glyphTo runglazeon the command line:# Recommended usageglaze--directoryPATH/TO/DATA/# Alternative usageglaze--filesFILESThe--directorymust have the following structure:data
├──json
│├──Georgia.json
│└──...
└──...where the.jsonfiles are those produced byknead. Renders will be saved
in a directorydata/renders-TTTT-DD-MM/, whereTTTTis military time.However, should you want to render only a few files, you can use the--filesflag, which must be one of:a path to a.jsonfile (again, such as those produced byknead),a comma-separated list of such paths, ora regex matching the path(s) to one or more.jsonfiles.Renders will be saved in the present working directory (unlessthe--outputflagis
passed).Refer to ourquickstartfor
more information on how to useglaze.DocumentationPlease refer to ourfull documentation.ContributingContributions are always welcome! Please see ourissue
trackerfor outstanding issues,code of
conductfor community guidelines, and ourcontributing
guidefor details on how to
make a contribution.Licenseglazeis licensed under theMIT
license.
Package: glc
glcA command line tool for Gitlab.
Aim to provide a centralized configuration file to archive/backup/restore Gitlab settings/namespace/groups/users/repositories.BackgroundI am running administrator role for my teams, and it's time wasting to browse and click for create/update roles/projects or setup webhooks/intetgrations for Gitlab projects. Though there are few choices but none of them seems handy enough for me. Let's see if I can make a better one on my own.Note: This project is basically only a mix of ideal concepts and still under developing.InstallationPip/Pipx# Install over pippipinstall--upgradeglc# It's even better with pipxpipxinstallglcUsageglc config initDevelopingTake a look atDevelopContributeWherever there is any issue or suggestions, feel free to raise issushere.ReferenceFor more detail, checkDocument.
Package: glcm_cupy
Binned GLCM Features on CuPyDirectly utilize CUDA to speed up the processing of GLCM in Python.📖 DocumentationRead The WikiInstallation GuideGet Started with GLCMGet Started with GLCM CrossContributorsJulio FaraccoSpecial Thanks for implementingCuPy input support!AcknowledgementsI extend my gratitude to the following peopleAcknowledgementContributionBenjamin GohMotivated the project after his implementation in NumbaDr. Ji-Jon SitHosted & Guided the URECA project that started thisWang JifeiFor providing the idea for GLCM Binning
Package: gl-coarsener
GL-CoarsenerA python implementation of GL-Coarsener method, as proposed inGL-Coarsener: A Graph representation learning framework to construct coarse grid hierarchy for AMG solvers, arXiv:2011.09994.If you find our code or paper useful in your research, please consider citing:@misc{namazi2020glcoarsener,
      title={GL-Coarsener: A Graph representation learning framework to construct coarse grid hierarchy for AMG solvers}, 
      author={Reza Namazi and Arsham Zolanvari and Mahdi Sani and Seyed Amir Ali Ghafourian Ghahramani},
      year={2020},
      eprint={2011.09994},
      archivePrefix={arXiv},
      primaryClass={math.NA}
}Installationpipinstallgl-coarsenerUsageImport the packagefromglcoarsenerimportCoarsenerInputYou should construct aCoarsenerobject with the adjacency matrix that you want to coarsen. The input must be of typescipy sparse CSR matrix.fromscipyimportsparseadjacency_matrix=sparse.random(1000,1000,format='csr')coarsener=Coarsener(adjacency_matrix)Applying the methodprolongation_operator=coarsener.apply(dimensions=100,walk_length=20,num_walks=10,p=0.1,q=1,number_of_clusters=adjacency_matrix.shape[0]//5,clustering_method='kmeans',workers=1)Getting the coarse (smaller) adjacency matrixrestriction_operator=prolongation_operator.transpose()coarse_matrix=restriction_operator.dot(adjacency_matrix).dot(prolongation_operator)print(coarse_matrix)ContributingAny contribution isgreatly appreciated. If you think you can improve this work, please open a pull request.Fork the ProjectCreate your Feature Branch (git checkout -b feature/Improvement)Commit your Changes (git commit -m 'Add some Improvement')Push to the Branch (git push origin feature/Improvement)Open a Pull RequestContactIf you have any questions, please do not hesitate to contact me:Personal Webpage:https://rezanmz.com/Email:rezanmz@ymail.com