Saravanan666/pypi-org huggingface dataset:
Package: python-graphql-client
Python GraphQL ClientSimple package for making requests to a graphql server.Installationpipinstallpython-graphql-clientUsageQuery/Mutationfrompython_graphql_clientimportGraphqlClient# Instantiate the client with an endpoint.client=GraphqlClient(endpoint="https://countries.trevorblades.com")# Create the query string and variables required for the request.query="""query countryQuery($countryCode: String) {country(code:$countryCode) {codename}}"""variables={"countryCode":"CA"}# Synchronous requestdata=client.execute(query=query,variables=variables)print(data)# => {'data': {'country': {'code': 'CA', 'name': 'Canada'}}}# Asynchronous requestimportasynciodata=asyncio.run(client.execute_async(query=query,variables=variables))print(data)# => {'data': {'country': {'code': 'CA', 'name': 'Canada'}}}Subscriptionfrompython_graphql_clientimportGraphqlClient# Instantiate the client with a websocket endpoint.client=GraphqlClient(endpoint="wss://www.your-api.com/graphql")# Create the query string and variables required for the request.query="""subscription onMessageAdded {messageAdded}"""# Asynchronous requestimportasyncioasyncio.run(client.subscribe(query=query,handle=print))# => {'data': {'messageAdded': 'Error omnis quis.'}}# => {'data': {'messageAdded': 'Enim asperiores omnis.'}}# => {'data': {'messageAdded': 'Unde ullam consequatur quam eius vel.'}}# ...Advanced UsageDisable SSL verificationSet the keyword argumentverify=Falseether when instantiating theGraphqlClientclass.frompython_graphql_clientimportGraphqlClientclient=GraphqlClient(endpoint="wss://www.your-api.com/graphql",verify=False)Alternatively, you can set it when calling theexecutemethod.frompython_graphql_clientimportGraphqlClientclient=GraphqlClient(endpoint="wss://www.your-api.com/graphql"client.execute(query="<Your Query>",verify=False)Custom Authenticationfromrequests.authimportHTTPBasicAuthfrompython_graphql_clientimportGraphqlClientauth=HTTPBasicAuth('fake@example.com','not_a_real_password')client=GraphqlClient(endpoint="wss://www.your-api.com/graphql",auth=auth)RoadmapTo start we'll try and use a Github project board for listing current work and updating priorities of upcoming features.ContributingRead theContributingdocumentation for details on the process for submitting pull requests to the project. Also take a peek at ourCode of Conduct.Authors and AcknowledgementKudos to @xkludge, @DaleSeo, and @mattbullock for getting this project started.LicenseMIT License
Package: pythongraphrunner
Python Graph RunnerThis project is a really simple piece of code that runs code in response to state transitions in a simple finite state machine. I built it due to this model being useful to represent a lot of tasks inolving scraping, automated builds and related things, and I made it public in case anyone wants to use it.I'm not really going to actively maintain this, it's going to behave more like a Gist where you can take code from this repo and use it, or install the package.
Package: python-graspfile
A package for reading, manipulating and eventually writing files output from TICRA Tools GRASP and CHAMP software using
numpy etc.Free software: MIT licenseInstallationpip install python-graspfileYou can also install the latest release candidate version with:pip install --index-url https://test.pypi.org/simple/ python-graspfileYou can install the latest in-development version with:pip install https://github.com/Smithsonian/python-graspfile/archive/master.zipDocumentationhttps://python-graspfile.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.3.5 (2020-10-01)Add functions for calculating reflectance and transmission - useful for correcting for lack of AR coatings in
GRASP PO calculations of lens and dielectrics.0.3.4 (2020-10-01)Add scaling of fields and grids by factors0.3.3 (2020-09-30)Bug fixes to plot0.3.2 (2020-09-30)Add useful functions and functionality for plotting and combining different grids and fields inplotsubmodule.0.3.1 (2020-09-21)Adds a method for summing fields within a grid object (e.g. to make an incoherent sum over frequencies)
and a function for adding grid (e.g. to add one analysis output to another).0.3.0 (2020-06-21)Introduce analysis submodule0.2.0 (2020-04-28)Change ownership of repo to Smithsonian GitHub teamIncorporate.torfile parsing0.1.3 (2020-03-10)Packaging changes to allow automated pushes to PyPI and TestPyPI0.1.2 (2020-03-10)More bug fixes to work with older GRASP 10.0 cut files0.1.1 (2020-03-18)Initial bug fixes to work with older GRASP 10.0 cut files0.1.0 (2020-03-18)Initial attempts to work with older GRASP 10.0 files0.0.1 (2020-02-04)Initial creation from PaulKGrimes/GraspFile and PaulKGrimes/CHAMPEdxFile repos
Package: python-gratisdns
python-gratisdnsA project which aims to combine the ease of python, with the power of GratisDNS.This is a rewrite of the original implementation fromhttps://github.com/madssj/python-gratisdnsaiming to support the new
admin interface and python 3.Installationpip install python-gratisdnsExamplesTo be documented...All functionsTo be documented...
Package: python-greek-names
Python Greek NamesPython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://python-greek-names.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-17)First release on PyPI.
Package: pythongrid
pythongrid overviewMain development site:http://code.google.com/p/pythongrid/Contibutors: Chris Widmer, Cheng Soon OngThis module provides high level functionality for cluster computing in python using the Sun Grid Engine. As some cluster environments are notoriously unreliable, pythongrid attempts to handle job monitoring and resubmission (in case of sudden death of nodes) under the hood, while providing the user with a simple map-reduce like interface.Main features:
- Uses ZMQ-based heart-beat to monitor job status
- Robust error detection (out-of-memory, node failure)
- Automated resubmission in case of unexpected failure
- Error emails, including CPU/MEM statistics
- Optional web-interface to monitor jobs
- Let’s you easily switch between local multiprocessing and cluster computingDependencies
- pyZMQ
- drmaa-pythonGet started (now on Pypi!):
- easy_install pythongrid
- adjust pythonrid_cfg.pyChangelog:2013-07-08: fixed some issues with pythongrid_cfg.py
Package: python-groupmeapi
GroupMe API Python WrapperA simple python library that aims to encompass all features of GroupMe present in thier documentation inhttps://dev.groupme.com/docs/v3Use CasesThis library is not meant to be used to create a full fledged GroupMe client. It is meant to be used to automate GroupMe (for example, bots, automatic message sending/replying, etc.)DisclaimerBecause of the uses of this library, I will not be prioritzing it as much as I will other GroupMe projects, as it is simply an API wrapper.Documentation for this libraryEvery method in this library, unless otherwise stated below, will return one of the following:An error (see error section)A python object (see below)A dictionary object that has the same structure as its corresponding API endpoint in thehttps://dev.groupme.com/docs/v3True, if there is no return data stated in the offical docs and there wasn't an error raised before it is returnedgenerally, if the main message of a result is encompassed in a name, eg: "messages": [] will just be returned as [], and "between": True will just be returned as True. Refer to documentation so you know when this will happenMethods that will return a different value than a dictionary object with the same structure as its corresponding API endpoint:user.get_groups(): [Group object] (Note: [] means a list of objects)user.get_former_groups(): [Group object]user.create_group(): Group objectuser.update_group(): Group objectgroup.add_members(): String (results id) (See documentation for its purpose)user.change_owner(): Boolean (True for success, False if not) (Note: this method only supports changing the owner of one group at a time, unlike the endpoint stated in the offcial docs)user.get_dms(): [DM object]user.create_bot(): Bot objectuser.get_bots(): [Bot object]user.does_block_exist(): Boolean (True if exists, False if not)FutureThe image service will be implemented soonMaybe a websocket service for live events?
Package: pythonGroupMsg
Recently, I’m going to do something like chat software. After a lot of testing, I’ve done this thing.Performance is 13 times faster than py direct circular transmissioninstallpip install pythonGroupMsgpush msgpythonimport pythonGroupMsg
import datetime
import logging
e = []
if __name__ == '__main__':
    aatime = datetime.datetime.now()
    for c in range(1,3):
        e.append(c)
    a = pythonGroupMsg.GroupMessage(profix="id:", idlist=e,loglevel=logging.INFO)
    a.initAllGroup()
    print("100000 queue init",(datetime.datetime.now() -aatime).microseconds/1000000,"s")
    bbtime = datetime.datetime.now()
    for d in range(1,10):
        a.sendAllQueue("hello world"+str(d))
    print("100 message send on queue",(datetime.datetime.now() - bbtime).microseconds/1000000,"s")
    a.addGroup("chat",660)
    a.addGroup("chat",661)
    a.addGroup("chat",662)
    print(a.setGroup)
    a.sendGroup("chat","helloworldsadasdasd")
    a.sendGroup("chat","helloworldsadasdasdas")
    for _ in range(0,2):
        print(a.poll(660))
        print(a.poll(661))
        print(a.poll(662))
    a.removeIdOfGroup("chat",660)
    a.sendGroup("chat","helloworldsadasdasd")
    a.sendGroup("chat","helloworldsadasdasdas")
    for _ in range(0,2):
        print(a.poll(660))
        print(a.poll(661))
        print(a.poll(662))
    a.removeGroup("chat")
    print(a.setGroup)
    print(a.allQueue)
    a.removeQueue(660)
    a.removeQueue(1)
    a.removeQueue(2)
    print(a.allQueue)
