Saravanan666/pypi-org huggingface dataset:
Package: growlery
Growlery - The Clan Quest OSRS Discord BotEver since the untimely demise of RuneInfo, there's been a lack of OSRS support
in the Discord bot department. While RuneScape 3 has Elenora, it doesn't
support OSRS.The Council of Elders looked about them and saw regression, not progress. The
decision was made by the wisest: a new bot would be hardened and removed from
the cycle. Its power would herald a new era.TypeBadgesPyPITestsActivityQAOtherInstallationThe project is currently available both as a source release, and as a wheel,
via PyPIpipinstallgrowleryand as GitHub releases.Installation requires Python 3.10 or newer. The project is platform-independent
and should work fine on all major operating systems. Each release has been
automatically tested to run on Windows, Ubuntu, and Mac OS.To run the bot, either manually executegrowlery/main.pyor, alternatively,
you may run it as an executable packagepython-mgrowleryas long as the needed environmental variables have been set.UsageThe bot expects a Discord authentication token to be given via an environmental
variable calledDISCORD_TOKEN. It can alternatively be provided by writing it
to a file called.envand placing that inside thegrowleryfolder. An
example file could look like this:DISCORD_TOKEN=MzA5NzY3Njg0NzcwMTg1NzIy.V89mA1.9R8aoZ4vwhCUbIEd20BtzkVquLGNote that the example token is just a dummy.If you need to generate a token, go to theDiscord developers pageand create a new bot.This tutorialmay prove useful.The only required permissions are:Read Messages/View ChannelsSend MessagesUse Slash CommandsBut for future-proofing, the following are recommended:Manage MessagesManage ThreadsEmbed LinksAttach FilesRead Message HistoryAdd ReactionsFeaturesMinimal dependenciesSupports fetching and printing hiscores, minigame scores, and boss kills as formatted text tables on DiscordGraceful handling of invalid usernamesList of supported commands:/07hs <username>Prints a table with the given user's stat hiscores, if available/07hs-minigames <username>Prints a table with the given user's minigame hiscores, if available/07hs-bosses <username>Prints a table with the given user's boss kills, if availableThe hiscores commands support additional postfixes for different kinds of rankings. Aside from the default, you can fetch the ranks for:Ironmen (eg./07hs-im <username>)Hardcore Ironmen (eg./07hs-hcim <username>)Ultimate Ironmen (eg./07hs-uim <username>)Skillers (eg./07hs-skiller <username>)1-defence pures (eg./07hs-def <username>)Planned featuresFetching skill hiscoresFetching minigame hiscoresFetching boss hiscoresPlayer comparisonsStoring usernames for Discord IDsSupport for the new Slash CommandsCaught a Bug?Forkthis repository to your own GitHub account and
thencloneit to your local deviceInstallpoetry(if it isn't already installed)Runpoetry install --with dev,linters,testsin the project directory. This fetches development
dependencies likepytestand sets up everything for you to start debuggingAs always, you can run the tests using:poetry run pytest
Package: growlnotify
Installation$[sudo]pipinstallgrowlnotifyExamples>>>importgrowlnotify>>>growlnotify.notify(t="title",m="message")# -t "title" -m "message">>>growlnotify.notify(title="title",message="message")# --title "title" --message "message"-s,--sticky>>>growlnotify.notify(title="title",s=True)# -s>>>growlnotify.notify(title="title",sticky=True)# --stickygrowlnotify keys$growlnotify--helpLinksgrowl.inforeadme42.com
Package: growlog
A simple CLI garden journalFree software: MIT licenseInstallationpip install growlogQuickstart$ growlog> No growlog found, creating a new one!What type of plant is this?:…You can also see the help menu:$ growlog –helpUsage: growlog [OPTIONS]Options:--addAdd a crop to your growlog--updateUpdate a crop in your growlog--removeRemove a crop from your growlog--helpShow this message and exit.Documentationhttps://growlog.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.4.1 (2018-7-02)Add Quickstart docs to README0.4.0 (2018-6-30)Add CRUD operations (create/read/update/delete) to growlog cli0.3.0 (2018-6-10)Create new growlog if none is found when using growlog cli cmd0.2.0 (2018-06-09)Display current log using growlog cli cmd
Package: grown
GrownSensorbased plattform to create various tasks, apart from gathering data.
The basic idea is to get a firmware for growing plants taking light and watering into a
hand of a microcontroller.RequirementsAny Micropython board available or further anything which can run micropython.InstallationUpdate and package installation will all be provided via upip.:import upip
upip.install('grown')enabling the software and configuration is users choice.
Like the webrepl in python is adding a call in your boot or main.py nesserary for activation
like:from grown import setup, run_grown

router = setup()
# add more tasks or add site to the router

run_grown()Setup of grown starts a timesync task and wlan configuration.
After the run_grown a webserver is opened with a rest interface to change settings for each task.SwaggerEvery action and info you add to the router is automaticly provided as open api provided by grown.
We use swagger.ui as description which can be used standalone.
For useing just explore the given link in the ui
Example:http:\\myiotdevice\swagger.jsonThis way after adding all controls you have a good base to develop further views or test
the given params.data controlThis module to log data overtime from your sensors. Enable logging is prety simple write a
function which returns a dict with key as name and value.
Those function is called overtime and will be logged.Example:from grown.data_control import add_data_control

async def mydata():
    return {
        "water": 0,
        "light": 0,
    }

add_data_control(router, mydata)light controlEvery plant needs light so we need to control these by a timetable.
We need at least 2 functions one to activate and one to deactivate the light.Example:from grown.light_control import add_light_control

async def activate():
    print("activate")

async def deactivate():
    print("deactivate")

add_light_control(router, activate, deactivate)loggingif you want to add something to the log because you write your own task and so on.
Example:from grown.logging import grown_log

grown_log.info('new entry')its a ulogging instance from the logger with an add that it logs data not only to console
but also to the file run_information.log.
This might get handy in debugging log term bugs.storeAnother interal element is the store. ItÂ´s a minimal redux which also stores
every update to the filesystem.Example:from grown.store import storage

def _update_reducer(store_dict, data):
    return store_dict.update(data)

storage.register_leaf(
        'mydata',
        {
        },
        _update_reducer
    )


leaf = storeage.get_leaf('mydata')

leaf.update({'new_data': 3.0})

print(leaf.get())
Package: growpy
GrowPyProject DescriptionFor questions and comments contact the developer directly at:seilis@unbc.ca.InstallationGrowPy is available throughPyPi, and can be installed viapipusingpip install growpyorpip3 install growpyExample Usagefromgrowpyimportmodelsimporttensorflowastfimportmatplotlib.pyplotasplt# Constuct/Import datax=tf.abs(tf.random.uniform((100000,1),0,10))y=500/(1+(500-50)/50*tf.exp(-0.5*x))# Construct modelmodel=models.GeneralizedLogistic()optimizer=tf.keras.optimizers.Nadam()loss=tf.keras.losses.MeanSquaredError()model.compile(optimizer=optimizer,loss=loss)# Train modelhistory=model.fit(x,y,epochs=100,batch_size=1000)# Inspect resultsprint(model.weights)fig,axes=plt.subplots(2,1)axes[0].scatter(x,y,alpha=0.5,s=1)axes[0].scatter(x,model(x),alpha=0.5,s=1)axes[0].set_ylabel('y')axes[0].set_xlabel('x')axes[1].plot(history.history['loss'])axes[1].set_ylabel('MSE')axes[1].set_xlabel('Epoch')plt.show()LicenseBSD 3-Clause LicenseCopyright (c) 2021, Galen Seilis
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: growstocks
A wrapper for the GrowStocks API, made for both synchronous and asynchronous applications.PyPI:https://pypi.org/project/growstocks/Docs:https://growstocks.readthedocs.io/en/latest/InstallationYou can install released versions of growstocks from the Python Package Index via pip or a similar tool:Stable Release:pip install growstocksWorking Version:pip installgit+https://github.com/BobDotCom/growstocks.gitUsage>>>importgrowstocks>>>client=growstocks.Client(913117854995652992,"T%GRD4iEiFmgyYE!O5&ZCx3Rn%uqwPV3")>>>client.default_scopes=growstocks.Scopes(profile=True,balance=True,discord=True)>>>user=client.auth.fetch_user('31G4k57rG3asdyyi5Lqk')>>>dict(user){'discord_id':'690420846774321221','id':1916,'name':'BobDotCom','email':None,'growid':'Bob430','balance':3}Using AsyncTo use in an async context, just useimport growstocks.aio as growstocksas your import and make sure to await the functions marked as coroutines.importgrowstocks.aioasgrowstocks
Package: growtopia.py
growtopia.pyA simple asynchronous API for Growtopia, capable of creating servers, clients, and more!InstallationRequirementsPython 3.9 or abovePyENet(If installing growtopia.py from PyPI)Installing from sourceClone the repository.Open a terminal in the repository's directoryInstall it using pip.gitclonehttps://github.com/kaJob-dev/growtopia.py.gitcdgrowtopia.pypip(3)install-U.Installing from PyPIPlease do note that installing growtopia.py from PyPI will require you to installPyENetyourself, as PyPI does not support direct dependencies. This'll be resolved in the future by simply havingPyENetavailable in PyPI too.pip(3)installgrowtopia.pyContributingAll contributions are welcome! If you'd like to contribute, please make a pull request.Please make sure that your code is formatted correctly before making a new pull request. This project is formatted usingblackandisortto sort imports. Read through open and closed pull requests and ensure that no one else has already made a similar pull request.To install and format your code using black and isort, run the following commands:pip(3)installblackpip(3)installisortblack./growtopiaisort./growtopiaLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.Thanks toRebillionXX- For theiropen-source Growtopia server, which helped with the development of this project.
Package: grpc-accesslog
FeaturesWrite stdout logs for every RPC requestLog messages built with customizable callback handlersRequirementsPython 3.8+grpc-interceptors 0.13+InstallationYou can installgRPC Access LogviapipfromPyPI:$pipinstallgrpc-accesslogUsagePlease see theReferencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,gRPC Access Logis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
Package: grpcalchemy
gRPCAlchemyThe Python micro framework for building gPRC application based on officialgRPCproject.Free software: MIT licenseDocumentation:https://grpcalchemy.readthedocs.io.Installation$pipenvinstallgrpcalchemy✨🍰✨OnlyPython 3.6+is supported.ExampleServerfromgrpcalchemy.ormimportMessage,StringFieldfromgrpcalchemyimportServer,Context,grpcmethodclassHelloMessage(Message):text:strclassHelloService(Server):@grpcmethoddefHello(self,request:HelloMessage,context:Context)->HelloMessage:returnHelloMessage(text=f'Hello{request.text}')if__name__=='__main__':HelloService.run()Then Using gRPC channel to connect the server:fromgrpcimportinsecure_channelfromprotos.helloservice_pb2_grpcimportHelloServiceStubfromprotos.hellomessage_pb2importHelloMessagewithinsecure_channel("localhost:50051")aschannel:response=HelloServiceStub(channel).Hello(HelloMessage(text="world"))FeaturesgPRC Service SupportgRPC Message SupportScalar Value TypesMessage TypesRepeated FieldMapsDefine Message With Type HintMiddlewareApp Context MangerError Handler SupportStreaming Method SupportgRPC-Health Checking and Reflection Support (Alpha)Multiple Processor SupportTODOTest Client SupportAsync Server SupportHistory0.7.*(2021-03-20)Improve initialize function of messageRemove default feature in messageRefactor composite message TypeSupport gRPC with xDSAddPROTO_AUTO_GENERATEDsetting to make runtime proto generation optional0.6.*(2020-10-27)fix [#36] compatibility in windowsfix [#34] compatibility in windowsgRPC-Health Checking and Reflection Support (Alpha)Multiple Processor Support0.5.0(2020-04-27)Support Streaming MethodDeprecate request parameter in app context and handle exception0.4.0(2019-09-24)Support related directory path to generate protocol buffer filesEnable use type hint to define messageAdd error handle to handle ExceptionAddget_blueprintsto get blueprints need to register0.3.0(2019-08-19)https://github.com/GuangTianLi/grpcalchemy/projects/10.2.7-10(2019-04-16)Support SSLImprove Implement of Server with grpc.serverSupport YAML file in Config ModuleImprove Config ModuleAdd context in current rpc0.2.5-6(2019-03-06)Implement Rpc ContextImprove Config Module0.2.4(2019-03-01)Implement Globals VariableImplement APP Context0.2.2-3 (2019-02-26)Improve Config moduleImprove rpc_call_wrap0.2.1 (2019-02-14)Implement Own gRPC ServerImplement gRPC Server Test Client0.2.0 (2019-01-30)Change gRPCAlchemy Server register to register_blueprintMake gRPCAlchemy Server inherit from BlueprintSupport Json FormatSupport Inheritance Message0.1.6 (2019-01-21)Various bug-fixesImprove testsChange Client APIAdd PreProcess And PostProcessImport Config ObjectAdd Event ListenerChange Field Object Into Descriptor0.1.5 (2018-12-14)Various bug-fixesImprove testsAdd client0.1.4 (2018-12-11)First release on PyPI.
Package: grpc-client
#Python GRPC ClientA simple GRPC client to easy use.##Requirements:grpcio
protobuf##How to use:from grpc_client.bbase_client import BaseClient

def CallbackFunction(response):
    return response

client = BaseClient(
    host='Host',
    port='Port',
    stub_class=GrpcStubClass,
    call_func='stub_function_name',
    data={'request': GrpcRequestFunction},
    response_callback=CallbackFunction
).execute()
Package: grpc-connection-forwarder
gRPC Connection Forwardergrpc_connection_forwarderis a Python package that helps you forward incoming TCP connections to a gRPC server. It is particularly useful when you need to track the number of active connections.FeaturesForward incoming TCP connections to a gRPC serverConnection counter with callback supportThread-safe implementationEasy integration with existing gRPC serversInstallationYou can installgrpc_connection_forwarderusing pip:pipinstallgrpc_connection_forwarderUsageHere's a simple example of how to use grpc_connection_forwarder with a gRPC server:importgrpcfromgrpc_connection_forwarderimportGrpcConnnectionForwarderfromyour_grpc_packageimportYourGRPCServer# Initialize your gRPC servergrpc_server=grpc.server(thread_pool=ThreadPoolExecutor())your_grpc_service=YourGRPCServer()# ... (add your services to the gRPC server)# Define a callback function to handle connection count changes (optional)defconnection_count_callback(count):print(f"Connected users:{count}")# Initialize the gRPC Connection Forwarderforwarder=GrpcConnnectionForwarder(grpc_server,callback=connection_count_callback)# Start the forwarderforwarder.serve(host='localhost',port=50051)ContributingWe welcome contributions togrpc_connection_forwarder. If you find a bug or want to propose a new feature, please open a GitHub issue or submit a pull request.LicenseThis project is licensed under the MIT License. SeeLICENSEfor details.
Package: grpc-gateway-protoc-gen-openapiv2
gRPC Gateway SupportThis repo generates the missing Python code to support code generated usinggRPC Gatewayprotoc annotations.This package depends ongoogleapis-common-protosto providegoogle.api.annotations_pb2and others that
the generated code will depend on.Usagepipinstallgrpc-gateway-protoc-gen-openapiv2BuildingInstall go./gen-openapi-proto.shwill generate the code from grpc-gateway.python3 -m pip install --upgrade build && python3 -m buildto build the package.optional- setup PyPi credentials andpython3 -m pip install --user --upgrade twine && python3 -m twine upload --repository pypi dist/*
Package: grpc-google-iam-v1
IAM API:Client Library DocumentationProduct DocumentationInstallationInstall this library in avirtualenvusing pip.virtualenvis a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.Withvirtualenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Supported Python VersionsPython >= 3.7Mac/Linuxpip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install grpc-google-iam-v1Windowspip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install grpc-google-iam-v1Next StepsRead theClient Library Documentationfor IAM
API to see other available methods on the client.Read theIAM API Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: grpc-helper-api
grpc-helper-apiShared API files forGRPC helpersCommon APIThecommon.protofile provides reusable API elements for other services (error codes, return status, etc)Server handling APIThis API defines aserver handling servicethat can be used to fetch services/components information, and control global server behaviors.Config APIThis API defines aconfig servicethat handles configuration items.Logger APIThis API defines alogger servicethat handles loggers configuration.Event APIThis API defines anevents servicethat handles a generic event system.
Package: grpc-invoke
Grpc InvokeThis is a package for python grpc client like grpcurl.As We knowgrpc's work mode is generating client and server via proto file, But sometime we can't get the proto file.If you are facing the problem above, this tool may help you a lot.Featuresyou can do requests without any proto objectyou can request your grpc server like httpyou can use dictionary as your request datasupport streamsupport asynciosupport tlsGetting Started$pipinstallgrpc-invokefromgrpc_invoke.grpc_clientimportGrpcClientwithGrpcClient("localhost:50052","Service","method")asclient:resp=client.invoke(data={"data":"hello"},header={"auth":"fdfefsssdffdg"})print(resp)Enjoy it!NoticeYou should enable your server reflection. what you have to do is:server=grpc.server(futures.ThreadPoolExecutor(max_workers=10))hello_pb2_grpc.add_HelloServicer_to_server(Greeter(),server)# startSERVICE_NAMES=(hello_pb2.DESCRIPTOR.services_by_name['Hello'].full_name,reflection.SERVICE_NAME,)# enable reflectionreflection.enable_server_reflection(SERVICE_NAMES,server)# doneserver.add_insecure_port('[::]:50052')server.start()server.wait_for_termination()SERVICE_NAMES=(hello_pb2.DESCRIPTOR.services_by_name['Hello'].full_name,reflection.SERVICE_NAME,)reflection.enable_server_reflection(SERVICE_NAMES,server)
Package: grpcio
Package for gRPC Python.Supported Python VersionsPython >= 3.7InstallationgRPC Python is available for Linux, macOS, and Windows.Installing From PyPIIf you are installing locally…$ pip install grpcioElse system wide (on Ubuntu)…$ sudo pip install grpcioIf you’re on Windows make sure that you installed thepip.execomponent
when you installed Python (if not go back and install it!) then invoke:$ pip.exe install grpcioWindows users may need to invokepip.exefrom a command line ran as
administrator.n.b. On Windows and on Mac OS X onemusthave a recent release ofpipto retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!Installing From SourceBuilding from source requires that you have the Python headers (usually a
package namedpython-dev).$ export REPO_ROOT=grpc  # REPO_ROOT can be any directory of your choice
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init

# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -r requirements.txt
$ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .You cannot currently install Python from source on Windows. Things might work
out for you in MSYS2 (follow the Linux instructions), but it isn’t officially
supported at the moment.TroubleshootingHelp, I …… see apkg_resources.VersionConflictwhen I try to install
grpcThis is likely becausepipdoesn’t own the offending dependency,
which in turn is likely because your operating system’s package manager owns
it. You’ll need to force the installation of the dependency:pip install --ignore-installed $OFFENDING_DEPENDENCYFor example, if you get an error like the following:Traceback (most recent call last):
File "<string>", line 17, in <module>
 ...
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
  raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))You can fix it by doing:sudo pip install --ignore-installed six… see the following error on some platforms/tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
                ^
compilation terminated.You can fix it by installingpython-devpackage. i.esudo apt-get install python-dev
Package: grpcio-admin
Debugging gRPC library can be a complex task. There are many configurations and
internal states, which will affect the behavior of the library. This Python
package will be the collection of admin services that are exposing debug
information. Currently, it includes:Channel tracing metrics (grpcio-channelz)Client Status Discovery Service (grpcio-csds)Here is a snippet to create an admin server on “localhost:50051”:server = grpc.server(ThreadPoolExecutor())
port = server.add_insecure_port(‘localhost:50051’)
grpc_admin.add_admin_servicers(self._server)
server.start()Welcome to explore the admin services with CLI tool “grpcdebug”:https://github.com/grpc-ecosystem/grpcdebug.For any issues or suggestions, please send tohttps://github.com/grpc/grpc/issues.
Package: grpcio-csds
CSDS is part of the Envoy xDS protocol:https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/status/v3/csds.proto.
It allows the gRPC application to programmatically expose the received traffic
configuration (xDS resources). Welcome to explore with CLI tool “grpcdebug”:https://github.com/grpc-ecosystem/grpcdebug.For any issues or suggestions, please send tohttps://github.com/grpc/grpc/issues.