Saravanan666/pypi-org huggingface dataset:
Package: gevent-socketio
Presentationgevent-socketiois a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.  One aim of this project is to provide a singlegevent-based
API that works across the different WSGI-based web frameworks out
there (Pyramid, Pylons, Flask, web2py, Django, etc…).  Only ~3 lines
of code are required to tie-ingevent-socketioin your framework.
Note: you need to use thegeventpython WSGI server to usegevent-socketio.Technical overviewMost of thegevent-socketioimplementation is pure Python.  There
is an obvious dependency ongevent, and another ongevent-websocket.  There are integration examples for Pyramid, Flask,
Django and BYOF (bring your own framework!).Documentation and ReferencesYou can read the renderered Sphinx docs at:http://readthedocs.org/docs/gevent-socketio/en/latest/Discussion and questions happen on the mailing list:https://groups.google.com/forum/#!forum/gevent-socketioor in the Github issue tracking:https://github.com/abourget/gevent-socketio/issuesYou can also contact the maintainer:https://twitter.com/#!/bourgetalexndrehttps://plus.google.com/109333785244622657612InstallationYou can install with standard Python methods:pip install gevent-socketioor from source:git clone git://github.com/abourget/gevent-socketio.git
cd gevent-socketio
python setup.py installFor development, run instead ofinstall:python setup.py developIf you want to do all of that in a virtualenv, run:virtualenv env
. env/bin/activate
python setup.py develop   # or install
Package: gevent-socketio-hartwork
PLEASE NOTEWhat you see here is a post-0.3.6 Git version ofgevent-socketiomaintained bySebastian Pipping(@hartwork)
brandedgevent-socketio-hartworkfor distinction on PyPI.The idea is to deviate from upstreamgevent-socketioas little as possible
and mirror branchmasterunmodified.  Maintenance is done onbranch hartwork-master.Over release 0.3.6, these notable commits are included, from most recent to oldest:Add support for Django 1.10byLucas Connors(@RevolutionTech)Drop support for Django 1.3byLucas Connors(@RevolutionTech)Fixed import to support Django>=1.9byChris Spencer(@chrisspen)Leadership notebyAlexandre Bourget(@abourget)Full Python 2+3 supportbyEugene Pankov(@Eugeny)The remainder of this document is the original documentation, except with
links adjusted.  Enjoy.Sebastian PippingPresentationgevent-socketiois a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.  One aim of this project is to provide a singlegevent-based
API that works across the different WSGI-based web frameworks out
there (Pyramid, Pylons, Flask, web2py, Django, etc…).  Only ~3 lines
of code are required to tie-ingevent-socketioin your framework.
Note: you need to use thegeventpython WSGI server to usegevent-socketio.Community, rise up!ANNOUNCEMENT: This project is in need of a solid maintainer to navigate through the 27+ open Pull Requests, merge what needs to be merged, and continue on with newer developments. @abourget is not putting as much time as he’d like on this project these days.  This project has nearly 1000 GitHub Stars.. it’s used by major corporations. It’s a great project for you to lead. Contact @abourget on Twitter @bourgetalexndre to take more leadership.Technical overviewMost of thegevent-socketioimplementation is pure Python.  There
is an obvious dependency ongevent, and another ongevent-websocket.  There are integration examples for Pyramid, Flask,
Django and BYOF (bring your own framework!).Documentation and ReferencesYou can read the renderered Sphinx docs at:http://readthedocs.org/docs/gevent-socketio/en/latest/Discussion happen in the Github issue tracking:https://github.com/hartwork/gevent-socketio/issues(andhttps://github.com/abourget/gevent-socketio/issues)You can also contact the maintainer:sebastian@pipping.orgInstallationYou can install with standard Python methods:pip install gevent-socketio-hartworkor from source:git clone git://github.com/hartwork/gevent-socketio.git
cd gevent-socketio
python setup.py installFor development, run instead ofinstall:python setup.py developIf you want to do all of that in a virtualenv, run:virtualenv env
. env/bin/activate
python setup.py develop   # or installTo execute all tests, run:toxTo execute all tests for a specific Python version, run something like:tox -e py27To execute a specific test for a specific Python version, run something like:tox -e py27 – test_packet.py::TestEncodeMessage::test_encode_event
Package: gevent-socketio-master
Presentationgevent-socketiois a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.  One aim of this project is to provide a singlegevent-based
API that works across the different WSGI-based web frameworks out
there (Pyramid, Pylons, Flask, web2py, Django, etc…).  Only ~3 lines
of code are required to tie-ingevent-socketioin your framework.
Note: you need to use thegeventpython WSGI server to usegevent-socketio.Technical overviewMost of thegevent-socketioimplementation is pure Python.  There
is an obvious dependency ongevent, and another ongevent-websocket.  There are integration examples for Pyramid, Flask,
Django and BYOF (bring your own framework!).Documentation and ReferencesYou can read the renderered Sphinx docs at:http://readthedocs.org/docs/gevent-socketio/en/latest/Discussion and questions happen on the mailing list:https://groups.google.com/forum/#!forum/gevent-socketioor in the Github issue tracking:https://github.com/abourget/gevent-socketio/issuesYou can also contact the maintainer:https://twitter.com/#!/bourgetalexndrehttps://plus.google.com/109333785244622657612InstallationYou can install with standard Python methods:pip install gevent-socketioor from source:git clone git://github.com/abourget/gevent-socketio.git
cd gevent-socketio
python setup.py installFor development, run instead ofinstall:python setup.py developIf you want to do all of that in a virtualenv, run:virtualenv env
. env/bin/activate
python setup.py develop   # or install
Package: gevent-socketio-py3
This project was forked from`https://github.com/abourget/gevent-socketio`Presentationgevent-socketiois a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.  One aim of this project is to provide a singlegevent-based
API that works across the different WSGI-based web frameworks out
there (Pyramid, Pylons, Flask, web2py, Django, etc…).  Only ~3 lines
of code are required to tie-ingevent-socketioin your framework.
Note: you need to use thegeventpython WSGI server to usegevent-socketio.Community, rise up!ANNOUNCEMENT: This project is in need of a solid maintainer to navigate through the 27+ open Pull Requests, merge what needs to be merged, and continue on with newer developments. @abourget is not putting as much time as he’d like on this project these days.  This project has nearly 1000 GitHub Stars.. it’s used by major corporations. It’s a great project for you to lead. Contact me on Twitter @bourgetalexndre to take more leadership.Technical overviewMost of thegevent-socketioimplementation is pure Python.  There
is an obvious dependency ongevent, and another ongevent-websocket.  There are integration examples for Pyramid, Flask,
Django and BYOF (bring your own framework!).Documentation and ReferencesYou can read the renderered Sphinx docs at:http://readthedocs.org/docs/gevent-socketio/en/latest/Discussion and questions happen on the mailing list:https://groups.google.com/forum/#!forum/gevent-socketioor in the Github issue tracking:https://github.com/henokalem/gevent-socketio-py3/issuesYou can also contact the maintainer:https://twitter.com/alem_liveInstallationYou can install with standard Python methods:pip install gevent-socketio-py3or from source:git clone git@github.com:henokalem/gevent-socketio-py3.git
cd gevent-socketio
python setup.py installFor development, run instead ofinstall:python setup.py developIf you want to do all of that in a virtualenv, run:virtualenv env
. env/bin/activate
python setup.py develop   # or installTo execute all tests, run:toxTo execute all tests for a specific Python version, run something like:tox -e py27To execute a specific test for a specific Python version, run something like:tox -e py27 – test_packet.py::TestEncodeMessage::test_encode_event
Package: gevent-ws
gevent-wsA fast, MIT-licensed alternative to the abandoned non-free (as in freedom)gevent-websocket.Why?It's MIT-licensed, so it can be included to almost all software (both open-source and closed-source) without any licensing issues, as opposed togevent-websocket. And it's several times faster!Installationgevent-wscan be installed from PyPI and GitHub.PyPI$pip3installgevent-wsGitHub$gitclonehttps://github.com/imachug/gevent-ws.git
$cdgevent-ws
$python3setup.pyinstallExampleA simple echo serverfromgevent.pywsgiimportWSGIServerfromgevent_wsimportWebSocketHandlerdefapp(env,start_response):ws=env["wsgi.websocket"]whileTrue:msg=ws.receive()ifmsgisNone:breakws.send(msg)return[b"Bye"]server=WSGIServer(("",8080),app,handler_class=WebSocketHandler)server.serve_forever()Both HTTP and websocket on a single portfromgevent.pywsgiimportWSGIServerfromgevent_wsimportWebSocketHandlerdefapp(env,start_response):if"wsgi.websocket"inenv:ws=env["wsgi.websocket"]whileTrue:msg=ws.receive()ifmsgisNone:breakws.send(msg)return[b"Bye"]else:start_response("200 OK",[("Content-Type","text/html, charset=utf-8")])return[b"""<script>const ws = new WebSocket("ws://127.0.0.1:8080/");ws.onopen = () => {ws.send("Hello, world!");};ws.onmessage = e => {ws.send(e.data);};</script>"""]server=WSGIServer(("",8080),app,handler_class=WebSocketHandler)server.serve_forever()Docsgevent_ws.WebSocketHandlerThe main class. Pass it togevent.pywsgi.WSGIServerashandler_class.gevent_ws.WebSocketYou get this object by accessingwsgi.websocketproperty of the environment object. If it exists, it's a websocket connection; if it doesn't, it's an HTTP request. You can use"wsgi.websocket" in envto check this and route the request correctly.gevent_ws.WebSocket.receive()Waits for a message and returns it, either asstrorbytes. Blocks. May returnNoneif the connection is closed or anOSErrorif the socket can't be read from.gevent_ws.WebSocket.receive_nowait()Returns the message if it's available (the format is the same as inreceive()) orNoneif no message is in the queue. May returnNoneor raiseOSError(seereceive()).gevent_ws.WebSocket.send(message)Sends a message to the other party.messagecan be eitherstrorbytes. May raiseEOFErrorif the connection is closed orOSErrorif the message can't be sent for some other reason.gevent_ws.WebSocket.close(status=1000)Closes the websocket. Status1000(the default one) means that the connection is closed cleanly. CheckRFCfor more status codes.gevent_ws.WebSocket.set_max_message_length(length)Set maximum incoming message size (in bytes). 10 MiB is the default value.gevent_ws.WebSocket.closedA boolean showing whether the connection is closed (by any of the two parties) or is being closed.gevent_ws.WebSocket.statusThe close status code sent by the other party.Noneif the socket was closed by the client, the server didn't return the error code or the connection was aborted abnormally.
Package: gevent_zeromq
This library wraps pyzmq to make it compatible with gevent. ØMQ socket
operations that would normally block the current thread will only block the
current greenlet instead.Requirementspyzmq==2.2.0gevent (compatible with 1.0 pre-releases as well)UsageInstead of importing zmq directly, do so in the following manner:from gevent_zeromq import zmqAny calls that would have blocked the current thread will now only block the
current green thread.AboutThis compatibility is accomplished by ensuring the nonblocking flag is set
before any blocking operation and the ØMQ file descriptor is polled internally
to trigger needed events.Will build with cython if available, decreasing overhead.LicenseSee LICENSE (New BSD)
Package: gevent-zookeeper
# gevent-zookeeper #A client framework for working with Apache Zookeeper [1].The framework draws a lot of inspriation from Netflix Curator.
If you’re a Java developer, check it out.The main class is gevent_zookeeper.ZookeeperFramework:>>> framework = gevent_zookeeper.ZookeeperFramework(
        'localhost:2181', 10)The first thring you have to do is to connect to the clusteR:>>> framework.connect()
