Saravanan666/pypi-org huggingface dataset:
Package: roblox-dev
roblox-dev- Модуль позволяющий управлять, писать сообщение через код в 'python'для начала сделаем файл для авторизации:fromroblox_devimportroblox_login# Создание экземпляра класса roblox_loginusername="my_username"password="my_password"roblox=roblox_login(username,password)# Авторизацияroblox.login()Дляуправления,илиотправлениесообщениенамнуженфайлдляконтроля:```pyfromroblox_devimportserver# Создание экземпляра класса `server`server_url="https://www.roblox.com/games/1234567890/my-game"roblox_server=server(server_url)# Подключение к серверуroblox_server.join()# Отключение от сервераroblox_server.leave()# Управление серверомcommand="move forward"roblox_server.controller(command)# Отправка сообщения в чат на сервереmessage="Hello, everyone!"roblox_server.message_send(message)
Package: roblox-pyc
IntroductionSponsors0 sadlyContributorsaqzp💻tututuana💻BazirGames🐛LawMixer🐛cataclysmic-dev🔨roblox-pycDocs|Devforum|Github|Tests/Examplespip install roblox-pycPython, Lunar, C, C++ Compiler for Roblox.Python 3.13 (dev), C (all versions), C++ (all versions), Lunar -> Lua(u)This has NO RELATION with .pyc files, roblox-py, or roblox-tsC/C++ is still in progress.Python is fully implemented, all code should work because it supports the dev build of Python 3.13.Features🔄Interchangeableroblox-pyc supports using Lua, Lunar, roblox-ts, C, C++, and Python all at once so you can have the best of all sides.☄️Ultrafast compilerThe roblox-pyc compiler is designed so entire projects can be compiled in a matter of seconds📉Optimized coderoblox-pyc is a source-source compiler, it doesn't use any WASM or anything like that to cheat its way and has major performance drops. It uses an AST and rewrites your code and optimizes it.⚠️Easy error checkingYour code can easily be checked for errors because of the precompiler error system.🧩Cross-language module supportroblox-pyc allows you to require/import modules from other languages.🛠️Supports everythingRegardless if you use Rojo, Argon, in Mac, Windows with any code editors or anything else roblox-pyc is highly customizable and allows you to use any of them↗️CustomizableYou can customize roblox-pyc to change your C/C++ version or dynamic library or any QoL features, not only that roblox-pyc and all of its dependencies are open-source so you can mod it and change anything to your liking💻Languagesroblox-pyc supports a great variety of languages that are fully programmed.🌎Upload your code to the worldUsing a VScode sync plugin you can upload your code to the world with GitHub, GitLab, whatever.📲In-roblox pluginIf you dont what to use VScode, python supports a roblox plugin which can be hosted in the terminal with all the features listed above!🌙Lunarroblox-pyc comes with a custom language called lunar with amazing syntax features and an extended standard library, which is a modified version of MoonScript for robloxUnsupported featuresImport * (python)Syntax based slicing (python) (workaround: use slice builtin function)C/C++ (not implemented yet)_slots_ (python) (adding soon)_dict_ (python) (adding soon)CreditsHighlighter. modified to work with python (plugin usage)TextBoxPlus. uses a modified version with autocomplete (plugin usage)pythonlua. this is heavily modified version with flask implementation and compiler changes. (read licenses incopyright.txt)seasnakeand sealang. Modified to convert C/C++ to Luau rather than C/C++ to Python 2.7MoonScript. Modified to work with the Roblox API (Lunar).LuauAST. roblox-pyc uses roblox-ts's LuauAST to generate Luau code. (not used in current versions)
Package: robo
Dead simple bot framework which is inspired by Ruby’sruboty.Why reinvent the wheelI Love Python and I’m not good at Node.js(hubot), Ruby(Ruboty).Erris pluggable but it’s too complex for me.brutalis also pluggable but I don’t wont to write config file.So I reinvent the wheel.ArchitectureMessage flow.+--[handler a]--+
                            |               |
