Saravanan666/pypi-org huggingface dataset:
Package: greenponik-bme280
GreenPonik_BME280.py Library for Raspberry piThis is the sample code for read light with BME280 sensor.Table of ContentsGreenPonik_BME280.py Library for Raspberry piTable of ContentsInstallationMethodsExamplesCreditsInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_BME280.gitcdGreenPonik_BME280
pip3install-rrequirements.txt

or>pip3installgreenponik-bme280fromGreenPonik_BME280.BME280importBME280Methods"""Get light data"""defread_bme280():ExampleimporttimefromGreenPonik_BME280.BME280importBME280if__name__=="__main__":try:bme=BME280()whileTrue:data=bme.read_bme280()print(data)time.sleep(1)exceptExceptionase:print('An exception occurred:{}'.format(e))CreditsWrite by Mickael Lehoux, fromGreenPonik, 2019
Package: greenponik-onewire-ds18b20
GreenPonik_OneWire_DS18B20.py Library for Raspberry piThis is the sample code for read temperature with DS18B20 sensor on One Wire bus.The script auto-detect the 1W file and parse it to find the temperature value.Table of ContentsGreenPonik_OneWire_DS18B20.py Library for Raspberry piTable of ContentsInstallationMethodsExamplesCreditsInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_OneWire_DS18B20.gitfromGreenPonik_OneWire_DS18B20.GreenPonik_OneWire_DS18B20importread_tempsMethods"""Get temperatues in celcius and fahrenheit"""defread_temps():ExampleimporttimefromGreenPonik_OneWire_DS18B20.GreenPonik_OneWire_DS18B20importread_tempsif__name__=="__main__":whileTrue:# read both celcius and fahrenheit temperaturestemperatures=read_temps()print("celcius temp%.3f"%temperatures[0])print("fahrenheit temp%.3f"%temperatures[1])time.sleep(1)passCreditsWrite by Mickael Lehoux, fromGreenPonik, 2019
Package: greenponik-sht40
GreenPonik_SHT40.py Library for Raspberry piThis is the sample code for read light with SHT40 sensor.Table of ContentsInstallationMethodsExamplesCreditsInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_SHT40.gitcdGreenPonik_SHT40
pip3install-rrequirements.txt

or>pip3installgreenponik-sht40fromGreenPonik_SHT40.SHT40importSHT40Methods"""Get light data"""defread_sht40():ExampleimporttimefromGreenPonik_SHT40.SHT40importSHT40if__name__=="__main__":try:sht=SHT40()whileTrue:data=sht.read_sht40()print("temperature:%.2f/ humidity:%.2f"%(data[0],data[1]))time.sleep(1)exceptExceptionase:print('An exception occurred:{}'.format(e))CreditsCode by Mickael Lehoux, fromGreenPonik, 2021
Package: greenponik-thermistor10k
GreenPonik_Thermistor10k.py Library for Raspberry piThis is the sample code for read temperature with thermistor 10k sensor on i2c bus.Table of ContentsGreenPonik_Thermistor10k.py Library for Raspberry piTable of ContentsDev workflowInstallationMethodsExampleCreditsDev workflowcreate python virtual environnementpython3-mvenvvenvactivate venv linuxsourcevenv/bin/activateactivate venv windowsvenv\Scripts\activateinstall dependenciespipinstall-rrequirements.txtbuild the documentationTODOInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_Thermistor10k.gitcdGreenPonik_Thermistor10k
pip3install-rrequirements.txt