>>>Then connected, new nodes can be created:>>> framework.create().with_data('x').for_path('/node')Read the docstrings for ZookeeperFramework for more information.This code is based work done by David LaBissoniere [2].[1]http://zookeeper.apache.org/[2]https://github.com/labisso/zkproto
Package: gevt
Gevt est un Gestionnaire de Volontaires et de Tâches écrit en python pour faciliter la gestion d’événements impliquant
l’attribution de bénévoles (les volontaires) à l’éxécution de tâches.GeVT est une interface utilisateur qui permet la gestion semi-automatisée d’événements nécessitant des bénévoles. Plus le nombre de tâches à effectuer et à répartir parmis de nombreux bénévoles est grand plus la gestion de l’affectation de ces tâches devient complexe. GeVT permet de:Edition de la liste des tâchesà effectuer durant les différents jours de l’événement. Importation depuis un fichier au formatcsvpossible.Edition de la liste des volontaires(bénévoles) et de leur disponibilité. Importation depuis un fichier au formatcsvpossible.Affectation d’un ou plusieurs bénévoles(selon le nombre nécessaireN needed) à une tâche donnée selon leur disponibilité. Si un bénévole n’est pas disponible sur le créneau de la tâche, il n’apparait pas dans la liste des possibilités.Affectation d’une ou plusieurs tâchesà un bénévole. La liste des tâchesaffectablesest mise à jour immédiatement selon les tâches précédemment sélectionnées et qui modifient la disponibilité du bénévole.Timelinepour voir l’état des différentes affectationsEdition automatique de fiches bénévoles regroupant l’ensemble des tâches qu’un bénvole devra effectuer.GitHub repo:https://github.com/seb5g/gevtPypi:pip install gevtEcrit par Sébastien Weber sous licence MIT
Package: gewel-btchip-python
gewel-btchip-pythonPython communication library for Ledger Hardware Wallet products (Gewel fork)RequirementsThis library requires libusb-1.0-0-dev, libudev-dev, python2.7-dev and wheel for building. On Debian systems:sudoapt-getinstalllibusb-1.0-0-devlibudev-devpython2.7-dev
pipinstallwheelThe library can then be installed via pip:pipinstallgewel-btchip-pythonFor optional BIP 39 support during dongle setup, also installhttps://github.com/trezor/python-mnemonic- also available as a Debian package at the previous link (python-mnemonic)Building on WindowsDownload and install the latest Python 2.7 or 3.x version fromhttps://www.python.org/downloads/windows/Install Microsoft Visual C++ Compiler for Python 2.7 or 3.x fromhttp://www.microsoft.com/en-us/download/details.aspx?id=44266Download and install PyQt4 for Python 2.7 or 3.x fromhttps://www.riverbankcomputing.com/software/pyqt/downloadInstall the gewel-btchip library (open a command prompt and enter c:\python27\scripts\pip install gewel-btchip-python)
Package: gewv-timeseries-client
GEWV Timeseries ClientThis client is a abstraction of the offical Influx-Client to get and write points to our Influx-TimeseriesDB.Installationpip install gewv-timeseries-clientDevelopmentFor testing you can install all deps and start the module with that commands.poetry install
poetry shell
python examples/read_and_write_data.pyPlansAdd more exampleAdd tests
Package: gexcel
gexcel一个 excel 便捷读取插入工具，有如下三个模块ExcelReader：读取数据（自适应 xlsx、xls）ExcelWriter：保存数据（可能会存在丢失长度问题）ExcelWriterPerfect：保存数据（不会丢失）安装pip install gexcel示例ExcelReader自适应 xlsx、xls打开失败很大概率是文件自身的类型和后缀不符from gexcel import ExcelReader