Package: python-grpc-prometheus
python-grpc-prometheusChangeLogInstallationInstallation from PyPI:pip install python-grpc-prometheusUsageCheck the available interceptors in the source code. This example uses thePromServerInterceptor.
Usage example:importgrpcfromconcurrent.futuresimportThreadPoolExecutor# Importing this whole package so that I can use prometheus_client.start_http_server()# instead of just start_http_server(), which is not too descriptive. But it's your call.importprometheus_clientfrompython_grpc_prometheus.prometheus_server_interceptorimportPromServerInterceptor# Add the required interceptor(s) where you create your grpc server, e.g.psi=PromServerInterceptor()server=grpc.server(ThreadPoolExecutor(max_workers=10),interceptors=(psi,))# Start the http server where prometheus can fetch the data from. Use whatever listen port you prefer.prometheus_client.start_http_server(8000)# ...Now, when running your application, you can checkhttp://localhost:8000in a browser.
Note: thegrpc_*metrics will just show commented out (with their descriptions) until your application actually receives gRPC calls.TODOadd stream support
Package: python-gsmmodem
python-gsmmodem is a module that allows easy control of a GSM modem attachedto the system. It also includes a couple of useful commandline utilities forinteracting with a GSM modem.Its features include:- simple methods for sending SMS messages, checking signal level, etc- easy-to-use API for starting and responding to USSD sessions and making voice calls- handling incoming phone calls and received SMS messages via callback methods- support for SMS PDU and text mode- support for tracking SMS status reports- wraps AT command errors into Python exceptions by default- modular design; you easily issue your own AT commands to the modem with error(with error checking), or read/write directly from/to the modem if you prefer- comprehensive test suiteBundled utilities:- GSMTerm: an easy-to-use serial terminal for communicating with an attached GSMmodem. It features command completion, built-in help for many AT commands,history, context-aware prompt, etc.- sendsms.py: a simple command line script to send SMS messages- identify-modem.py: simple utility to identify attached modem. Can also be used toprovide debug information used for development of python-gsmmodem.
Package: python-gssapi
Important NoteThere is a newer project which has superseded this one,https://github.com/pythongssapi/python-gssapi.
Please use that package if suitable for your needs, as this project is unlikely to be developed further.AboutPython-GSSAPI is a Python binding to the Generic Security Service Application Program Interface
(GSSAPI). The GSSAPI provides a uniform interface to security services which applications can use
without having to worry about implementation details of the underlying mechanisms. The most
commonly used mechanism is Kerberos v5, and this package provides an easy way to use Kerberos
authentication and security from Python code.The GSSAPI version 2 is specified inRFC 2743and the C
language bindings which this package is based on are specified inRFC 2744.GoalsThe goals for this package are to provide a GSSAPI wrapper which is:Pythonic and object-oriented.Compatible with Python 2 and 3 on both CPython and PyPy.Covering the full range of features in the GSSAPI.This package is implemented using CFFI for compatibility with PyPy, and is also compatible and tested with Python 3.This package also covers the full scope of the GSSAPI’s features including delegating credentials, selection of different mechanisms, different name types, MICs, channel bindings and anonymous authentication.In contrast with some other Kerberos or GSSAPI packages, which require the user to do manual memory management and permit memory leaks, memory associated with objects in this package is freed automatically when the objects are garbage-collected by Python.DocumentationDocumentation is available athttp://pythonhosted.org/python-gssapi.Source code and Issue TrackingSource code is hosted onGithuband issues with the package can be filed on the Github project.
Package: python-gtbmm
python-gtbmmA python library providing an interface to interact with the Guaranty Trust Bank Mobile Money serviceInstallingYou can install python-gtbmm viaPyPi. To install the latest stable version:$ pip install python-gtbmmmUsageUsing python-gtbmm in your project is very easy:import gtbmm
mm = gtbmm.GTBMobileMoney('2348012345678', '1111') # specify your account number and pin
transactions = mm.history()
result = mm.send('2348012345679', '1000') # send 1000 naira to 2348012345679Licensepython-gtbmm is free software, available under the BSD license.DependencieslxmlRequestspytestContributingPlease feel free to fork this project and submit pull requests. If you’ve found a bug,
also feel free to fix it and submit a pull request. If you can’t submit a patch, then
report bugs by creating an issue on theissue tracker.
Package: python-gtkmvc3-dlr
Copyright (C) 2005-2018 by Roberto Cavada <roboogle AT gmail.com>New VersionsNew versions of this package can be found at: <https://github.com/DLR-RM/gtkmvc3>Original VersionThe original version can be found at: <https://github.com/roboogle/gtkmvc3>LicenseThis software is covered by the GNU Library General Public License
(version 2, or if you choose, any later version).How to use itSee the provided examples, read the documentation and tutorial.Contacting the AuthorsIf you have any enhancements implemented or still in mind, or bug
reports, please see contact information at the URL:https://github.com/roboogle/gtkmvc3Many thanks toTobias Weber for providing such valuable
support, patches, feedback, and for finally joining the project
development.Ionutz Borcoman <borco AT go.ro>
for setup.sh and other installation/packaging issues.Tom Cato Amundsen, Philippe Bouige, Leon Darmawangsa,
Michal Pasternak, Christian Robottom Reis
for feedback they providedAll users that provided me with patches, feedback and bug reports.
Package: python-gtkmvc-dlr
Copyright (C) 2010 by Roberto Cavada <roboogle AT gmail.com>New VersionsNew versions of this package can be found at:<http://pygtkmvc.sourceforge.net>LicenseThis software is covered by the GNU Library General Public License
(version 2, or if you choose, any later version).How to use itSee the provided examples, read the documentation and tutorial.Contacting the AuthorsIf you have any enhancements implemented or still in mind, or bug
reports, please see contact information at the URL:http://sourceforge.net/apps/trac/pygtkmvcMany thanks toTobias Weber for providing such valuable
support, patches, feedback, and for finally joining the project
development.Ionutz Borcoman <borco AT go.ro>
for setup.sh and other installation/packaging issues.Tom Cato Amundsen, Philippe Bouige, Leon Darmawangsa,
Michal Pasternak, Christian Robottom Reis
for feedback they providedAll users that provided me with patches, feedback and bug reports.
Package: python-gtmetrix2
python-gtmetrix2is a Python client library forGTmetrixREST APIv2.0(hence 2 in the name).Inspired by thelibrary with a similar
name.Installation:via pippipinstallpython-gtmetrix2manualClone or download and extract the repositoryCopy thesrc/python-gtmetrix2directory to your project directoryUsage:Simplest example:importjsonimportpython_gtmetrix2api_key="e8ddc55d93eb0e8281b255ea236dcc4f"# your API keyurl="http://example.com"# URL to testaccount=python_gtmetrix2.Account(api_key)# inittest=account.start_test(url)# start testtest.fetch(wait_for_completion=True)# wait for it to finishreport=test.getreport()# get test resultprint(json.dumps(report,indent=2))# do something useful with itFor a wordy introduction into this library,
or a more technical explanation,dive into the docsVersioning:This project followssemverversioning scheme. Note that according to the semver, as long as the version
number starts with 0, no guarantees regarding compatibility are given.  Hence,
when anyone starts using this library, please let the author know about it, so
we can bump version number to one and “freeze” API compatibility.
Package: python-guerrillamail
Python Guerrillamail is a Python client API and command line interface for
interacting with aGuerrillamailtemporary email server.Installationpipinstallpython-guerrillamailExample UsageCreate session using auto-assigned email address, print email address and print
id of first message in inbox:fromguerrillamailimportGuerrillaMailSessionsession=GuerrillaMailSession()printsession.get_session_state()['email_address']printsession.get_email_list()[0].guidExample CLI UsageSet email address:$ guerrillamail setaddr john.doe
$ guerrillamail info
Email: john.doe@guerrillamailblock.comList inbox contents:$ guerrillamail list
(*) 48859781  23:45:27+00:00  spam@example.com
Example messsage 2