[chat service]-->[adapter]--+--[handler b]--+--[adapter]-->[chat service]
                            |               |
                            +--[handler c]--+AdapterAdapter is interface of chat services receive message and send message to chat service.Robo includes two adapters.shellSlackHandlerHandler provides various behaviors to your robot.fromrobo.decoratorsimportcmdclassPing(object):@cmd(regex=r'^ping',description='')defpong(self,message,**kwargs):return'pong'This handler matches messagepingand returnpongto chat service.Bootstrapexample/main.pyis a example of bootstrapingrobo.defmain(args=None):#: `name` is bot's name.#: This arg is trigger of handler.robot=Robot(name=args.name,logger=logger)#: `register_default_handlers()` register default handlers.#: Default handlers are `help`, `ping`, `echo`.robot.register_default_handlers()#: Load given adapter name.robot.load_adapter(args.adapter)#: Run robotrobot.run(args.adapter)
Package: roboarm
Python library for controlling owi robotic arm edge.
Docs available onread the docs.InstallationYou can install stable version from pypi:pipinstallroboarmOr developer version from git:gitclonegit@github.com:nvbn/roboarm.gitcdroboarmpythonsetup.pydevelopBasic usageFor rotate arm clockwise, move elbow up and open grips:fromroboarmimportArmarm=Arm()arm.base.rotate_clock(timeout=3)arm.elbow.up(timeout=1)arm.grips.open(timeout=2)Examplesexamples/controller.py- simple gui tool for working with arm(require pygame)
Package: robob
roBobis python automation tool that simplifies the collection of measurements over repetitive tasks, and the automatic creation of reports.Do you have to run some benchmarks? Do you need to run some tasks over night and collect the numbers? Are you using custom solutions to achieve this? Robob helps you achieve this in every environment! It launches your application on a virtual terminal, starts your application, cralws it’s output, collects numbers and creates reports for you!It uses a powerful, extensible, human-readable YAML ruleset for defining your specifications.You can learn more on the Wiki Page:https://github.com/wavesoft/robob/wikiInstallingRobob is available on PyPI so you can install it with pip:pip install robobUsageTo launch a benchmark you only need to specify the path to the specifications file you want to use:robob benchmarks/mybenchmark.yamlRobob will collect the results in a CSV file. If robob finds a folder calledresultsin the working directory, it will put the results there. Otherwise it will write them in the current directory.ExampleThe following specification file from the Simple Example (https://github.com/wavesoft/robob/wiki/Simple-Example) demonstrates how to use roBob to run iperf between two machines for different window sizes:# What metrics we will be trackingmetrics:-name:bandwidthunits:"B/s"# Which test cases are we going to runtest-cases:window_size:[64,128,256,512,1024,2048]# Which nodes are involved on this testnodes:-name:node1host:192.168.1.1access:-class:robob.access.sshusername:userpassword:secret-name:node2host:192.168.1.2access:-class:robob.access.sshusername:userkey:/path/to/private_key# What application(s) to startapps:-name:iperf_serverbinary:/usr/bin/iperfargs:["-y","C","-s","-w","${window_size}"]parser:iperf_parser-name:iperf_clientbinary:/usr/bin/iperfargs:["-y","C","-c","${remote}","-w","${window_size}"]parser:iperf_parser# How to parse their outputparsers:-name:iperf_parserclass:robob.parser.splitseparator:","# Split on commasmatch:-col:8# Get the 9th column (0=first)name:bandwidth# And put it on the bandwidth metric# Which streams to open in order to run the teststreams:-node:node1# On node 1app:iperf_server# Start iperf server-node:node2# On node 2app:iperf_client# Start iperf clientdelay:5s# After 5 seconds# We also need to define the '${remote}' macro# to point on the IP address of the serverdefine:remote:"${node.node1.host}"
Package: robobopy
robobo.pyRobobo.py is the library used to create programs for the Robobo educational robot (http://www.theroboboproject.com) in the Python language.InstallationTo use this library on your project, follow the steps explained in:https://github.com/mintforpeople/robobo-programming/wiki/python-doc#setting-up-your-computerBasic usageTheRobobo.py library referencecontents the code documentation.
Package: robobopy-audiostream
robobo-python-audio-streamThis library is required to use the audio streaming from the Smartphone's microphone in the Robobo.py library. It only runs in Android operating system.InstallationDownload this repository to your computer and save it in therobobo.byfolder. Then open a terminal window and type the two following commands:pip install robobopy_audiostreamExampleThe following script shows an example of the basic usage of this library:fromrobobopy_audiostream.RoboboAudioimportRoboboAudiofromrobobopy.RoboboimportRoboboimportpyaudioSERVER_IP="ROBOBO_IP"p=pyaudio.PyAudio()FORMAT=pyaudio.paInt16CHANNELS=1RATE=44100CHUNK=1024stream=p.open(format=FORMAT,channels=CHANNELS,rate=RATE,output=True,frames_per_buffer=CHUNK)rob=Robobo(SERVER_IP)rob.connect()rob.setAudioStreamBitrate(RATE)rob.startAudioStream()audio=RoboboAudio(SERVER_IP)audio.connect()audio.syncAudioQueue()whileTrue:try:audioData=audio.getAudioWithMetadata()ifnotaudioDataisNone:data,ts,snc=audioDatastream.write(data)else:breakexceptKeyboardInterrupt:breakrob.stopAudioStream()audio.disconnect()rob.disconnect()
Package: robobopy-videostream
robobo-python-video-streamThis library is required to use the video streaming from the Smartphone's camera in the Robobo.py library. It only runs in Android operating system.InstallationDownload this repository to your computer and save it in therobobo.byfolder. Then open a terminal window and type the two following commands:pip install robobopy_videostreamExampleThe following script shows an example of the basic usage of this library:fromrobobo_videostream.RoboboVideoimportRoboboVideoimportcv2#The IP must be that shown in the Robobo appvideoStream=RoboboVideo("X.X.X.X")rob=Robobo("X.X.X.X")defmain():print("Starting test app")#Connect to the robot and start the video streamrob.connect()rob.startStream()videoStream.connect()print("Showing images")whileTrue:cv2_image=videoStream.getImage()cv2.namedWindow('imagen',cv2.WINDOW_NORMAL)cv2.imshow('imagen',cv2_image)cv2.waitKey(1)main()
Package: robobosim
robobosim.pyRoboboSim.py is the library used to directly interact with the functions exclusive to thesimulatorfor the for the Robobo educational robot (http://www.theroboboproject.com) in the Python language.InstallationTo use this library on your project, install it with pip:pip install robobosimAnd import it like:from robobosim.RoboboSim import RoboboSimBasic usageSeeindex.htmlin thedocsfolder.Sample code# Import the libraryfromrobobosim.RoboboSimimportRoboboSim# Connect to the RoboboSimIP="localhost"sim=RoboboSim(IP)sim.connect()sim.wait(0.5)# Get current location and print itloc=sim.getRobotLocation(0)print(loc["position"])sim.wait(0.5)# Move the Robot -20mm in the X axispos=loc['position']pos["x"]-=20sim.setRobotLocation(0,loc['position'])sim.wait(0.5)# Reset the simulationsim.resetSimulation()sim.disconnect()
Package: robocad-py
Python library for real and virtual robots# Change Log## 0.0.0.1
- First Release## 0.0.0.2
- Real camera exception checker added## 0.0.0.5
- Hope this works## 0.0.0.6
- Servo motors should work now## 0.0.0.7
- Thread joins added## 0.0.0.8
- Thread joins fixed :)## 0.0.0.9
- Thread joins fixed 2 :)## 0.0.1.1
- Library fully changed according to the new requirements
Package: robocadSimPy
Python library for robocadVChange Log0.0.1 (06.10.2020)First Release0.0.6 (19.03.2022)RT-1 and RT-2 robots added0.0.6.4 (02.04.2022)Scene restart fixedMemory leaks fixedUDP connection instead of TCP0.0.6.5 (03.04.2022)TCP connections instead of UDP :)Camera fixed0.0.6.6 (26.04.2022)Festo robot for diplom project added0.0.6.7 (27.04.2022)Project is open source now0.0.6.8 (08.06.2022)Festo robot changesSocket closes surrounded with try/except0.0.6.9 (25.06.2022)ListenPort changes0.0.6.10 (29.06.2022)ConnectionHelper class added, it is easier now to add new robotsUnused files removed (connection_udp.py, festo.py)CHANGELOG file is markdown now
Package: roboclone
A neat little script for cloning git repositories containing FRC robot projects
and configuring them for use with Eclipse.Install InstructionsOpen a terminal and run:pip install robocloneIf you want the very latest version pushed to git then run:pip install git+https://github.com/simon-andrews/roboclone.gitUsageNow that you have RoboClone installed, it’s time to use it! Open a terminal and typeroboclone. Something like this
should show up:$ roboclone
usage: roboclone [-h] [--gitargs args] [--force [FORCE]]
                 remote_url destination