reader = ExcelReader('Result.xlsx')
for i in reader.read_lines():   # 可以输入 sheet 获取 sheet索引 来输出
    print(i)ExcelWriterfrom gexcel import ExcelWriter

excel = ExcelWriter()
writer = excel.writer(sheetname='Sheet')    # sheetname 可以不给

for i in range(10):
    writer.write_line([i])

excel.save('Result.xlsx')ExcelWriterPerfectfrom gexcel import ExcelWriterPerfect

excel = ExcelWriterPerfect('Result.xlsx')
writer = excel.writer(sheetname='Sheet')    # sheetname 可以不给

for i in range(10):
    writer.write_line([i])

excel.save()注意：这里的 writer 是线程安全的，一个 writer 代表一个 sheet
Package: gexecjs
介绍调用 node 执行 js ，可指定编码格式安装pip install -U gexecjs示例# run_js = RunJs(filepath='test.js')
    run_js = RunJs(content='''
        function getCookie(){
            return arguments
        }
    ''')
    result = run_js.run('getCookie', 'Gk')
    print(result)
Package: gexecute
gexecuteGenerically execute any function with a unknown function, module, or set of parameters!Specify some set of parameters in a dictionary with the only restriction being that it must have all of the parameters with non-default values.The function and module can either be a string representation or its corresponding object.If the function exists in another module; you must give either the module object or the package path and module name.How to Install: pip install gexecutePiPy https://pypi.org/project/gexecute/How to use:def test(a, b, c='test'):
    print(a, b, c)

