Saravanan666/pypi-org huggingface dataset:
Package: dronekit-textmessaging
Text Messaging Telemetry for DroneKit
Control Rovers, Copters, or Planes via inexpensive text messaging from within DroneKitDependencies:– pip install python-gsmmodem—pip install pymavlink– pip install pylzma—pip install dronekitHow to launch text messaging telemetry between your APM Rover and Ground Station computer:–Copy project files to your vehicle’s companion computer (e.g. Raspberry Pi) and your laptop.–pip install dronekit-textmessaging—On your ground station computer enter the following command:LaunchTelemetry.py -ground—On the vehicle’s companion computer, launch the script from DroneKit:LaunchTelemetry.py -vehicle (NOTE: make sure to have AUTOPILOT_PATH set appropriately)Supported Hardware/Software Configuration:Ground StationMac laptop/desktopAPM Planner 2 softwareSierra 313u (AT&T 313u) GSM modemAT&T’s $2/day pay-as-you-go unlimited texting planVehicleRaspberry Pi “companion computer” connected to autopilot via serial or USB cableAPM 2.6 or Pixhawk autopilotSierra 313u (AT&T 313u) GSM modemAT&T’s $2/day pay-as-you-go unlimited texting planChangelog:– 5 Sep 2015 – Under Development—14 Nov 2015 – Updated to DroneKit version 2– 21 Nov 2015 – Created pip packageLicense information:– Copyright (C) 2015 Chambana—License: GNU Lesser General Public License, version 3 or later; see COPYING included in this archive for details.
Package: drone-mobile
drone_mobile-pythonThis is a basic Python wrapper around the DroneMobile API. The wrapper provides methods to return vehicle status as well as some basic commands, e.g. start/stop, lock/unlock.DisclaimerThe code here is based off of an unsupported API fromDroneMobileand is subject to change without
notice. The authors claim no responsibility for damages to your vehicle
by use of the code within.FeaturesAutomatically authenticate & re-fetch tokens once expiredGet status of the vehicle (this returns a ton of info about the car: lat/long, temperature, battery, odometer, door status, and a bunch of other stuff that may/may not apply to your car.Start the engineStop the engineLock the doorsUnlock the doorsInstallInstall using pip:pip install drone_mobileDemoTo test the libary there is a demo scriptdemo.py.demo.py USERNAME PASSWORDe.g.demo.py test@test.com mypasswordPublishing new versions of this packageBump the version number insidesetup.py.Build the package:python setup.py sdist bdist_wheel.Upload to TestPyPi usingtwine upload --repository-url https://test.pypi.org/legacy/ dist/*and verify everything is as expected.Upload to PyPi usingtwine upload dist/*.All done!
Package: droneposelib
droneposelibPython library for Visual-Inertial Odometry (VIO).
Wrapps the C++/Eigen libraryDronePoseLib.Solvers availableThe current list of solvers are the following:SolverApprox. runtime*Max. solutionsCommentfEf2.5 us4Valtonen Örnhag et al. (ArXiV 2021)frEfr23** us11Valtonen Örnhag et al. (ArXiV 2021)rEr2.2 us4Valtonen Örnhag et al. (ArXiV 2021)**** Measured on a laptop with an Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz** If using theuse_fast_solveroption*** UndocumentedNote that all solvers assume that all three degrees of freedom for the rotation matrices are available,
i.e. potential IMU drift is ignored. By using e.g. magnetometer data one can often get good estimates,
if fused with accelerometer data and gyroscope data. This approach is e.g. used in the Madgwick filter.
Futhermore, we have succesfully used pre-integration techniques to achieve robust and accurate performance
for shorter time frames without the need of magnetometer data.InstallationA pre-alpha release is available at PyPi, and can be installed using$pipinstalldroneposelibYou may also compile the source code, see "Development".ExamplesSee theexampledirectory for examples on how to use the solvers.DevelopmentYou are more than welcome to contribute your our other relevant solvers. More info soon.ReferencesThe code is related to the ArXiV paper [link]:@misc{valtonenornhag-etal-2021-arxiv,
      title={Trust Your IMU: Consequences of Ignoring the IMU Drift},
      author={Marcus {Valtonen~Örnhag} and Patrik Persson and Mårten Wadenbäck and Kalle Åström and Anders Heyden},
      year={2021},
      eprint={2103.08286},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}Please cite the paper if you are using the code for (academic) publications.
Package: drone-python
PyDroneioPython client for theDrone CIpublicremote apibuilt using the popularpython requestslibrary.InstallationEnsure you have a working installation of Python 3.x on your system.Clone the repository and run the setup script provided.$gitclonehttps://github.com/tinvaan/PyDroneio.git
$cdPyDroneio
$pythonsetup.pyinstallEnvironmentEnsure you have theDRONE_TOKENand optionally, theDRONE_SERVERenvironment variables setup correctly.$exportDRONE_SERVER="https://cloud.drone.io"$exportDRONE_TOKEN="<your Drone CI access token>Usage examplesFetch all linked repos>>>fromdroneimportdrone>>>client=drone('tinvaan','packager')>>>client.repos.all()[{'id':799963,'uid':'45485693','user_id':0,'namespace':'tinvaan','name':'Algorithms','slug':'tinvaan/Algorithms',......'version':1},.........{'id':7993143,'uid':'1897133997','user_id':0,'namespace':'tinvaan','name':'zeit-logdna','slug':'tinvaan/zeit-logdna',......'version':1}]Add a new secret>>>secret={'name':'testsecret','data':'mysecretvalue','pull_request':False}>>>client.secret.create(**secret){'id':55114,'repo_id':7134978,'name':'testsecret'}Fetch all builds for a repository>>>client.build.all()[{'id':342416,...'version':3},{'id':342400,...'version':3},{'id':341144,...'version':3}]ContributeIf you notice any issues, bugs or missing features in this project, please feel free to open tickets(github issues) or pull requests for the same.If you would like to contribute code, check out the open issues and if you need help getting started, shoot a mail toharishnavnit@gmail.com
Package: dronesearch
OverviewThis repo contains a python packagedronesearchfor running live
video analytics on drone video feeds leveraging edge servers. It also contains
our experiment code for SEC'18 paperBandwidth-efficient Live Video Analytics
for Drones via Edge Computing.dronesearch PackageThe decreasing costs of drones have made them suitable for search and rescue
tasks. Analyzing drone video feeds in real-time can greatly improve the
efficiency of search tasks. However, typical drone platforms do not have enough
computation power to do real-time video analysis onboard, especially
semantic-level vision processing, such as human survivor detection, car
detection, and animal detection. Video feeds need to be streamed to an edge
server for computer vision processing. When streaming video feeds from a swarm
of drones at the same time, judicious use of bandwidth becomes important.Thisdronesearchpackage provides a computer vision pipeline that
selectively finds interesting frames and transmit them to edge servers for
analysis in order to save bandwidth.InstallationFirst, installzeromq. Then,pipinstalldronesearchDemoWe provide a demo that considerscomputer monitorsas objects of interests.
Only video frames that are classified ascomputer monitorswill be sent to an
edge server for further analysis.To run the demo, first clone this directory. Then, issue the following commands
at the root dir of this repo.# on drone or your drone emulation platform, by default connecting to tcp://localhost:9000# --input-source: the uri for OpenCV's VideoCapture().#                 It should be a number for cameras or a file path for videos.# --filter-config-file: a file path whose content specifies filters to run on the drone.#                       This demo uses Tensorflow's MobileNet.# --server-host, and --server-port specifies the edge server.python-mdronesearch.onboard--input-source0--filter-config-filedata/cfg/filter_config.ini# on edge server# --server-port specifies the listening port.python-mdronesearch.onserverExperiments for SEC'18 paperSeeexperiment-README.
Package: dronesploit
DroneSploitEasily pentest drones.This CLI framework is based onsploitkitand is an attempt to gather hacking techniques and exploits especially focused ondrone hacking. For the ease of use, the interface has a layout that looks like Metasploit.pip3installdronesploit:warning: When starting up the framework, you may have every modulesdisabled. You can see why by using theshow issuescommand. Modules are disabled when they have unsatisfied requirements, i.e.aircrack-ngnot installed.DocumentationBlack Hat Europe Arsenal 2019 presentationBlack Hat Europe: New tool offers Metasploit-like framework for hacking into drones, The Daily SwigDronesploit, a pentesting console framework dedicated to drones, Hakin9BasicsInterfaceModulesThis example shows an example of module for DroneSploit aimed to change the password or the SSID of a particular model of drone.
Package: dronestore
# DroneStore### distributed version control for application dataDronestore is a library that keeps objects and their attributes versioned to
allow merging with different versions of the object at a later date.
Upon merging two object versions, attribute values are selected according to
given rules (e.g. most recent, maximum). Thus, multiple disconnected machines
can modify the same object and sync changes at a later date.(slides from a talk [here](http://static.juanbb.com/acm.dronestore.pdf))## Installsudo python setup.py install## LicenseDronestore is under the MIT License.## Hello World>>> import dronestore
>>> from dronestore import StringAttribute
>>> from dronestore.merge import LatestStrategy
>>>
>>> class MyModel(dronestore.Model):
...   first = StringAttribute(strategy=LatestStrategy)
...   second = StringAttribute(strategy=LatestStrategy)
...
>>> foo = MyModel('FooBar')
>>> foo.first = 'Hello'
>>> foo.commit()
>>>
>>> bar = MyModel('FooBar')
>>> bar.second = 'World'
>>> bar.commit()
>>>
>>> foo.merge(bar)
>>> print foo.first, foo.second
Hello World
Package: dronevis
DroneVisionDrone Vision (DroneVis) is a full compatible drone library to automate computer vision algorithms on parrot drones. You can read a detailed documentation of Drone Visiondocs.DroneVisis a cutting-edge drone software library that has been specifically designed for use with the AR. Drone. It has been extensively tested both indoors and outdoors, and offers a wide range of features including adaptability in connecting to the drone, advanced computer vision algorithms, and 3 user-friendly interfaces. This makes it easy for users to take full advantage of the drone's capabilities and control it with simple commands. All of the implemented real-time data, inference, and detection achieve a minimumfps >= 4.5on an Intel core 8 CPU.FeaturesUnified state-of-the art computer vision algoritmsFull control over the dronePEP8 compliant (unified code style)Documented functions and classesTests, high code coverage and type hintsClean codeMultiple implementations for the same modelsLogger with timestampsThree UI for easier usage (GUI, CLI, Gesture Recognition)Computer Vision ModelsYou provide a wide variety of 20+ computer vision and recommends users to the best models in terms of accuracy and speed, whilst giving users the chance to use any model of their choice.Drone ControlRight ➡️, Left :arrow_left:Up ⬆️, Down :arrow_down:Forward ▶️, Backward ◀️Takeoff 🚀, Land 🛬Reset 🔄, Emergency 🚨Rotate Left ↩️ /Right :arrow_right_hook:Hover 🔍, Calibrate 🔧Camera Stream 📹/Record ⏺️Hand Gesture Control 🖌️How to InstallInstall PyTorchYou should consider installing the version ofPytorchthat corresponds to your cuda version.You start controling your drone now with just two commands:pipinstalldronevis# install the librarydronevis-gui# run library GUIPress thestartbutton to start a demo drone simulation, and run your favourite algorithms with thestreambutton.You can control your drone with ourCLI:dronevisGetting StartedDronevis is built with multiple modes for customizibility. You can view all the options for either runnning ourGUIorCLIas follows:dronevis--helpThe default mode for running either the CLI or the GUI is thedemomode. You can alter the mode by providing "real" to--droneargument.dronevis--drone=real# cli real drone modeor for GUI,dronevis-gui--drone=real# gui real drone modeDocumentationDronevis is developed with an extensive documentation for easier user contributions. You can check our full documentation inhereto go more in-depth ofhow the library is structureandhow to contribute your favourite model.Citing the ProjectTo cite this repository:@software{drone-vis,author={Ahmed Heakl, Fatma Youssef, Abdallah-Elbarkokry},title={Dronevis: Full compatible drone library to automate computer vision algorithms on parrot drones},year={2023},url={github.com/ahmedheakl/drone-vis},version={1.3.0}}
Package: dronin-pyqtgraph
This is dRonin’s fork of PyQtGraph.  dRonin’s logviewer and python tools
library uses current pyqtgraph, but there has not been a PyPi release in
some time.This package installs into the dronin.pyqtgraph namespace to avoid conflicts.PyQtGraph is a pure-python graphics and GUI library built on PyQt4/PySide and
numpy.It is intended for use in mathematics / scientific / engineering applications.
Despite being written entirely in python, the library is very fast due to its
heavy leverage of numpy for number crunching, Qt’s GraphicsView framework for
2D display, and OpenGL for 3D display.
Package: drools-jpy
Drools JPY PackageThis python package allows you to directly call Drools classes (implemented in Java) using JPY from your Python code.
NeedsJava 17+Maven 3.8.1+Environment variableJAVA_HOMEshould be set appropriatelySetup and Testingpython3 -m venv venv
  source venv/bin/activate
  python3 -m pip install --upgrade pip
  python3 -m pip install --upgrade build
  python3 -m pip install -e '.[dev]'
  tox
  python3 -m buildCheck code coveragecoverage run -m pytest
   coverage html
   open htmlcov/index.htmlFormat and lint the code before creating a PRblack .
   flake8 .
   isort .To publish the package to PyPipython3 -m pip install --upgrade build
rm -rf dist
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
Package: droombot
DroombotDroombot is a discord bot for generating images from text prompts.At current, it uses an API call to Stability.ai to generate images.
A future version may support running Stable Diffusion directly.Installing:zap: Note: this step is not necessary if using a Container (see below)Run the following, preferably in a virtual environment, to install droombotpip install droombotHow to run:zap: Note: this step is not necessary if using a Container (see below)Configure your environment (see configuration options below), and make sure a
redis instance is running on your network (we recommend using a container).To start the bot, run the following in the virtual environment:droombot serverTo start a worker, run the following in the virtual environmentdroombot workerComponentsDroombot consists of two components:Theserver, this handles interaction with the user. I.e., it handles incoming
prompts and replies. It provides the Discord bot users interact with.One or moreworkers. These handle the actual image generation.Redis is used as a message broker between theserverand theworker(s).ConfigurationAll configuration is handled via environment variables. See the following tableEnvironment variableDescriptionIs RequiredDISCORD_BOT_TOKENToken for your discord applicationYesDISCORD_GUILD_IDSComma-separated list of guild (server) ids you want to allow access to the botYesSTABILITY_API_KEYAPI key from Stability AIYesREDIS_HOSTHostname of Redis instanceNo, defaults to localhostREDIS_PORTPort of Redis instanceNo, defaults to 6379REDIS_KEY_LIFETIMENumber of seconds for keys to expireNo, defaults to 300MAX_REQUESTS_PER_MINUTEMaximum number of requests per minute to any remote servicesNo, defaults to 100ContainerDroombot can run as a container. For a howto using Docker or Podman, see thecontainer docs.Future plansExpose additional options, such as multiple images and model selection.Ability to run Stable Diffusion directly, with a separate worker classPrompt translations, allowing users to use prompts in their own language.
Package: droot
droot: Python File Management Packagedrootis a Python package that provides a convenient way to manage files and directories. It allows you to perform various operations such as creating, deleting, copying, moving, and iterating over files and directories.InstallationYou can installdrootusing pip:pip install drootUsageImporting the PackageTo usedroot, you need to import the necessary classes:fromdrootimportDRoot,DFileCreating a Directory RootYou can create a directory root using theDRootclass. Pass the absolute path of the directory to the constructor:root=DRoot('/path/to/root')Creating a FileTo create a file, you can use theDFileclass. Pass the absolute path of the file and the file name to the constructor:file=DFile('/path/to/root','example.txt')Checking ExistenceYou can check if a directory or file exists using thebool()function:ifbool(root):print('Root directory exists')ifbool(file):print('File exists')File OperationsReading a FileTo read the contents of a file, you can use the left shift operator (<<):content=file<<''print(content)Writing to a FileTo write content to a file, you can use the left shift operator (<<):file<<'Hello, world!'Appending to a FileTo append content to a file, you can use the in-place left shift operator (<<=):file<<=' Appended content'Moving a FileTo move a file to a different location, you can use themv()method:new_file=file.mv('/path/to/new_location/example.txt')Copying a FileTo copy a file to a different location, you can use thecp()method:new_file=file.cp('/path/to/new_location/example.txt')Deleting a FileTo delete a file, you can use theunlink()method:file.unlink()Directory OperationsCreating a DirectoryTo create a directory, you can use themakedirs()method:root.makedirs()Creating a Directory and Clearing its ContentsTo create a directory and clear its contents if it already exists, you can use themakeAndClear()method:root.makeAndClear()Listing Files and DirectoriesTo iterate over files and directories within a directory, you can use aforloop:foriteminroot:print(item)Theitemvariable will be either aDFileobject or aDRootobject, depending on whether it represents a file or a directory.Accessing a SubdirectoryTo access a subdirectory within a directory, you can use the indexing operator ([]):subdir=root['subdirectory']Getting the Parent DirectoryTo get the parent directory of a directory or file, you can use theparentproperty:parent_dir=root.parentGetting the Relative PathTo get the relative path between two files or directories, you can use the subtraction operator (-):relative_path=file-rootPrinting the Directory TreeTo print the directory tree structure, you can use thetree()method:tree=root.tree()foritemintree:print(item)Thetree()method returns a list of strings representing the directory tree structure.ConclusionThedrootpackage provides a simple and intuitive way to manage files and directories in Python. It offers a range of operations for creating, deleting, copying, moving, and iterating over files and directories. For more details, refer to the package documentation.
Package: drop2beets
drop2beetsABeetsplug-in that imports singles as soon as they are dropped in a folder.You can provide a function to set meta-data
or custom attributes depending on the sub-folder in which the file has been dropped.
Theexamplesfolder contains some examples ofon_itemfunctions you may
adapt to your needs.We use Beets' auto-tagger in quiet mode,
andinotifyto detect dropped files.Get startedYou'll need Python3 and an existing Beets library.
Run:pipinstalldrop2beetsEnable and configure the plug-in by runningbeet config -eand set at least
the path to the "dropbox" folder.plugins:drop2beetsdrop2beets:dropbox_path:~/beets-dropboxWe advise you configure Beets to always move files out of the Dropbox,
and setquiet_fallback:import:move:yescopy:noquiet_fallback:asisquiet_fallbacktells Beets what to do when the auto-tagger is not sure about
the song's identifiaction.
Set it toskipto abort the importation in case of ambiguity,
orasisto import using tags as they are in the incoming file.
This will avoid surprises in case of ambiguous matches,
because this script invokes Beet's auto-tagger in quiet mode (asbeet import -q)
after your custom function.This function ison_item. It is written in Python,
and lets you set some tags depending of which sub-folder the file is dropped in.
If you want one, define it in the configuration from this template:drop2beets:on_item:|def on_item(item, path):"""Parameters:item: the beets Item that we're about to importpath: its sub-folders path in our dropbox ; if the items has been dropped at the root, then it's empty.Returns:A dict of custom attributes (according to path, maybe) ; return None if you don't want to import the file right now."""return {}Now you're ready to test by callingbeet dropboxon the command line and
dropping a few files in the folder.
Hit Ctrl+C to close the script.For a longer-term installation, configure a log file pathdrop2beets:log_path:~/drop2beets/log.logLinux users can install this as a user-lever systemd service by runningbeet install_dropbox(in a shell where the virtual environment is activated).
Note that you'll have to restart the service when you update theon_itemfunction.Examples wanted !I'd be happy to include your own variations of this script or theon_itemfunction
in theexamplesfolder,
feel free to post them inIssuesorPull Requests.
Package: dropafile
dropafileDrop me a file, securely.|documentation|sources|issuesdropafileprovides an HTTPS-secured webapp where users can drop
files.It is meant as a channel to deliver documents in a not-too-unsecure
manner. For instance as a quickly installable workaround if people are
not able or willing to use GnuPG or similar, although they have
sensible documents to send.dropafileis written in Python (server parts) and uses thedropzonejsJavaScript library (client parts). The builtin server is
based onWerkzeug.InstallAs a user, run:$ pip install dropafilethen, start the local server:$ dropafile
Creating temporary self-signed SSL certificate...
Done.
Certificate in: /tmp/tmp1y2bgh/cert.pem
Key in:         /tmp/tmp1y2bgh/cert.key
Password is: H93rqnsrdEXD2ad3rQwdWqZ
 * Running on https://localhost:8443/ (Press CTRL+C to quit)The server will provide SSL. Users can accessdropafilesevice
pointing their browsers to the location given. The page is protected
by basic auth. Users will have to provide an arbitrary user name and
the password displayed on the commandline at startup (which changes
with restart).The–helpoption will display all available options:$ dropfile --help
usage: dropafile [-h] [--host HOST] [-p PORT] [-s PASSWORD]

Start dropafile app.

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           Host we bind to. An IP address or DNS name.
                        `localhost` by default.
  -p PORT, --port PORT  Port we listen at. An integer. 8443 by default.
  -s PASSWORD, --secret PASSWORD
                        Password to access dropafile. If none is given we
                        generate one.Whenever a user sends a file, the path is displayed on the
commandline.Developer InstallDevelopers should install avirtualenvfirst:$ virtualenv -p /usr/bin/python2.7 py27  # for Python2.7Seetox.inifor all Python versions supported.Activate the virtualenv:$ source py27/bin/activate
(py27) $Now build the devel environment:(py27) $ python setup.py devYou can run tests like this:(py27) $ py.testTests for all supported (and locally available) Python vesions can be
run by:(py27) $ pip install tox  # neccessary only once per virtualenv
(py27) $ toxChanges0.1.1 (2015-03-30)Turned formerdropafilemodule into a Python package. This is to
fix installation behvior where data files are installed in different
locations depending on install tool. Seediceware bug #1.The problem was revealed byconorschfor thedicewarepackage.0.1 (2015-03-22)Initial release.