roboclone: error: the following arguments are required: remote_url, destinationAdd the-hswitch to show a help message:$ roboclone -h
usage: roboclone [-h] [--gitargs args] [--force [FORCE]]
                 remote_url destination

positional arguments:
  remote_url       url of the remote git repository (https or ssh)
  destination      directory to clone repository to

optional arguments:
  -h, --help       show this help message and exit
  --gitargs args   extra arguments for git
  --force [FORCE]  write metadata files even if they already exist in the repoClone a repository:$ roboclone https://github.com/Team4761/2015-Robot-Code.git 2015-Robot-Code
100%
Package: roboco
Robot ContainersThis repository contains Dockerfiles for building containers forvarious robots.
It also includes a python scriptrun.pythat wraps thedockercommand to enable:building, starting and entering the container in one stepgraphical applicationsnvidia GPU passthroughrealtime schedulinghost networkingfull external device access (USB, cameras, etc.)Finally, it includesroboco, a script for generating a new project from the included Dockerfiles.Table of ContentsRequirementsInstallationUsageAdding a container to your projectRunning the containerCustomising the containerAvailable Dockerfile TemplatesHardware DriversSoftware SnippetsContributingTroubleshootingRequirementsDockerTested with Docker 20.10.23.Install on Ubuntu usingsudo apt install docker.io(other installation methods may not play well with the nvidia-docker2 runtime.)Follow "Manage Docker as a non-root user" athttps://docs.docker.com/engine/install/linux-postinstall/nvidia-docker2 (for GPU support, optional)Install nvidia-docker2 by followinghttps://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkitVSCode - Dev Containers Extension (Optional)Tested with v0.292.0 of Dev Containers extensionhttps://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containersInstallationUsing pippip install robocoUsing gitgit clone https://github.com/monashrobotics/robot_containers.git
cd robot_containers
pip install .UsageAdding a container to your projectroboco initFollow the prompts to select the robot type and additional features.Once completed, there will be two new files in your current directory:Dockerfileandrun.py.Running the containerBuild the image and run the container using:./run.pyCustomising the containerTheDockerfilecan be edited to add additional dependencies or change the base image.When you make changes to theDockerfile, you will need to rebuild the image using:./run.py buildThen remove the old container and start a new one:./run.py rm
./run.pyAvailable Dockerfile TemplatesDockerfile templates are available for the following robot / ROS / Ubuntu combinations.Robot / ROS Distro (Ubuntu OS)ROS 1 Noetic (20.04)ROS 2 Foxy (20.04)ROS 2 Humble (22.04)ABB YuMiWIP❌❌BaxterWIP❌❌FetchWIP❌❌JackalWIPWIPWIPPandaWIP❌❌RidgebackWIP❌❌UR5✅❌WIPGeneric ROS 1 and ROS 2 Dockerfile templates for the following distributions are also available:ROS 1 Kinetic (16.04)ROS 1 Melodic (18.04)ROS 1 Noetic (20.04)ROS 2 Foxy (20.04)ROS 2 Galactic (20.04)ROS 2 Humble (22.04)Hardware DriversSnippets are available for these hardware drivers and ROS distro combinations:Driver / ROS Distro (Ubuntu OS)ROS 1 Noetic (20.04)ROS 2 Foxy (20.04)ROS 2 Humble (22.04)RealSense CameraWIPWIPWIPVelodyne LiDARWIPWIPWIPRobotiq 2F-85 GripperWIP❌❌Robotiq FT-300 Force-Torque SensorWIP❌❌Software SnippetsSnippets are available for the following software packages:SoftwareROS 1 Noetic (20.04)ROS 2 Foxy (20.04)ROS 2 Humble (22.04)pytorchWIPWIPWIPContributingIf there's a robot, or hardware driver that you'd like to see supported, please open an issue or pull request.
SeeCONTRIBUTING.mdTroubleshootingSeedocs/troubleshooting.md
Package: robocorp
robocorp (metapackage)This is a metapackage for installing the core libraries like logging, vault, asset storage and Control Room integrations, in a single easy to install dependency.The following packages are currently included:NameReleases in PyPIDescriptionrobocorp.tasksCreate entrypoints for your automation project.robocorp.logConfigure and control the execution log.robocorp.vaultStore secret values in Control Room and access them during the execution.robocorp.workitemsInteract with Control Room work items; Read data from previous steps, create output data.robocorp.storageStore assets in Control Room and manage them during the execution.For further documentation on libraries, see theLibraries docs.
Package: robocorp-actions
⚡️ robocorp-actionsA Python library designed to simplify the development of Python actions(AI or otherwise)to be run with theRobocorp Action Server.Getting startedIf you have not setup Action Server already, see the🏃‍♂️ Quickstarton how to do that.Decorate your Python function with the@actiondecorator:fromrobocorp.actionsimportaction@actiondefsum_numbers(a:float,b:float)->float:...And your function is now an ⚡️ action!You can now run and debug your action by Starting Action Server withaction-server startand accessing the UI athttp://localhost:8080.[!NOTE]
Action inputs and outputs support onlyint,float,str, andbooltypes.Describe your actionFor an action's purpose and usage to be understood by AI models(and humans)it needs to be documented correctly.To do that, useGoogle Style Docstringto write a clear and concise description on what your action does and document the action inputs and expected output:@actiondefget_weather_forecast(city:str,days:int,scale:str="celsius")->str:"""Returns weather conditions forecast for a given city.Args:city (str): Target city to get the weather conditions fordays: How many day forecast to returnscale (str): Temperature scale to use, should be one of "celsius" or "fahrenheit"Returns:str: The requested weather conditions forecast"""...[!TIP]
Experiment with and iterate the exact documentation wording to get more predictable results when using your action with AI apps.Consequential flagYou can explicitly provide theis_consequentialflag for an action to mark it's operations as "must always prompt the user for confirmation before running" byOpenAI GPTs(and possibly by other providers). If set toFalse, the user will be provided with an "always allow" feature.@action(is_consequential=True)defget_weather_forecast(city:str,days:int,scale:str="celsius")->str:ExecutionTo get the full benefits of your actions, the suggested way to run them is using Action Server. But it's also possible to do that directly in command line by passing the named arguments:python-mrobocorp.actionsrun----city=Helsinki--days=3API ReferenceInformation on specific functions or classes:robocorp.actionsChangelogA list of releases and corresponding changes can be found in thechangelog.
Package: robocorp-browser
robocorp-browserTherobocorp-browseris a wrapper for thePlaywrightproject, with quality-of-life improvements such as automatic lifecycle management
for Playwright objects (meant to be used withrobocorp-tasks).Getting startedfromrobocorp.tasksimporttaskfromrobocorpimportbrowserfromrobocorpimportvault@taskdefbrowser_automate():# Configure may be used to set the basic robocorp.browser settings.# It must be called prior to calling APIs which create playwright objects.browser.configure(# Note: screenshot="only-on-failure" is actually the default.# If the browser_automate() function finishes with an exception it will# make a screenshot and embed it into the logs.screenshot="only-on-failure",# By default headless is False unless running in a Linux container# without a DISPLAY/WAYLAND_DISPLAY environment variable, but it# can also be manually specified.headless=True,# Interactions may be run in slow-motion (given in milliseconds).slowmo=100,)# browser.goto() may be used as a shortcut to get the current page and# go to some url (it may create the browser if still not created).browser.goto("https://example.com>")login()deflogin():# APIs in robocorp.browser return the same browser instance, which is# automatically closed when the task finishes.page=browser.page()# robocorp.vault is recommended for managing secrets.account=vault.get_secret("default-account")# Use the playwright Browser api as usual.page.fill('//input[@ng-reflect-name="password"]',account["password"])page.click("input:text('Submit')")GuidesBrowser configurationPersistent ContextAPI ReferenceInformation on specific functions or classes:robocorp.browserChangelogA list of releases and corresponding changes can be found in thechangelog.
Package: robocorp-dialog
Robocorp DialogA separate executable which opens a dialog window for querying user input.
Content created dynamically based on JSON spec.Used inDialogslibrary.How to buildThe Python project uses pywebview to render the files in thestatic/folder.
In order to install the Python and JS dependencies you can use:poetry run inv installand then to build the static files once use:poetry run inv build-jsIt is recommended that for development you use the watch command so that the front-end is continously built after each change:poetry run inv watch-jsHow to testUse:poetry run inv testHow to runYou will also need a JSON formatted input that will contain the elements to be rendered in the dialog.
An example of such a JSON would be:form_with_steps.jsonThen the command you use to call themain.pyfile will have to contain this JSON alongside the window title and sizes.
A basic example to start a dialog with a heading would be:python robocorp_dialog/main.py --title Dialog --width 480 --height 100 --auto_height '[{"type":"heading","value":"Send feedback","size":"medium"}]'
Package: robocorp-excel
robocorp-excelThis library provides a simple way to deal with both legacy.xlsfiles
and newer.xlsxfiles directly. It can be used to read and edit them
directly without having Microsoft Excel installed.👉robocorp-excelis not yet production ready.
We work in semver and consider versions below 1.0.0 as development phase releases, you can use them but to get to v1 we need to get the
feature support and testing to a level where we feel comfortable recommending production usage.Getting startedfromrobocorpimportexcelfromrobocorp.tasksimporttask@taskdefinspect_workbook():workbook=excel.open_workbook("orders.xlsx")worksheet=workbook.worksheet("Sheet1")forrowinworksheet.as_table(header=True):print(row)Further user guides and tutorials can be found inRobocorp Docs.API ReferenceInformation on specific functions or classes:robocorp.excelChangelogA list of releases and corresponding changes can be found in thechangelog.
Package: robocorp-http
robocorp-httpWe are deprecating therobocorp-http-library and recommend usingrequests-library directly.requestsis so widely used that just about any AI/LLM is able to provide you with the needed code so an extra wrapper
from us is not needed.importrequestsdefdownload_file(url,local_filename):response=requests.get(url)response.raise_for_status()# this will raise an exception if the request failswithopen(local_filename,'wb')asstream:stream.write(response.content)# write the content of the response to a filereturnlocal_filenameNote:requests-library is already included inrobocorp-package.Check out more under ourRequests3rd-party library documentation.