(*) 48859574  09:25:01+00:00  spam@example.com
Example message

( ) 1         00:00:00+00:00  no-reply@guerrillamail.com
Welcome to Guerrilla MailRead email message:$ guerrillamail get 48859781
From: spam@example.com
Date: 2016-06-11 23:45:27+00:00
Subject: Example message 2

Example Guerrillamail message body.Using Alternative Guerrillamail ServerBy default,http://api.guerrillamail.comis used as the base URL for
Guerrillamail API calls. This can be overridden by providing thebase_urlproperty when constructing a GuerrillaMailSession instance. When using the CLI
thebase_urlproperty can be defined in the~/.guerrillamailJSON
config file, for example:{"base_url":"https://api.guerrillamail.com"}LicensePython Guerrilla Mail is free software, licensed under the GPLv3.Change History0.2.0Add support for Python 3.3, 3.4 and 3.5.Add “guerrillamail” executable.0.1.2Fix mail “excerpt” property.0.1.1Remove version restriction on Requests dependency.0.1.0Initial release.
Package: python-guerrilla-mail-brb
Python Guerrillamail is a Python client API and command line interface for
interacting with aGuerrillamailtemporary email server.Installationpipinstallpython-guerrilla_mail_brbExample UsageCreate session using auto-assigned email address, print email address and print
id of first message in inbox:fromguerrillamailimportGuerrillaMailSessionsession=GuerrillaMailSession()printsession.get_session_state()['email_address']printsession.get_email_list()[0].guidExample CLI UsageSet email address:$ guerrillamail setaddr john.doe
$ guerrillamail info
Email: john.doe@guerrillamailblock.comList inbox contents:$ guerrillamail list
(*) 48859781  23:45:27+00:00  spam@example.com
Example messsage 2

