{"id":24501193,"url":"https://github.com/team997coders/pyswerve_2024","last_synced_at":"2025-03-15T07:24:42.266Z","repository":{"id":218821975,"uuid":"745303368","full_name":"Team997Coders/pyswerve_2024","owner":"Team997Coders","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T16:05:25.000Z","size":683,"stargazers_count":1,"open_issues_count":40,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T22:31:49.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Team997Coders.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-19T03:26:57.000Z","updated_at":"2024-11-24T07:59:11.000Z","dependencies_parsed_at":"2024-04-12T17:27:26.846Z","dependency_job_id":null,"html_url":"https://github.com/Team997Coders/pyswerve_2024","commit_stats":null,"previous_names":["team997coders/pyswerve_2024"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team997Coders%2Fpyswerve_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team997Coders%2Fpyswerve_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team997Coders%2Fpyswerve_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team997Coders%2Fpyswerve_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Team997Coders","download_url":"https://codeload.github.com/Team997Coders/pyswerve_2024/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243697831,"owners_count":20333022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T22:25:58.850Z","updated_at":"2025-03-15T07:24:42.243Z","avatar_url":"https://github.com/Team997Coders.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"-------------------------------------------\nGetting a robotpy project set up in VS Code\n-------------------------------------------\n\nPython Install\n--------------\n\nInstall python 3.12 from https://www.python.org/downloads/  Open the folder the installer downloads to.  Right-click the file and select \"Run as Administrator\". \nIn the installer, be certain to install python for \"all users\" and add python to the path. \n\nInstall VS Code from https://code.visualstudio.com/download\n\nOpen either a terminal in VS Code or a command prompt in the project folder:\n\n```pip``` is a package manager for python. It is used to install python packages.\n\nInstall robotpy:\n\n    pip install robotpy\n\nInstall all robotpy subpackages:\n\n    pip install robotpy[all]\n\nIf you have trouble the instructions for a robotpy install are available\nat https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/python-setup.html\n\nYou also want to install the following packages via pip:\n\n- numpy (Math)\n- hypothesis (Testing)\n- sphinx (Documentation)\n- doc8 (Documentation)\n\nVirtual Environment (Optional)\n==============================\n\nI recommend skipping this step if you are new to Python, but it is good to be aware of.\n\nVirtual environments isolate your project from other projects on your system.\nThis allows you to run different versions of packages for different projects.\nThis is unlikely to be used on a dedicated robotics dev machine, but you may\nencounter or need it in the wild.\n\nCreate a virtual environment for the project.  Use the command palette CTRL+SHIFT+P\nand type \"Python: Create Virtual Environment\"\n\nYou may need to enable unrestricted execution policy for the current user\nDon't worry about this step if you don't have problems activating the\nvirtual environment.  The command below needs to be run from powershell.\n\n    Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser\n\nVS Code is not always good about activating the virtual environment when a workspace\nis opened.  You may need to do this manually. It can be done from the command palate\n(CTRL+SHIFT+P) by typing \"Python: Select Interpreter\" and selecting the virtual\nenvironment.\n\nAlternatively, activate the virtual environment from the terminal:\n\n    .\\venv\\Scripts\\Activate.ps1\n\nRobot Project\n-------------\n\nCloned project\n==============\n\nIf you cloned this repository, you can skip this step.  Open the\ncloned folder in VS Code.\n\nBare project\n============\n\nGo to the folder you want to create a robot project in and run:\n\n    python -m robotpy init\n\nThis creates a bare robot project with a ```robot.py``` file and a ```pyproject.toml```\nfile. The pyproject.toml file is used by the robotpy build system to\ndetermine what to build and deploy to the robot.\n\nOpen the project folder in VS Code.\n\nVS Code Configuration\n---------------------\n\nI suggest opening VS Code Preferences (CTRL+,) and setting the following:\n    Save on focus change: on\n\nThis saves files automatically and prevents you from deploying old code by accident.\n\nYou want some extension now.  Open the Extension tab (CTRL+SHIFT+X, or left edge button menu, towards the bottom.)\n\nSearch for and install the following extensions:\n\n- python\n- GitHub Copilot\n- GitHub Copilot Chat\n- reStructuredText (Optional, for documentation, which we all aspire to write)\n- VS Code Speech (Optional, to talk to CoPilot)\n- Live Share (Optional)\n- GitLens (Optional)\n\n\nThere are other great extensions, if you find yourself wishing a task was easier\npoke around the extension list to see if someone has a solution already.\n\nOptional, but highly recommended.  Open the GitHub CoPilot chat tab (below extension library tab on left side). \nEnsure you are logged in to GitHub.  This will allow CoPilot to learn from your code and provide better \nsuggestions.  This requires a GitHub Education account, which you can get for free at https://education.github.com/\n\n(When in the code editor, Use CTRL+I to prompt CoPilot at a specific location in the code via chat for more complex requests.)\n\nNever trust CoPilot code without review.  Think of the results as a suggestion, not a solution.\n\nRobotpy Deploy System\n---------------------\n\nTo deploy python to the robot we need RoboRIO versions of python and the python packages.\nThe sync command downloads and caches packages for our bot listed in the pyproject.toml file.\n\n    python -m robotpy sync\n\n**Note: If you add a new package to your project, update your toml file and run robotpy sync again.**\n    \nAfter that, to deploy your code to the robot, run:\n\n    python -m robotpy deploy\n\nVS Tasks\n--------\n\nIf you cloned the project, you have a workspace file that defines some\nuseful tasks.  Run these tasks from the command palette (CTRL+SHIFT+P)\nor the terminal menu.  These tasks deploy to the robot, debug, and\nrun tests.  \n\nWorkspace settings may also be accessed directly in the .vscode/settings.json file.\nIt is essential for auto-complete and code analysis that the python.analysis.include\nand python.analysis.extraPaths settings contain the correct paths for your project. \nIf you are not using a virtual environment they global python install's site-packages.\nIf you are using an environment they should point to site-packages folder of that \nenvironment.\n\nGlobal install example (Your python install path may be different):\n\n    \"python.analysis.include\": [ \n        \"{env:PyTHONPATH}/Lib/site-packages/*\", \n        \"./*\"\n    ],\n    \"python.analysis.extraPaths\": [\n        \".\",\n        \"{env:PyTHONPATH}/Lib/site-packages\"\n    ],\n\nVirtual environment example:\n\n    \"python.analysis.include\": [ \n        \".venv/Lib/site-packages/*\",\n        \"./*\"\n    ],\n    \"python.analysis.extraPaths\": [\n        \".\",\n        \".venv/Lib/site-packages\"\n    ],\n\n\nNetConsole\n==========\n\nThe RoboRIO netconsole can be viewed in VS Code using the netconsole task.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam997coders%2Fpyswerve_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteam997coders%2Fpyswerve_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam997coders%2Fpyswerve_2024/lists"}