Saravanan666/pypi-org huggingface dataset:
Package: remotesensing
vegLib is a powerful Python library designed for calculating and analyzing
vegetation indices from remote sensing and spectral data. With easy-to-use
functions, it empowers researchers and developers to quantify and monitor vegetation
health, enabling precise insights into ecosystems, agriculture, and environmental studies.
vegLib is the go-to tool for extracting valuable information from spectral imagery,
contributing to more informed decisions in the realm of vegetation analysis.
MIT LicenseCopyright (c) 2023 Derraz RadhwanePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 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 THE SOFTWARE.
Package: remote-sensors
Remote Sensors API protocol libraryThis library translates raw bytearrays into the Remote Sensors API models.This implementation uses theXBee Python library.
And translates the incoming device messages into a Remote Sensors Request and Response.This library uses similar syntax than Sanic or Flask.Usageimportremote_sensorsfromdigi.xbee.devicesimportXBeeDeviceimportmy_settingsassettings@remote_sensors.bind_to_device()@remote_sensors.request()defaccess_log(request:remote_sensors.Request,*args,**kwargs):"""Simple Access Logger method."""logger.info(f'Request:{request.method}-{request.uri}')@remote_sensors.bind_to_device()@remote_sensors.request(method='REGISTRATION')defhandle_registration(request:remote_sensors.Request,*args,**kwargs):"""Handles the registration request."""response=remote_sensors.Response(status='ACK',transaction=request.transaction)# do something about it :Dpayload={'request':request.as_dict(),'response':response.as_dict(),'completed':False,}logger.debug(f'Replying with{response.status}to{sensor_message.addresses}')# send the response to the devicereturnresponse@remote_sensors.bind_to_device()@remote_sensors.request(method='END_REGISTRATION',pass_message=True)defhandle_registration_end(request:remote_sensors.Request,sensor_message:remote_sensors.SensorRequest,*args,**kwargs):"""Handles the end of registration."""response=remote_sensors.Response(status='ACK',transaction=request.transaction)# do something about it :Dpayload={'device':sensor_message.as_dict(),'request':request.as_dict(),'response':response.as_dict(),'completed':True,}logger.debug(f'Device ({sensor_message.addresses}) has finished registration')returnresponsedevice=XBeeDevice(settings.SERIAL_PORT,settings.BAUD_RATE)defmain():device.open()remote_sensors.app.init(device)whileTrue:time.sleep(1)if__name__=='__main__':try:main()finally:ifdevice.is_open():device.close()ContactArnulfo Solis Ramirezarnulfojr94@gmail.com
Package: remote-sqlite
RemoteSqliteRemoteSqlite is a way to easily access a remote Sqlite database and perform queries, including SELECT and INSERT operationsThe remote database is referenced through aPyFilesystem2url, such as:osfs://path/to/files3://path/to/fileYou can performpullandpushoperations that transfer the database to a local temp directorySee below for examples of how to usefromremote_sqliteimportRemoteSqlitedb=RemoteSqlite('osfs:///Users/vbalasubramaniam/Downloads/Northwind_large.sqlite',always_download=True)db.get_counts()[{'Employee': 9},
 {'Category': 8},
 {'Customer': 91},
 {'Shipper': 3},
 {'Supplier': 29},
 {'Order': 16818},
 {'Product': 77},
 {'OrderDetail': 621883},
 {'CustomerCustomerDemo': 0},
 {'CustomerDemographic': 0},
 {'Region': 4},
 {'Territory': 53},
 {'EmployeeTerritory': 49},
 {'posts': 0},
 {'posts_data': 2},
 {'posts_idx': 0},
 {'posts_content': 0},
 {'posts_docsize': 0},
 {'posts_config': 1},
 {'order_search': 16818},
 {'order_search_data': 226},
 {'order_search_idx': 474},
 {'order_search_content': 16818},
 {'order_search_docsize': 16818},
 {'order_search_config': 1}]db.select("""SELECT * FROM Shipper""")[{'Id': 1, 'CompanyName': 'Speedy Express', 'Phone': '(503) 555-9831'},
 {'Id': 2, 'CompanyName': 'United Package', 'Phone': '(503) 555-3199'},
 {'Id': 3, 'CompanyName': 'Federal Shipping', 'Phone': '(503) 555-9931'}]new_records=[{'Id':4,'CompanyName':'Speedy Express','Phone':'(503) 555-9831'},{'Id':5,'CompanyName':'United Package','Phone':'(503) 555-3199'},{'Id':6,'CompanyName':'Federal Shipping','Phone':'(503) 555-9931'}]db.insert('Shipper',new_records)db.con.execute('DELETE FROM Shipper WHERE Id >3')<sqlite3.Cursor at 0x10535bab0>create_statement="""CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT,t TIMESTAMP DEFAULT CURRENT_TIMESTAMP)"""db.con.execute(create_statement)<sqlite3.Cursor at 0x1053a43b0>db.insert('test',[{'name':'John'},{'name':'Matt'}])db.select('SELECT * FROM test')[{'id': 1, 'name': 'John', 't': datetime.datetime(2020, 3, 7, 22, 12, 45)},
 {'id': 2, 'name': 'Matt', 't': datetime.datetime(2020, 3, 7, 22, 12, 45)}]db.con.execute('DROP TABLE test')<sqlite3.Cursor at 0x1053a42d0>db.generate_create_table('Shipper2',[{'Id':1,'CompanyName':'Speedy Express','Phone':'(503) 555-9831'},{'Id':2,'CompanyName':'United Package','Phone':'(503) 555-3199'},{'Id':3,'CompanyName':'Federal Shipping','Phone':'(503) 555-9931'}])'CREATE TABLE "Shipper2" ("Id" TEXT, "CompanyName" TEXT, "Phone" TEXT)'db.con.execute('CREATE TABLE "Shipper2" ("Id" TEXT, "CompanyName" TEXT, "Phone" TEXT)')<sqlite3.Cursor at 0x1053a4340>db.insert('Shipper2',[{'Id':1,'CompanyName':'Speedy Express','Phone':'(503) 555-9831'},{'Id':2,'CompanyName':'United Package','Phone':'(503) 555-3199'},{'Id':3,'CompanyName':'Federal Shipping','Phone':'(503) 555-9931'}])db.select('SELECT * FROM Shipper2')[{'Id': '1', 'CompanyName': 'Speedy Express', 'Phone': '(503) 555-9831'},
 {'Id': '2', 'CompanyName': 'United Package', 'Phone': '(503) 555-3199'},
 {'Id': '3', 'CompanyName': 'Federal Shipping', 'Phone': '(503) 555-9931'}]