or>pipinstallgreenponik-thermistor10kfromGreenPonik_Thermistor10k.Thermistor10kimportThermistor10kMethods"""Get temperatue in celcius"""defread_temp():ExampleimporttimefromGreenPonik_Thermistor10k.Thermistor10kimportThermistor10kif__name__=="__main__":th=Thermistor10k()whileTrue:temperature=th.read_temp()print("celcius temp%.3f°c"%temperature)time.sleep(1)CreditsWrite by Mickael Lehoux, fromGreenPonik, 2020
Package: greenponik-tsl2561
GreenPonik_TSL2561.py Library for Raspberry piThis is the sample code for read light with TSL2561 sensor.Table of ContentsGreenPonik_TSL2561.py Library for Raspberry piTable of ContentsInstallationMethodsExamplesCreditsInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_TSL2561.gitcdGreenPonik_TSL2561
pip3install-rrequirements.txt

or>pip3installgreenponik-tsl2561fromGreenPonik_TSL2561importGreenPonik_TSL2561Methods"""Get light data"""defread_tsl2561():ExampleimporttimefromGreenPonik_TSL2561importGreenPonik_TSL2561if__name__=="__main__":tsl=GreenPonik_TSL2561()whileTrue:data=tsl.read_tsl2561()print(data)time.sleep(1)CreditsWrite by Mickael Lehoux, fromGreenPonik, 2019
Package: greenponik-waterpump-driver
GreenPonik_WaterPump_Driver.py Library for Raspberry piA python3 class to manage GreenPonik WaterPump devices! Only tested on Raspberry Pi 3 A+ !Table of ContentsGreenPonik_WaterPump_Driver.py Library for Raspberry piTable of ContentsInstallationExamplesCreditsInstallation>gitclonehttps://github.com/GreenPonik/GreenPonik_WaterPump_Driver.gitcdGreenPonik_WaterPump_Driver
pip3install-rrequirements.txt

