Saravanan666/pypi-org huggingface dataset:
Package: python-roboticeclient
Python client forhttps://github.com/robotice/robotice-controlandhttps://github.com/robotice/roboticeInstallationpipinstallpython-roboticeclientroboticeclientDEBUG(client)GET-http://127.0.0.1:8004/device-{}INFO(connectionpool)StartingnewHTTPconnection(1):127.0.0.1DEBUG(connectionpool)"GET /device HTTP/1.1"200839{u'control-single.robotice.dev.mjk.robotice.cz':{u'actuators':{u'dummy1':{u'device':u'dummy',u'metric':u'random',u'type':u'dummy',u'port':u'bcm18'}},u'sensors':{u'dummy1':{u'device':u'dummy',u'metric':u'random',u'type':u'dummy',u'port':u'bcm18'},u'hygro_case1_do':roboticeclient-husage:robotice[-tTYPE][--hostHOST][-pPORT][-aACTION][-cCOLLECTION][--version][-d][-v]Optionalarguments:-tTYPE,--typeTYPEtyperoboticeorcontrol--hostHOSThost-pPORT,--portPORTport-aACTION,--actionACTIONlist,get,create,update-cCOLLECTION,--collectionCOLLECTIONcollectionUsage as Robotice ClientfromroboticeclientimportClient# listingsclient=Client(port=8004,host="127.0.0.1")printclient.devices.list()printclient.plans.list()printclient.systems.list()printclient.actions.list()client.actions.save(id,action)Usage as Robotice Control Client !fromroboticeclientimportClient# listingsclient=Client(type="control",port=9753,host="127.0.0.1")printclient.devices.list()printclient.plans.list()printclient.systems.list()printclient.actions.list()client.actions.save(id,action)Advance usage with Django or Openstack Horizon Dashboard !# local_settings.pyROBOTICE_HOSTdefaultislocalhostROBOTICE_PORTdefaultis9753ROBOTICE_PROTOCOLdefaultishttpfromroboticeclient.common.horizonimportHorizonClientfromroboticeclient.common.horizonimportDjangoClientfromroboticeclient.control.v1.baseimportRoboticeControlClientRoboticeControlClient.client_class=HorizonClient# or plain DjangoClientrobotice_client=RoboticeControlClient(type="control")robotice_client.devices.list()Read morehttp://docs.robotice.orghttp://docs.control.robotice.orghttps://github.com/robotice/roboticehttps://github.com/robotice/robotice-control
Package: python-rocksdb-iota
NoteThe original pyrocksdb (https://pypi.python.org/pypi/pyrocksdb/0.4) has not been updated for long time.
[twmht update pyrocksdb](https://github.com/twmht/python-rocksdb) to support the latest rocksdb.This is a pyrocksdb for IOTA, Please open issues in github if you have any problem.The main different is:Fix column family problem and test casesUsing StringAppendOperator as column family merge operator defaultRename package fromrocksdbtorocksdb_iotapyrocksdbPython bindings for RocksDB with IOTA modification.
Seehttp://python-rocksdb.readthedocs.io/en/latest/for a more comprehensive install and usage description.Quick InstallQuick install for debian/ubuntu like linux distributions.$apt-getinstallbuild-essentiallibsnappy-devzlib1g-devlibbz2-devlibgflags-dev$gitclonehttps://github.com/facebook/rocksdb.git$cdrocksdb$mkdirbuild&&cdbuild$cmake..$make$exportCPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/../include$exportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`$exportLIBRARY_PATH=${LIBRARY_PATH}:`pwd`$cd../$apt-getinstallpython-virtualenvpython-dev$virtualenvpyrocks_test$cdpyrocks_test$.bin/active$pipinstallpython-rocksdb-iotaQuick Usage Guide>>>importrocksdb_iota>>>db=rocksdb_iota.DB("test.db",rocksdb.Options(create_if_missing=True))>>>db.put(b'a',b'data')>>>printdb.get(b'a')b'data'
Package: python-royce-bulksms
Python Bulksms packageIntegrate bulk sms into your python project in under 2 minutesStepsInstall this packageOpen A free accounthereGenerate API key under API menuuse our default sender IDRoyceLtdInstallationpip install python-royce-bulksmsEnsure thatrequestspackage is installedpip install requestsHow to use the packagefrom bulksms import sendSMS

sendSMS(phone_number,message,sender_id,api_key)Sample response{
    'message': 'Messages sent successfully', 
    'code': 1, 'status': 'Sent To Network', 
    'response_description': 'Sent To Network', 
    'message_id': '968c1d13-ef31-4e04-a46b-8b7cd0d392fa'
}Delivery Reportfrom bulksms import deliveryReport

deliveryReport(message_id,api_key)Sample Response{
    'message': 'Message delivery report', 
    'code': 1, 'response_code': 1001, 
    'status': 'Message delivery report',
     'delivery_status': 'DeliveredToTerminal', 
     'delivery_tat': '5s', 
     'delivery_time': '2022-06-15 12:51:11', 
     'message_id': '968c255e-4b03-40da-9762-786793cf1cd8'
}For support call +254 713 727 937 emaildeveloper@roycetechnologies.co.ke
Package: python-rrdtool
This is a working Python Package of RRDtool binding to Python.
It delivers the same API as original binding (actually, it IS original
binding, but installable via pip.)Useful links:RRDTool webpage:http://oss.oetiker.ch/rrdtool/RRDTool Python module:http://oss.oetiker.ch/rrdtool/prog/rrdpython.en.htmlInstallationIn virtualenv:pip install python-rrdtoolFrom archive:pip install python-rrdtool-1.4.7.tar.gzFrom sources:python setup.py install
Package: python-rs
Python to Rust transpilerThis project started as Python to Rust syntax converter. It is not
aimed at producing ready-to-compile code, but some basic stuff can be
compiled easily.It generates unidiomatic non-optimized code with unnecessary
allocations, but can reduce amount of edits you have to do when
porting Python projects.Only basic subset of Python is supported right now and the end goal is
to support common cases at least as a placeholders.The project is in experimental, so it may crash or silently skip some
statements, so be careful.Based on Lukas Martinelli Py14
(https://github.com/lukasmartinelli/py14) and Py14/python-3
(https://github.com/ProgVal/py14/tree/python-3) branch by Valentin
Lorentz.
Package: python-rsdclient
OpenStack client plugin for Rack Scale DesignThis is a client for theRSDPod Manager API, which is based on OpenStack client framework. It provides a
Python API (rsdclient/v1module) and a RSD specific plugin for
OpenStack client (rsdclient/osc).Development takes place via the usual OpenStack processes as outlined in thedeveloper guide. The master
repository is ongit.openstack.org.Free software: Apache licenseSource:http://git.openstack.org/cgit/openstack/python-rsdclientBugs:https://launchpad.net/python-rsdclientContents:InstallationOpenStackClient RSD PluginInstallationTo useopenstack rsdCLI, the python-openstackclient and python-rsdclient
should be installed:# pip install python-openstackclient
# pip install python-rsdclientTo use the CLI, it requires two parts of configuration, OpenStack and RSD login
info.At first, you have to provide your OpenStack username, password,
project, and auth endpoint. You can use configuration options--os-username,--os-password,--os-project-id(or--os-project-name), and--os-auth-url,
or set the corresponding environment variables:$ export OS_USERNAME=user
$ export OS_PASSWORD=password
$ export OS_PROJECT_NAME=project                         # or OS_PROJECT_ID
$ export OS_PROJECT_DOMAIN_ID=default
$ export OS_USER_DOMAIN_ID=default
$ export OS_IDENTITY_API_VERSION=3
$ export OS_AUTH_URL=http://auth.example.com:5000/identityThen, you have to provide your RSD username, password,
SSL certificate with admin privilege, and pod manager URL. You can use
configuration options--rsd-username,--rsd-password,--rsd-verify,
and--rsd-url, or set the corresponding environment variables:$ export RSD_USERNAME=admin
$ export RSD_PASSWORD=password
$ export RSD_VERIFY=False     # or RSD_VERIFY=<path to SSL certificate>
$ export RSD_URL=https://localhost:8443/OpenStackClient RSD PluginTo get a list of available (sub)commands and options, run:$ openstack help rsdTo get usage and options of a command, run:$ openstack help rsd <sub-command>An example of composing a node only with name:$ openstack rsd node compose --name "testing node"
Package: python-rsync
✨ pyrsync ✨The python binding forlibrsyncInstallpipinstallpython-rsyncUsagefromioimportBytesIOfrompyrsyncimportdelta,get_signature_args,signature,patchs=b"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"*50d=b"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"*50+b"2"src=BytesIO(s)dst=BytesIO(d)magic,block_len,strong_len=get_signature_args(len(s))sig=BytesIO()signature(dst,sig,strong_len,magic,block_len)# sig由dst产生dst.seek(0,0)sig.seek(0,0)_delta=BytesIO()delta(src,sig,_delta)# src和sig对比产生deltasrc.seek(0,0)_delta.seek(0,0)out=BytesIO()patch(dst,_delta,out)assertout.getvalue()==src.getvalue()Public functionsfromtypingimportIOclassLibrsyncError(Exception):code:Anydef__init__(self,result)->None:...RS_JOB_BLOCKSIZE:intRS_DELTA_MAGIC:intRS_MD4_SIG_MAGIC:intRS_BLAKE2_SIG_MAGIC:intRS_RK_MD4_SIG_MAGIC:intRS_RK_BLAKE2_SIG_MAGIC:intdefget_signature_args(old_fsize:int,magic:int=0,block_len:int=0,strong_len:int=0)->tuple:...defsignature(input:IO,output:IO,strong_len:int,sig_magic:int,block_size:int=...)->None:...defdelta(input:IO,sigfile:IO,output)->None:...defpatch(input:IO,delta:IO,output)->None:...Compilepython -m pip install setuptools wheel cython cffi
git clone https://github.com/synodriver/pyrsync
cd pyrsync
git submodule update --init --recursive
python setup.py bdist_wheel --use-cython --use-cffiBackend ChooseUseRSYNC_USE_CFFIenv var to use cffi backend, otherwise it's depend on your python implementation.
Package: python-rtmidi
Welcome to python-rtmidi!A Python binding for the RtMidi C++ library implemented using Cython.OverviewRtMidiis a set of C++ classes which provides a concise and simple,
cross-platform API (Application Programming Interface) for realtime MIDI
input / output across Linux (ALSA & JACK), macOS / OS X (CoreMIDI & JACK), and
Windows (MultiMedia System) operating systems.python-rtmidiis a Python binding for RtMidi implemented usingCythonand
provides a thin wrapper around the RtMidi C++ interface. The API is basically
the same as the C++ one but with the naming scheme of classes, methods and
parameters adapted to the Python PEP-8 conventions and requirements of the
Python package naming structure.python-rtmidisupports Python 3 (3.8+).Thedocumentationprovides installation instructions, a history of changes
per release and an API reference.See the fileLICENSE.mdabout copyright and usage terms.The source code repository and issue tracker are hosted on GitHub:https://github.com/SpotlightKid/python-rtmidi.Usage exampleHere's a quick example of how to usepython-rtmidito open the first
available MIDI output port and send a middle C note on MIDI channel 1:importtimeimportrtmidimidiout=rtmidi.MidiOut()available_ports=midiout.get_ports()ifavailable_ports:midiout.open_port(0)else:midiout.open_virtual_port("My virtual output")withmidiout:note_on=[0x90,60,112]# channel 1, middle C, velocity 112note_off=[0x80,60,0]midiout.send_message(note_on)time.sleep(0.5)midiout.send_message(note_off)time.sleep(0.1)delmidioutMore usage examples can be found in theexamplesandtestsdirectories of
the source repository.
Package: python-rucaptcha
python-rucaptchaAt the lowest price on the market, you may receive a variety of solutions, including reCAPTCHA V2, reCAPTCHA V3, hCaptcha, hCaptcha Click, FunCaptcha, picture-to-text, and more. With this service, 0.1s is the slowest speed ever measured.Python3 library forRuCaptchaand2Captchaservice API.Tested on UNIX based OS.The library is intended for software developers and is used to work with theRuCaptchaand2Captchaservice API.Support of the serviceDeath By Captchais integrated into this library, more information in the library documentation or in theservice docs.Application inRuCaptcha softwareand2Captcha software.If you have any questions, please send a message to theTelegramchat room.Or emailpython-captcha@pm.meYou can check our other projects here -RedPandaDev group. For example -Torrents Tracker botfor Telegram.How to install?pippipinstallpython-rucaptchaHow to use?Is described in thedocumentation-website.How to test?You need setRUCAPTCHA_KEYin your environment(get this value from you account).Run commandmake tests, from root directory.ChangelogFor full changelog info check -Releases page.v.6.0 - Library refactoring. Stop usingpydantic, start usingmsgspec. Move to API v2. Drop Python 3.8 support. More details atReleases page.v.5.3 - Added support forDeath By Captchaand other services by changingservice_typeandurl_request\url_responseparameters.v.5.2 - Added Audio captcha method.v.5.1 - Checkreleases page.v.5.0 - Added AmazonWAF captcha method.v.4.2 - AddedYandex Smart Captcha.Get API Key to work with the libraryOn the page -https://rucaptcha.com/enterpageFind it:
Package: python-run-cmd
run-cmdRun a command within pythonInstall itpipinstallpython-run-cmd# pip install git+https://github.com/ffreemt/run-cmd# poetry add git+https://github.com/ffreemt/run-cmd# git clone https://github.com/ffreemt/run-cmd && cd run-cmdUse itrun_cmdfrompython_run_cmdimportrun_cmdret=run_cmd("ls -l")ifret.returncode:print("Failed")else:print("OK")An exception will be raised when errors occur. This may come
handy sometimes.frompython_run_cmdimportrun_cmdtry:ret=run_cmd("lsss -l")exceptExceptionasexc:print(exc)# 'lsss' is not recognized as an internal# or external command, operable program or batch file.Setraise_stderr=Falseto ignore errorsfrompython_run_cmdimportrun_cmdret=run_cmd("lsss -l",raise_stderr=False)ifret.returncode:print("Failed")else:print("OK")run_cmd_asyncSimultaneously run several commands:importasyncioimportwebbrowserfrompython_run_cmdimportrun_cmd_asyncasyncdefbrowse_8000():webbrowser.open("http://127.0.0.1:8000")asyncdefmain():returnawaitasyncio.gather(run_cmd_async("ping www.baidu.com"),browse_8000(),run_cmd_async("python -m http.server"),)asyncio.run(main())ForPython up to 3.10, it can be simplified (it won't work with Python 3.11):importasyncioimportwebbrowserfrompython_run_cmdimportrun_cmd_asyncasyncdefbrowse_8000():webbrowser.open("http://127.0.0.1:8000")asyncio.run(asyncio.wait([run_cmd_async("ping www.baidu.com"),browse_8000(),run_cmd_async("python -m http.server"),]))Note there is no auxiliary asyncmainfunction.run_cmd_streamSome commands take a long time to complete. If we want to see live stream output (one line at a time),run_cmd_streamcan be used.frompython_run_cmdimportrun_cmd_streamrun_cmd_stream("ping -n 100 baidu.com")We won't have to wait until all 100 pings to complete to see the output.
Package: python-runit
Runit CLIThe Runit Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Runit project from the command line.Create new runit projectRun a local web server for your runit projectpublish code and assets to your runit-server domainInteract with data in your runit-server databaseSupported LanguagesInstallationPython PackageYou can install the Runit CLI using pip (Python package manager). Note that you will need to installPython.
To download and install the runit CLI run the following command:pipinstallpython-runitThis will provide you with the globally accessiblerunitcommand.Install from sourcegitclonehttps://github.com/theonlyamos/runit.gitcdrunit
pipinstall.UsageRun the below command to print out usage message.runit--helpCreate New ProjectRun the following in the command line to create a new runit project.Supported languages include:Python,Javascript,PHPrunitnew<project-name>--language<langugage>Runrunit new --helpfor all optionsRun project locallyAccess functions on local server*
Running the commandrunitin a project directory spins up a local webserver which can be used to access the funtions in project.cd<project-directory>
runitPoint your browser to the address provided followed by the function name to access that function.http://localhost:5000/will be the default address.
Visitinghttp://localhost:5000/hello_worldwill run thehello_worldfunction in the project.Run function and print output to shellOutput function result to shell. Required arguments include:--function <function_name>: Function name to call--shell: sets shell output to true
[Optional]--arguments|-x: Arguments for the function if required. Can be called multiple times for multiple argumentscd<project-directory>
runit--function<hello_world>--shellPublishing ProjectBefore you can publish any of your projects, you must setup the backend for your runit. You must also be logged in.Setup Backend DetailsThe backend must be runningrunit-server.
Runrunit setup --helpfor help message.Follow the prompts to complete the setup after running the below comman.runitsetupAccount Loginrunitlogin--helprunitlogin--email<email@example.org>--password<supersecretpass>orFollow the commands after running below commandrunitloginDeploy/Publish Projectcd<project-directory>
runitpublishLicenseFree Software, Hell Yeah!
Package: python-rush
This python module is for making simple tools that rush a resource, such
as an API endpoint or web UI. This runs with both Python 2.6+ or 3.0+.This was originally created to test the throttling of authentication
attempts. It is quite basic, but was enough to get good results from a
Django based web app. I imagine that this is good enough to indicate if
rate limiting is reasonably implemented on faster systems (more likely
to come down to network?).ExampleThis example attempts to connect to an API endpoint which will throttle
after 10 requests:try:# Python 2fromxmlrpclibimportServerProxy,FaultexceptImportError:# Python 3fromxmlrpc.clientimportServerProxy,FaultfromrushimportRusherdefapi_auth_tester(index,thread_count):"""
    Rush the API with invalid authentication attempts.
    """# prepare the workerproxy=ServerProxy('https://badname:supersecretpassword@api.memset.com/v1/xmlrpc/')yield# yield to indicate that the worker is ready to rush# rushtry:proxy.server.list()exceptFaultaserror:# yield a string indicating the resultiferror.faultCode==4:# bad username/passyield'attempted'eliferror.faultCode==12:# throttledyield'throttled'print("API rate limiting test:")# the API will throttle after 10 requests, so make 9 requests first, then rush two callsrusher=Rusher(api_auth_tester,9)# preform the first 9 requests so the next request should set a throttling indicatorduration,results=rusher.rush_and_report()# change the number of threads we want to makerusher.thread_count=2# only one call should not be throttledrusher.rush_and_report()This will produce output like the following:API rate limiting test:
9 threads completed in .747115, results:
    attempted: 9
2 threads completed in .127208, results:
    attempted: 1
    throttled: 1
Package: python-s3file
Read and write files to S3 using a file-like object. Refer to S3 buckets and keys using full URLs.The underlying mechanism is a lazy read and write usingcStringIOas the file emulation. This is an in memory buffer so is not suitable for large files (larger than your memory).As S3 only supports reads and writes of the whole key, the S3 key will be read in its entirety and written onclose. Starting from release 1.2 this read and write are deferred until required and the key is only read from if the file is read from or written within and only updated if a write operation has been carried out on the buffer contents.More tests and docs are needed.RequirementsbotoUsageBasic usage:from s3file import s3open

f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt")
f.write("Lorem ipsum dolor sit amet...")
f.close()withstatement:with s3open(path) as remote_file:
    remote_file.write("blah blah blah")S3 authentication key and secret may be passed into thes3openmethod or stored in theboto config file.:f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt", key, secret)Other parameters to s3open include:expiration_daysSets the number of days that the remote file should be cached by clients. Default is 0, not cached.privateIf True, sets the file to be private. Defaults to False, publicly readable.content_typeThe content_type of the file will be guessed from the URL, but you can explicitly set it by passing a content_type value.createNew in version 1.1If False, assume bucket exists and bypass validation. Riskier, but can speed up writing. Defaults to True.
Package: python-s3watcher
s3watcheris a library for watching updates from an s3 bucket or prefix.Example usage:froms3watcherimportS3Watcher,S3Eventwatcher=S3Watcher(bucket="my-bucket",prefix="folder1/subfolder2")foreventinwatcher.watch():print(event)AuthenticationS3Watcherwill attempt to create a SQS queue to holdS3 event notifications. Necessary AWS credentials are needed to create these resources.
Package: python-saccharide
python-saccharide: Syntactical sugar and syntax hack collection for python3.This module adds some extra syntactical sugar to python.Installationpip install python-saccharideUsage ExamplesSee the test directory for some examples of usage. Further documentation may
or may not ever happen, but any contributions would be much appreciated.FeaturesThe sugar features provided include:SugarModule: A custom module class allowing easy function/variable export
and private attribute and immutability protectionPartial: A simple syntax for partial function applicationmethod_with_attrs: a decorator allowing class methods to have attributes
with getattr and setattr methods.... and more ...CopyingCopyright (c) 2021, Misha KlopukhThis library is licensed under the permissive MIT license. As far as I am
concerned, do whatever you want with it, but don't claim you wrote it.
As far as I am aware, all of this code is pretty much original. If you do
something cool with this, I would love to hear about it, and would love
even more if you contributed your code.
Package: python-safe
InaSAFE - Indonesian Scenario Assessment for EmergenciesThis is the project: InaSAFE a Quantum GIS pluginFor more information about InaSAFE please visitwww.inasafe.organd look at the documentation atinasafe.readthedocs.orgThe latest source code is available athttps://github.com/AIFDR/inasafewhich contains modules for risk calculations, gis functionality and functions
for impact modelling.Quick Installation GuideTo install the InaSAFE plugin, use the plugin manager inQGIS:Plugins -> Fetch Python PluginsThen search for ‘InaSAFE’, select it and click the install button.
The plugin will now be added to your plugins menu.System RequirementsA standard PC with at least 4GB of RAM running Windows, Linux or Mac OS XThe QGIS Open Source Geographic Information System (http://www.qgis.org).
InaSAFE requires QGIS version 1.7 or newer.LimitationsInaSAFE is a new project. The current code development started in
earnest in January 2012 and there is still much to be done.  However,
we work on the philosophy that stakeholders should have access to the
development and source code from the very beginning and invite
comments, suggestions and contributions.  Seeour milestones listandour open issues listfor known bugs and outstanding tasks.LicenseInaSAFE is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License version 3 (GPLv3) as
published by the Free Software Foundation.The full GNU General Public License is available in LICENSE.txt orhttp://www.gnu.org/licenses/gpl.htmlDisclaimer of Warranty (GPLv3)There is no warranty for the program, to the extent permitted by
applicable law. Except when otherwise stated in writing the copyright
holders and/or other parties provide the program “as is” without warranty
of any kind, either expressed or implied, including, but not limited to,
the implied warranties of merchantability and fitness for a particular
purpose. The entire risk as to the quality and performance of the program
is with you. Should the program prove defective, you assume the cost of
all necessary servicing, repair or correction.Limitation of Liability (GPLv3)In no event unless required by applicable law or agreed to in writing
will any copyright holder, or any other party who modifies and/or conveys
the program as permitted above, be liable to you for damages, including any
general, special, incidental or consequential damages arising out of the
use or inability to use the program (including but not limited to loss of
data or data being rendered inaccurate or losses sustained by you or third
parties or a failure of the program to operate with any other programs),
even if such holder or other party has been advised of the possibility of
such damages.