> test(1, 2, 3)
1, 2, 3

> gexec(test, {'a': 1, 'b': 2, 'c': 3})
1, 2, 3

> gexec(test, {'a': 1, 'b': 2})
1, 2, test

# Function name can be an object or string
> gexec('test', {'a': 1, 'b': 2})
1, 2, test

# Any variables not in the function header will not be included in the function call
> gexec(test, {'a': 1, 'b': 2, 'd': 4})
1, 2, test

# If test is in the directory C:\python\test_module.py
> gexec({'a': 1, 'b': 2, 'c': 3}, 'test', module='test_module', package_path='C:\python\')
1, 2, 3

import test_module as module_
> gexec({'a': 1, 'b': 2, 'c': 3}, 'test', module=module_)
1, 2, 3
Package: gexfpy
GEXFpy is a python wrapper forGexf XML version 1.2.We provide 2 ways to use it:Parse Gexf XML as Graph Python Object:  read gexf version 1.2 xml file into python as Gexf python object.Serialize  Graph Python Object into Gexf XML: create python object Gexf instance and serialize this object into gexf version 1.2 xml file.Getting StartedRequirements and InstallationPython version >= 3.8xsdata version == 21.9pipinstallgexfpyInstall from source via:pipinstallgit+https://github.com/chunqishi/gexfpy.gitOr clone the repository and install with the following commands:gitclonegit@github.com:chunqishi/gexfpy.gitcdgexfpy
pipinstall-e.UsageAPI UsageYou can run all kinds of experiments through GEXFpy APIs.
A quickstart example can be found in thequick_start.py. More examples are provided in theexamples/.fromgexfpyimportparse# basic usage parse filesbu_310=parse('sbu_310.gexf')print('graph sbu_310 nodes number =',len(sbu_310.graph.nodes[0].node))# serialize Gexf object into xml stringfromgexfpyimportstringifyfromgexfpyimportGexf,Graph,Nodes,Edges,Node,Edge,Colorgexf=Gexf()gexf.graph=Graph()gexf.graph.nodes=[Nodes(node=[Node(id=1,label="node 1",color=[Color(r=255,g=0,b=0)]),Node(id=2,label="node 2"),Node(id=3,label="node 3")],count=3)]gexf.graph.edges=[Edges(edge=[Edge(source=1,target=2,label="edge 1"),Edge(source=2,target=3,label="edge 1")],count=2)]s=stringify(gexf)print(s)Check thedocumentation <https://gexfpy.readthedocs.io>_ for more
✨✨✨ChangelogVersion 0.1.1 2021-10-30It works only for gexf version 1.2 draft
Package: gexml
Let’s face it: xml is a fact of modern life.  I’d even go so far as to say
that it’sgoodat what is does.  But that doesn’t mean it’s easy to work
with and it doesn’t mean that we have to like it.  Most of the time, XML
just needs to get out of the way and let you do some actual work instead
of writing code to traverse and manipulate yet another DOM.The gexml module takes the obvious mapping between XML tags and Python objects
and lets you capture that as cleanly as possible.  Loosely inspired by Django’s
ORM, you write simple class definitions to define the expected structure of
your XML document.  Like so:>>> import gexml
>>> from gexml import fields
>>> class Person(gexml.Model):
...   name = fields.String()
...   age = fields.Integer(tagname='age')Then you can parse an XML document into an object like this:>>> p = Person.parse("<Person name='Foo McBar'><age>42</age></Person>")
>>> p.name
u'Foo McBar'
>>> p.age
42And you can render an object into an XML document like this:>>> p = Person(name="Handsome B. Wonderful",age=36)
>>> p.render()
'<?xml version="1.0" ?><Person name="Handsome B. Wonderful"><age>36</age></Person>'Malformed documents will raise a ParseError:>>> p = Person.parse("<Person><age>92</age></Person>")
Traceback (most recent call last):
    ...
ParseError: required field not found: 'name'Of course, it gets more interesting when you nest Model definitions, like this:>>> class Group(gexml.Model):
...   name = fields.String(attrname="name")
...   members = fields.List(Person)
...
>>> g = Group(name="Monty Python")
>>> g.members.append(Person(name="John Cleese",age=69))
>>> g.members.append(Person(name="Terry Jones",age=67))
>>> g.render(fragment=True)
'<Group name="Monty Python"><Person name="John Cleese"><age>69</age></Person><Person name="Terry Jones"><age>67</age></Person></Group>'There’s support for XML namespaces, default field values, case-insensitive
parsing, and more fun stuff.  Check out the documentation on the following
classes for more details:Model:the base class for objects that map into XMLField:the base class for individual model fieldsMeta:meta-information about how to parse/render a modelSourceGithub:https://github.com/ampledata/gexmlAuthorRyan Kellyoss@undef.netContributorsGreg Albrecht W2GMDoss@undef.nethttps://ampledata.orgCopyrightCopyright (c) 2009-2011 Ryan KellyLicenseMIT License. See LICENSE.txt for details.