or>pip3installgreenponik-waterpump-driverfromGreenPonik_WaterPump_Driver.WaterPumpDriverimportWaterPumpDriverExampleimporttimefromGreenPonik_WaterPump_Driver.WaterPumpDriverimportWaterPumpDriverif__name__=="__main__":# run pump one during 2sectry:withWaterPumpDriver()asdriver:# default bus=1, default address=0x01print("My UUIDis :%s"%driver.get_uuid())driver.set_pump_command(driver.I2C_REGISTERS["PUMP_1_STATE"],driver.I2C_COMMANDS["ON"],100,3000)time.sleep(2)driver.set_pump_command(driver.I2C_REGISTERS["PUMP_1_STATE"],driver.I2C_COMMANDS["OFF"],0,0)exceptExceptionase:print("Exception occured",e)go toexamplesCreditsWrite by Mickael Lehoux, fromGreenPonik, 2020
Package: greenreactor
gevent_reactorA reactor which make twisted compatible with geventInstallationpip install greenreactorUsage# Usually we need monkey patchimportgevent.monkeygevent.monkey.patch_all()# Install greenreactorimportgreenreactorgreenreactor.install()fromtwisted.internetimportreactorreactor.run()Then you can use any gevent api such asspawn,spawn_later, `1etc.
Package: greenrpc
GreenRPC========TCP & HTTP RPC Server written with [msgpack](http://msgpack.org/) and[gevent](http://www.gevent.org/)## Install### pip```bashpip install greenrpc```### git```bashgit clone git://github.com/brettlangdon/greenrpc.gitcd ./greenrpcpython setup.py install```## Usage### server```bash$ greenrpc-server -husage: greenrpc-server [-h] [--bind BIND] [--spawn SPAWN] [--http] <module> [<module> ...]Start a new GreenRPC TCP Serverpositional arguments:<module>       Python module to expose for the RPC Serveroptional arguments:-h, --help     show this help message and exit--bind BIND    <address>:<port> to bind the server to (default: 127.0.0.1:3434)--spawn SPAWN  number of greenlets to spawn (default: 4)--http         whether to start an http server instead of tcp (default: False)```Expose the python module [time](https://docs.python.org/2/library/time.html) asan RPC server```$ greenrpc-server time```Exposing multiple modules```$ greenrpc-server time json```### cli client```bash$ greenrpc-client -husage: greenrpc-client [-h] [--connect CONNECT] [--debug] [--http] <method> [<arg> [<arg> ...]]Start a new GreenRPC TCP Serverpositional arguments:<method>           The remote method to call<arg>              Arguments to send for the remote method calloptional arguments:-h, --help         show this help message and exit--connect CONNECT  <address>:<port> of the server to connect to(default: 127.0.0.1:3434)--debug            whether or not to show the full result--http             whether the server is http or tcp``````$ greenrpc-client time1414368752.71$ greenrpc-client --debug time{'results': 1414368766.407974, 'run_time': 0.0059604644775390625, 'id': 1}```### python client```pythonfrom greenrpc.client import TCPClientclient = TCPClient()print client.time()# 1414368818.587777print client.call("time")# 1414368830.217749print client.call("time", debug=True)# {'results': 1414368849.379209, 'run_time': 0.008106231689453125, 'id': 3}```## License```The MIT License (MIT)Copyright (c) 2014 Brett LangdonPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.```
Package: greensim
greensim: discrete event simulation toolkitThis is a set of simple tools for modeling and running simulations of discrete
event systems. It is based on the implementation of each independant part of
the system that generates events into a function: these are the simulation'sprocesses. They are thenadd()ed to aSimulatorobject, which
coordinates the timeline over which processes execute. Such functions indicate
what happens at various moments within this process, and using functionsadvance()andpause()(valid only in context of process routines) to
forward the simulation to the next moment.With processes duly added to theSimulatorobject, the simulation is
launched by calling its methodrun(). The simulation stops, thereby
returning fromrun(), when the simulator runs out of events, or if one of
the processes invokes functionstop(). The simulation can be resumed by
calling methodrun()over again, and so on.Take a look at the files inexamplessubdirectory to get a concrete
understanding.Reference documentation for classes and tools is available as docstrings.
Package: greenstack
Greenstack is a fork of greenlet, which is a spin-off ofStackless, a
version of CPython that supports micro-threads called “tasklets”.  Tasklets run
pseudo-concurrently (typically in a single or a few OS-level threads) and are
synchronized with data exchanges on “channels”.A “greenlet”, on the other hand, is a still more primitive notion of
micro-thread with no implicit scheduling; coroutines, in other words. This is
useful when you want to control exactly when your code runs. You can build
custom scheduled micro-threads on top of greenlet; however, it seems that
greenlets are useful on their own as a way to make advanced control flow
structures. For example, we can recreate generators; the difference with
Python’s own generators is that our generators can call nested functions and
the nested functions can yield values too. Additionally, you don’t need a
“yield” keyword. See the example in tests/test_generator.py.Greenlets are provided as a C extension module for the regular unmodified
interpreter.Greenlets are coroutines for in-process concurrent programming.Getting GreenstackCurrently, the only way to get Greenstack is by building it from source:git clone git@github.com:tbodt/greenstack
cd greenstack
./setup.py installThis will change soon.
Package: greenstalk
Greenstalk is a small and unopinionated Python client library for communicating
with thebeanstalkdwork queue. The API provided mostly maps one-to-one with
commands in theprotocol.Quickstart>>>importgreenstalk>>>client=greenstalk.Client(('127.0.0.1',11300))>>>client.put('hello')1>>>job=client.reserve()>>>job.id1>>>job.body'hello'>>>client.delete(job)>>>client.close()Documentation is available onRead the Docs.
Package: greentasks
A very simplistic task scheduler built around gevent.UsageCreate a task scheduler instance:from greentasks import TaskScheduler

scheduler = TaskScheduler()Implement a task:from greentasks import Task

class AwesomeTask(Task):
    name = 'awesome'
    delay = 10
    periodic = True

    def run(self, arg1, kw=None):
        return arg1Schedule the task for asynchronous execution:packaged_task = scheduler.schedule(AwesomeTask)Wait for the result (if needed):result = packaged_task.result.get()
Package: green-tsetlin
green_tsetlingreen_tsetlin let you easily train and do inference on a Coalesced Tsetlin Machine.
It is CPU based and will use AVX2 / NEON instrics in the backend if available.The package does not provide all bells and whistles a Tsetlin Machine can have, instead it support a
carefully selected subset of features. As such, once we
reach version 1, then the API will be stable.If you want the lastest research features theTMU projectis the place to go.
This project is intended to by tested, stable and intended more toward production.ExamplesSee the examples directory for jupyter-notebook examples on how to use green_tsetlin.
TODO: add the mentioned examples :P
Package: greenwave
# Greenwave![logo of Greenwave](https://pagure.io/greenwave/raw/master/f/logo.png)Greenwave is a service to decide whether a software artifact can pass certain
gating points in a software delivery pipeline, based on test results stored in
[ResultsDB](https://pagure.io/taskotron/resultsdb) and waivers stored in
[WaiverDB](https://pagure.io/waiverdb).## DocumentationThe latest version of Greenwave’s documentation is available at:https://docs.pagure.org/greenwave/To get started developing Greenwave, check out the
[development guide](https://docs.pagure.org/greenwave/dev-guide.html).## Copyright and licenseThis project is copyright Red Hat and other contributors, licensed under the
terms of the GNU General Public License version 2 or later. See theCOPYINGfile for the complete text of the license. Refer to the git history for
complete authorship details.
Package: greenwich
Adding Python conveniences to the wonderful world ofGDAL.Greenwich provides a wrapper for the GDAL SWIG Python bindings. The focus here is on
providing some higher level behavior mainly to the raster side of the GDAL/OGR fence.InstallationThe GDAL Python bindings need a little assistance in finding the pertinent
headers when building from within a virtualenv. If the usualpip install greenwichfails, specify the GDAL header directory wherever that may be for you such as:CFLAGS=-I/usr/include/gdalpipinstallgreenwichBasic UsageOpen any raster data set you have lying around, perhaps some climate data fromWorldClim.fromgreenwichimportGeometry,Rasterfromgreenwich.ioimportMemFileIOwithRaster('cc85tn701.tif')astmax:# Save as a NetCDF file.tmax.save('cc85tn701.nc')geom=Geometry(wkt='POLYGON((-123 47,-123 48,-122 49,-121 48,-121 47,-123 47))',srs=4326)# Clip the raster with a geometry and save the result as a GeoTIFF.withtmax.clip(geom)asclipped:clipped.save('clipped.tif')# Return a NumPy MaskedArray using nodata values for a given bounding box.m=tmax.masked_array((-120,38,-118,44))# Convert to an Erdas Imagine file in memory.imgio=MemFileIO(suffix='.img')tmax.save(imgio)imgdata=imgio.read()imgio.close()# Iterate over bands and retrieve the maximum pixel values.maxvals=[band.GetMaximum()forbandintmax]Retrieve a NumPy array for a specific area by providing the extent as a 4-tuple of min/max x, y coordinates:arr = tmax.array((-120, 38, -118, 44))Reproject the raster to another coordinate system. You may pass EPSG codes, WKT,
proj4 formatted projections, or a SpatialReference instance as an argument:warped = tmax.warp(3857)Perhaps you would like to resample your image to a new resolution which can be
achieved with:resampled = tmax.resample((100, 100))Raster instances still behave like a gdal.Dataset:meta = tmax.GetMetadata()
Package: greetcute
GreetCuteIt’s just the cutest greeter ever and it’ll print out nice ways to say hello.Free software: MIT licenseDocumentation:https://greetcute.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-13)First release on PyPI.
Package: greet-girl
greet-girl定时给女朋友发送问候消息，比如早安，晚安等。希望我能尽早用到。。。Usage$python3-mpipinstallgreet-girl
$greet-girl-w<girl'swechatAcount>-H<hour>-M<minute>-m<message># example$greet-girl-wmylove-H7-M30-m早安# 每天7.30给mylove发送早安
Package: greeting-package
greeting_packagegreeting-packageis a Python package for greeting people.InstallationYou can installgreeting-packageviapip:pipinstallgreeting-packageUsagefrom greeting_package.greeting import say_hello

say_hello('John')  # 'Hello, John!'
say_hello('Jane')  # 'Hello, Jane!'ContributingBug reports and pull requests are welcome on GitHub atHere.DocumentationThe greeting-package documentation includes:Installation instructionsUsage examplesAPI referenceDevelopment instructionsAPI Referencegreeting_package.greeting.say_hello(name: str) -> strGreet someone by name.Parameters:

    name (str): # The name of the person to greet.

Returns:

    A greeting message (str).ContributingBug Reports and Feature RequestsPlease use the issue tracker to report any bugs or feature requests.
DevelopmentClone the repository:git clone https://github.com/osundwajeff/greeting_package.git
cd greeting-packageCreate a virtual environment:python3 -m venv env
source env/bin/activateInstall development dependencies:pip install -r requirements-dev.txtMake changes and add tests.
Run the tests:pytest tests/Build the package:python3 -m buildInstall the package:pip install .Push your changes and create a pull request.Licensegreeting-package is released under the MIT License. See LICENSE for details.
Package: greetings
GreetingsGenerate greetings stringsFree software: MIT licenseDocumentation:https://greetings.readthedocs.io.FeaturesCreate Hello message based on aname. Defaults toyou.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-26)First release on PyPI.
Package: greetpustat
greetpustat===========-----.. contents:: **Table of Contents**:backlinks: noneFeatures--------- simple greeting for purdue stat students by ascii artInstallation------------greetpustat is distributed on `PyPI <https://pypi.org>`_ as a universalwheel and is available on Linux/macOS and Windows and supportsPython 3.5+ and PyPy... code-block:: bash$ pip3 install greetpustatUsage-----.. code-block:: bash$ greetpustat --name="eric gerber"$ greetpustat --greeter="yourownname" --name="eric gerber"License-------greetpustat is distributed under the terms of both- `MIT License <https://choosealicense.com/licenses/mit>`_
Package: greetuvm
greetuvmGreet You Very MuchAn example project to help say hello to people or things.This is actually a code-along for the talkPublishing (Perfect) Python Packages on PyPi.InstallationRun the following to install:$pipinstallgreetuvmUsagefromhelloimportsay_hello# Say the generic "Hello"say_hello()# Say "Hello, Abel"say_hello('Abel')Developing GreeterTo install greetuvm, along with the tools you need to develop and run tests,
run the following in your virtualenv:$pipinstall-e.[dev]
Package: gref
GrefGetting StartedUsepipto install
gref. Then, run Python from the command line.> pip install gref> pythonOnce Python is running, importgrefand call the main function.>>>importgref>>>gref.main()UsageUpon booting gref, we are welcomed and canSEARCHfor articles:Welcome :-)Î± > search bibliometricsPMID: 31995273Title: Application of bibliometrics in medicine: a historical bibliometricsanalysis.By: Kokol, BlaÅ¾un VoÅ¡ner, ZavrÅ¡nikPMID: 34586077Title: Scholarly Productivity Evaluation of KL2 Scholars UsingBibliometrics and Federal Follow-on Funding: Cross-InstitutionStudy.By: Qua, Yu, Patel, Dave, Cornelius, Pelfrey[...]Once we have an article that we like, we canADDa new file within the gref
database, and thenADDa new reference (using the PubMed ID) to the active
file:Î± > add biblioMaking...Î´ > add 31995273Adding...Found 31995273...Now comes the fun part, growing the search! Let's use theGROWcommand and
specify 5 cycles (each cycle grabs 5 articles):Î´ > grow 5Growing...Found 34169036...Found 30951931...Found 33240559...Found 34306062...Found 34150972...[...]Finally, let's render out anSVGfile, using the command of the same name:Î´ > svgdot -Tsvg gref/gv/biblio.gv -o gref/svg/biblio.svgCongratulations! You have now rendered your first citation graph. This source
vector graphics file supports hyperlinks. Try opening some of the references on
theexample
graphin a new tab. Also, notice the tooltips as you hover over a reference!
Otherwise, check out some of the other outputs found in theexample
database.Available CommandsStateCommandDescriptionÎ±ADDAdd a new file to the database, becomes activeÎ´ADDAdd a new PubMed ID to the active fileÎ´CSVExport articles to a table*EXITExit the programÎ´GROWFind related articles, can specify number of cyclesÎ´GVRender out a GV file, this is the base graph*HELPHelp page for command state and usageÎ±LOADLoad a file from the database, becomes activeÎ´PDFRender out a PDF fileÎ±PEEKPeek the files in the databaseÎ´PEEKPeek the articles in the active fileÎ´PNGRender out a PNG file, can specify DPIÎ±RMRemove a file from the database*SEARCHSearch PubMed, query follows commandÎ´SVGRender out a SVG file, has hyperlink supportÎ´TXT ESSAYExport a fake essay on the topic, can specify word numberÎ´TXT NGRAMExport N-grams from all abstracts, can specify NÎ´UNLOADUnload active file
Package: greff
greffI wanted an animal name, but most of them already used in pypi :(, the name pronouncedgrephwhat is itgreffcreates python classes fromgraphqlresponse.what is it notdoesn't check for typing, you havepydanticfor itdataclass, although you can use thedataclassessyntax to create classesgreffis for graphql and it adds graphql attributes behind the sencecurrent stagein the current stage its not ready for release, it is only possible
(for now) to query datavision / exampleimportrequestsimportgreff@greff.define_type(queryname="authors")classParentAuthor(greff.Model):name:strage:int=0@greff.define_type()classAuthor(ParentAuthor):extra_field:str@greff.define_type()classSimpleAuthor(ParentAuthor):passclassMyGraphqlClient(greff.HTTPClient):# we implement the graphql posting function ourself# since it can very from diffrent implementationsdefrequest(self,query:str)->dict:response=requests.post("http://localhost:8000/graphql",json={"query":query},verify=False)response.raise_for_status()returnresponse.json()# create our charryplate graphql clientgraphql=MyGraphqlClient()# graphql equivelent# query {#   authors {#     ... frag#   }# }# fragment frag on Author {#   name# }#query=graphql.query(((ParentAuthor,(ParentAuthor.query.name,)),),)# graphql response# {#   "data": {#     "authors": [#       {#         "name": "Michael Crichton",#         "__typename": "Author"#       }#     ]#   }# }forauthorinquery:print(type(author),author.name)output<class'__main__.Author'>MichaelCrichtonwhy did it returnAuthorinstance and notParentAuthorinstance?if you look closely at the response{
  "data": {
    "authors": [
      {
        "name": "Michael Crichton",
        "__typename": "Author"
      }
    ]
  }
}ParentAuthoris implementor forAuthorandSmallAuthorand in our query the__typenamereturnedAuthor, so greff automatically created the correct python instace
Package: grefornoobs
GRE for NoobsGRE for Noobs is a python library that helps you with your GRE preparation. It has features such as adding new words in your vocabulary database, trying random vocabulary quizzes, etc.Installationpip install grefornoobsHow to use it?Import the libraryimport greStart building necessary databasegre.start()Start recording your progressgre.hello()GRE basic informationsgre.about()Add new words in your vocabulary filegre.new()Find meaning of a wordgre.meaning()View all words in a setgre.set()Flashcard of a setgre.flash()Try a random vocabulary quizgre.exam()See your progressgre.progress()Updates database from the internetgre.update()Ask for helpgre.help()ContributeIf you have discovered a bug or something else you want to change, feel free to contact the author atabdussamiakanda@gmail.com.License© 2021 Md. Abdus Sami AkandaThis repository is licensed under the MIT license. See LICENSE for details.