(*) 48859574  09:25:01+00:00  spam@example.com
Example message

( ) 1         00:00:00+00:00  no-reply@guerrillamail.com
Welcome to Guerrilla MailRead email message:$ guerrillamail get 48859781
From: spam@example.com
Date: 2016-06-11 23:45:27+00:00
Subject: Example message 2

Example Guerrillamail message body.Using Alternative Guerrillamail ServerBy default,http://api.guerrillamail.comis used as the base URL for
Guerrillamail API calls. This can be overridden by providing thebase_urlproperty when constructing a GuerrillaMailSession instance. When using the CLI
thebase_urlproperty can be defined in the~/.guerrillamailJSON
config file, for example:{"base_url":"https://api.guerrillamail.com"}LicensePython Guerrilla Mail is free software, licensed under the GPLv3.Change History0.1.0Initial release.
Package: pythonguts
pythongutsIf your project depends on some external python projects and
you want to make some changes in external functions/methods
and then copy/paste these changes automatically - this package may help you.There is a tooleditpywich we will discuss.Same tool aimed at editingcppfiles is also available ascppgutsInstallationpythongutsis available atPyPI:pipinstallpythongutsThe idea behindeditpytooleditpyusesastorto find replaceable functions and replaces matching functions.To find common functioneditpychecks:are they bothfunctions?do they both have the same name?do they both have the same args?do they both have the same parent (i.e. classname for example)?Exampleoriginal function/method definition filedest.py:classMyClass:defmy_method(self,i:float,j:int,k:float)->float:return0deffoo(i:float)->float:returnidefbar():return0# this function stays unchangeddefunchanged():return0new function/method definition filesrc.py:classMyClass:defmy_method(self,i:float,j:int,k:float)->float:print('new definition')return0deffoo(i:float)->float:print('new definition')returnidefbar():print('new definition')return0Run:editpy --src-file=src.py --dest-file=dest.py --oldfile-keep--oldfile-keep(default) is used to keep the original file (it will be renamed by adding_OLD_Nsuffix). Otherwise use--oldfile-deleteto delete the original file.Another option is to run the test (though the test deletes all the generated files so you better take a look in/testsdir):python -m unittest pythonguts.tests.test_pythonguts