Package: remote-ssh-tunnel-controller-lib
remote-ssh-tunnel-controller-libpipinstallremote-ssh-tunnel-controller-lib>>>fromrssht_controller_libimportfactories>>>ctl=factories.RSSHTControllerFactory.new()>>>ctl.update()>>>ctl.get_agents()(<RSSHTAgent:raspberry-pi-1>,<RSSHTAgent:other-agent>)......# use ctl's object tree...>>>ctl.dispose()# break cyclic references before ctl's deletion
Package: remote-ssh-tunnel-controller-qt
remote-ssh-tunnel-controller-qtDownload anAppImage(for linux only), give execution permission and run it:# replace version (<X.Y.Z>) and architecture (<ARCH>) accordingly$wgethttps://github.com/guallo/remote-ssh-tunnel-controller-qt/releases/download/v<X.Y.Z>/remote-ssh-tunnel-controller-qt-<X.Y.Z>-<ARCH>.AppImage

$chmod+xremote-ssh-tunnel-controller-qt-*.AppImage

$./remote-ssh-tunnel-controller-qt-*.AppImageOrpip install(for any plattform that supportpip) and run it:$pipinstallremote-ssh-tunnel-controller-qt

$rssht-controller-qtGenerate the public/private rsa key pair thecontrollerwill use to connect to theintermediate SSH server, replace<YOUR-NICKNAME-WITHOUT-SPACE-CHARACTERS>accordingly:$ssh-keygen-C<YOUR-NICKNAME-WITHOUT-SPACE-CHARACTERS>-N""-fid_rsaCopy the public key to theintermediate SSH server, replace<SSH-USER>,<SSH-SERVER>and<SSH-PORT>accordingly (seethe configuration of the intermediate SSH server):$ssh-copy-id-iid_rsa.pub<SSH-USER>@<SSH-SERVER>-p<SSH-PORT>DevelopmentGenerate rssht_controller_qt/resources.py file$pyside2-rcc-orssht_controller_qt/resources.pyresources.qrc
Package: remotestatsclient
RemoteStats - ClientRemoteStats makes possible to inspect realtime information about a remote machine using a browser. This is the client to be installed in such machine.Free software: ISC licenseDocumentation:https://remotestatsclient.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.3 (2016-3-25)First stable release0.1.0 (2016-3-22)First release on PyPi.
Package: remote_tox
Remote testing of python environments (that usetox).What this doesAcquires a lock to ensure simultaneous repositories are not being tested.Connects to (randomly selected if multiple are given) remote machine (ssh
keys need to be setup to allow this to happen in a non-intrusive way).Archives the current working directory into a tarball.Sends this tarball to the remote machine (after removing any
old or previous tarballs, test environments…).Runstoxon the remote machine, proxying the stderr/stdout to the
local stderr/stdout (making it look like the output of that remote
program is actually local).Returns the remotetoxprograms exit code as the local programs exit
code (making it look like the remote programs exit code was the local
programs exit code).
Package: remote_traits
BackgroundThis is a very crude hack to make Enthought’sTraitswork in a
multi-process situation. Let’s say a process called Alice has a
variable called camera, which is an instance of (a subclass of)
HasTraits. Now, if another process called Bob wants to be notified
when camera.shutter changes, this should happen using the normal
Traits machinery. Furthermore, if Bob wants to change Alice’s
camera.shutter settings, Alice should be notified of those changes.There was a littlediscussionon this subject on the enthought-dev
email list, with Robert Kern’s idea being to use Python 2.6’s
multiprocess module to create Proxy objects of HasTraits subclasses
which would transparently do this. I suspect such an approach would be
very slick, but was beyond my one-day abilities, and I was on a
deadline to get some code working.Therefore, I created a hack: both the Alice and Bob processes have
full copies of the camera instance which mirror each other. For my
real world usage, Alice’s camera instance would be connected to
something that actuallydoessomething, such as take pictures with a
real camera, whereas Bob’s camera instance would be connected to a GUI
on a remote computer. The synchronization between the two processes
happens usingPyro(Python remote objects). (The dependency on Pyro
could probably be removed in favor of using multiprocess, but I was
already familiar with Pyro and couldn’t immediately figure out how to
do the equivalent things with multiprocess.)Anyhow, that is the motivation behing the example here. I plan to
continue tinkering with this code until it’s working for me in the
real world.Andrew Straw <strawman@astraw.com>QuickstartTo run the demo, run this in one terminal:# Start the "do" program -- Alice in the motivation above
python wx_demo.py doAnd run this in another terminal:# Start the "view" program -- Bob in the motivation above
python wx_demo.py viewLicenseThis code licensed with the MIT license (see the source code for the
full license).
Package: remotevbox
Remote VirtualBoxAboutThis package is intended to be simple and useful abstraction based onZeepSOAP client.It doesn’t depend on ancient VirtualBox Python SDK and even more ancient
ZSI (last updated in 2006) and PyXML (thing from 2007) libraries.The initial goal was to build an easy to useCuckooSandbox machinery.VirtualBox WebserviceThere is an official manual how to start it:https://www.virtualbox.org/manual/ch09.html#vboxwebsrv-daemonInstallpip install remotevbox --userDevelopment versionPipenvis used here:pipenv install --dev --pre
pipenv shellUsage example>>>importremotevbox>>>vbox=remotevbox.connect("http://127.0.0.1:18083","vbox","yourpassphrase")>>>vbox.get_version()'6.1.2'>>>machine=vbox.get_machine("Windows10")>>>machine.launch()>>>screenshot_data=machine.take_screenshot_to_bytes()>>>fp=open('screenshot.png','wb')>>>fp.write(screenshot_data)>>>fp.close()>>>machine.put_usagecode(0xE1,7)# simulate shift key>>>machine.put_usagecode(6,7)# simulate letter c>>>machine.put_usagecode(6,7,True)# stop "pressing" c>>>machine.put_usagecode(0xE1,7,True)# stop "pressing" shift>>>machine.put_mouse_event(0,0,dz=5)# scroll with the mouse wheel>>>machine.absolute_mouse_pointer_supported()# does the gues OS supports absolute mouse pointer ?>>>machine.put_mouse_event_absolute(110,40)# set absolute cursor position>>>machine.send_key_combination(["<ctrl>","c"])# send key combination>>>machine.send_character_string("Hello World!")# send a string from the keyboard>>>machine.save()>>>vbox.disconnect()
Package: remotivelabs-broker
RemotiveLabs BrokerLink toSamples.Link toDocumentation.Table of ContentsInstallationExamplesBuild and PublishLicenseInstallationInstall into your Python environment withPIP:pip install remotivelabs-brokerExamplesExamples using this library are found in theRemotive Labs samples repository.Develop and test locallyPut version in__about__.py. Beta versions should be suffixed withb*, example0.2.0b1For initial build and generation of proto stubs, documentation and distribution package,  run./docker-build.shOnce stubs are generated you can use hatch to build distribution packagehatch buildabove command will output[wheel]
dist/remotivelabs_broker-0.2.0b12-py3-none-any.whlYou can now install this library version in another terminal by doingpip3 install [your path]/dist/remotivelabs_broker-0.2.0b12-py3-none-any.whlBuild and publishMake sure to put version in__about__.py. Beta versions should be suffixed withb*, example0.2.0b1./docker-build.sh
hatch publishfind username and password in less secret location ;)Licenseremotivelabs-brokeris distributed under the terms of theApache-2.0license.
Package: remotsylib
Remotsy python libraryRemotsyis an infrared blaster device, is cloud controlled,
this a Python library to control the Remotsy device via Rest API.Installation$ pip install remotsylibExamplefromremotsylib.apiimportAPIif__name__=="__main__":client=API()#Do the login and get the tokentoken=client.login(args.username,args.password)#Get the list of the controlslst_ctl=client.list_controls()forctlinlst_ctl:print"id%sName%s"%(ctl["_id"],ctl['name'])AuthenticationYou can use your remotsy username and password, but for security is recomended to generate
a application password, logon inhttps://home.remotsy.comand use the option App Passwords.Documentation APIThe API documentation and links to additional resources are available athttps://www.remotsy.com/help
Package: remotsylib3
Remotsy python libraryRemotsyis an infrared blaster device, is cloud controlled,
this a Python library to control the Remotsy device via Rest API.Installation$ pip install remotsylib3Examplefromremotsylib3.api_asyncimport(API,run_remotsy_api_call)if__name__=="__main__":client=API()#Do the login and get the tokentoken=run_remotsy_api_call(client.login(args.username,args.password))#Get the list of the controlslst_ctl=run_remotsy_api_call(client.list_controls())forctlinlst_ctl:print("id%sName%s"%(ctl["_id"],ctl['name']))AuthenticationYou can use your remotsy username and password, but for security is recomended to generate
a application password, logon inhttps://home.remotsy.comand use the option App Passwords.Documentation APIThe API documentation and links to additional resources are available athttps://www.remotsy.com/help
Package: remoulade
remouladeA fast and reliable distributed task processing library for Python 3.Fork of dramatiq.ioChangelog:https://remoulade.readthedocs.io/en/latest/changelog.htmlDocumentation:https://remoulade.readthedocs.ioInstallationIf you want to use it withRabbitMQ$pipenvinstall'remoulade[rabbitmq]'or if you want to use it withRedis$pipenvinstall'remoulade[redis]'QuickstartMake sure you've gotRabbitMQrunning, then create a new file calledexample.py:fromremoulade.brokers.rabbitmqimportRabbitmqBrokerimportremouladeimportrequestsimportsysbroker=RabbitmqBroker()remoulade.set_broker(broker)@remoulade.actordefcount_words(url):response=requests.get(url)count=len(response.text.split(" "))print(f"There are{count}words at{url!r}.")broker.declare_actor(count_words)if__name__=="__main__":count_words.send(sys.argv[1])In one terminal, run your workers:$remouladeexampleIn another, start enqueueing messages:$python3example.pyhttp://example.com$python3example.pyhttps://github.com$python3example.pyhttps://news.ycombinator.comVisit theuser guideto see more features!.DashboardCheck outSuperBowla dashboard for real-time monitoring and administrating all your Remoulade tasks.See the current progress, enqueue, requeue, cancel and more ...Super easy to use !.KubernetesRemoulade is tailored to run transparently in containers onKubernetesand to make the most of their features. This does not mean it cannot run outside of Kubernetes ;)Monitoring/PrometheusRemoulade provides aPrometheusMiddleware that exposes various metrics (processed messages, retries, fails etc.),Check it out.Tracing/OpenTelemtryTake a look atopentelemetry-instrumentation-remouladeif you want to enable tracing for Remoulade operations (enqueue, message processing, retries etc.). Seeherefor an example.
The library followsOpenTelemetrystandards.Licenseremoulade is licensed under the LGPL.  Please seeCOPYINGandCOPYING.LESSERfor licensing details.
Package: removalist
Add Dependencies and Extensions for Hashicorp PackerInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run removalist cli application

$ removalist --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingRemovalist for Hashicorp Packer,
and can be built with the includedmakehelper:$ make docker

$ docker run -it removalist --help
Package: remove-bg-api
🍰remove-bg-api- remove.bg Python API Wrapper 🍰📄Description:This library is used to interact with theremove.bgAPI to remove the background from the image.This library implements 100% API of this service.🧷Dependencies:requests🔖Setup:🏷 Simple install using pip:pip3 install remove-bg-api🏷 Install from source:Clone this repository.Install all the dependencies fromrequirements.txt:pip3 install -r requirements.txtInstallpython3 setup.py install📙Documentation🧰Examples:Remove background from image:from remove_bg_api import RemoveBg
# Initialize api wrapper
removebg = RemoveBg(API_TOKEN)  
# Send and save the finished image
image = removebg.remove_bg_file(input_path="imgs/a.jpg", out_path="./a.png", size="preview", raw=False)  
# Print path
print("Image was saved along the path: {}".format(image))Show account total balance:from remove_bg_api import RemoveBg
removebg = RemoveBg("API_TOKEN")  # Initialize api wrapper
print("Account total balance: ", removebg.account.balance())See other examples in theexamplesfolder.⏳ TODO:1) Add asyncio support. (0% done)
Package: remove-dagmc-tags
This is a minimal Python package that provides bothcommand lineandAPIinterfaces for removingmultipletags from a DAGMC h5m file.This is useful for preparing the h5m file for visulisation where it is desirable to remove reflecting surfaces, vacuum materials and the graveyard(s) region
from the geometry before viewing the vtk file.Command line usagePerhaps the most common use of this program is to remove a DAGMC graveyard.remove-dagmc-tags-idagmc.h5m-odagmc_no_graveyard.h5m-tgraveyardthe-ior--inputargument specifies the input h5m filethe-oor--outputargument specifies the output h5m or vtk filenamethe-tor--tagsargument specifies the tags to remove.the-vor--verboseargument enables (true) or disables (false) the printing of additional detailsMultiple tags can also be removed and vtk files can be generated. This example
removes three tags from the dagmc.h5m file and saves the result as a vtk file.remove-dagmc-tags-idagmc.h5m-ooutput.vtk-tmat:graveyardmat:vacuumreflectivePython API usageRemoving a single tag calledmat:graveyardfrom the dagmc.h5m file.fromremove_dagmc_tagsimportremove_tagsremove_tags(input='dagmc.h5m',output='output.h5m',tags='mat:graveyard')Removing two tags calledmat:graveyardandreflectivefrom the
dagmc.h5m file and saves the result as a vtk file and h5m file.fromremove_dagmc_tagsimportremove_tagsremove_tags(input='dagmc.h5m',output=['output.vtk','output.h5m'],tags=['reflective','mat:graveyard'])InstallationThe recommended method of installing is via conda install as this is able to
install all the dependencies including PyMoab.condainstall-cconda-forgeremove_dagmc_tagsHowever the package is available via the PyPi package manager. In this case you
will have to seperatly install PyMoab.pipinstallremove_dagmc_tagsSome Python dependencies (such as Numpy) are installed during thepip install remove_dagmc_tags process, howeverPyMoabneeds to be installed seperatly to make full use of this package.One method of installingpymoabis to install MOAB via Conda which
includes PyMoab.condainstall-cconda-forgemoabAnother method of installingpymoabis to compile MOAB with pymoab enabled.mkdirMOABcdMOAB;\mkdirbuild;\gitclone--single-branch--branchdevelophttps://bitbucket.org/fathomteam/moab.gitcdbuild
cmake../moab-DENABLE_HDF5=ON\-DENABLE_NETCDF=ON\-DENABLE_FORTRAN=OFF\-DENABLE_BLASLAPACK=OFF\-DBUILD_SHARED_LIBS=OFF\-DCMAKE_INSTALL_PREFIX=/MOAB
make-j"$compile_cores"make-j"$compile_cores"install
cmake../moab-DENABLE_HDF5=ON\-DENABLE_PYMOAB=ON\-DENABLE_FORTRAN=OFF\-DBUILD_SHARED_LIBS=ON\-DENABLE_BLASLAPACK=OFF\-DCMAKE_INSTALL_PREFIX=/MOAB
make-j"$compile_cores"make-j"$compile_cores"installcdpymoab
bashinstall.sh
pythonsetup.pyinstallAchknowledgmentsThe package is largely inspired by the DAGMC-viz(https://github.com/svalinn/DAGMC-viz) repository.
Package: remove-directory
remove_directoryFunction to recursively remove a non-empty directory. Posted by Boris onstackexchange.DependenciesNoneUsagefrom pathlib import Path
from remove_directory import rmdir

p = Path("/path/to/directory")
rmdir(p)InstallationPippip install remove_directoryDeveloper's InstallationYou can clone the repository and install it withpip install -e /path/to/local/repository.
Package: removedup
RemoveDupA fast, memory efficient Python module to remove duplicates from parallel text corpora.It's useful for cleaning up datasets that contain duplicate entries for training language models.InstallationpipinstallremovedupUsagefromremovedupimportrdupsrc,tgt,removed=rdup("source.txt","target.txt")print(src,tgt,removed)# source.txt.dedup# target.txt.dedup# <num lines removed>NotesSource and target must have the same number of lines. No validation checks are made.Duplication checks are only made on the source content. If you want to check for duplicates on the target, simply switch the order of the parameters.Buildgitclonehttps://github.com/LibreTranslate/RemoveDupcdRemoveDup
pythonsetup.pybuildStandalone BinaryYou can also use removedup as a standalone Windows, macOS or Linux application (but you currently need to build from source, we don't provide binaries).mkdir build
cd build && cmake .. && make -j4
./rdup source.txt target.txtContributingWe welcome pull requests!LicenseAGPLv3