{"id":24497138,"url":"https://github.com/gnanesh-16/canvect","last_synced_at":"2026-02-07T22:02:44.374Z","repository":{"id":257790808,"uuid":"861325314","full_name":"gnanesh-16/Canvect","owner":"gnanesh-16","description":"Canvect is a Python package designed for sending and managing CAN (Controller Area Network) messages related to vehicles actuation control. It provides a simple yet flexible API for creating and dispatching CAN messages, making it ideal for applications in automotive and industrial systems ","archived":false,"fork":false,"pushed_at":"2024-09-24T18:32:13.000Z","size":39,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-04T12:52:09.888Z","etag":null,"topics":["automotive-software","can","cangsend","canvect","pypi","python","python-can"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/canvect/0.1.6/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnanesh-16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-22T15:45:38.000Z","updated_at":"2024-09-24T18:32:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"70e6c5d9-4a16-4fb6-8c01-1164845e0297","html_url":"https://github.com/gnanesh-16/Canvect","commit_stats":null,"previous_names":["gnanesh-16/canvect"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gnanesh-16/Canvect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnanesh-16%2FCanvect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnanesh-16%2FCanvect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnanesh-16%2FCanvect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnanesh-16%2FCanvect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnanesh-16","download_url":"https://codeload.github.com/gnanesh-16/Canvect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnanesh-16%2FCanvect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29209844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T21:35:21.898Z","status":"ssl_error","status_checked_at":"2026-02-07T21:35:20.106Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automotive-software","can","cangsend","canvect","pypi","python","python-can"],"created_at":"2025-01-21T21:32:33.734Z","updated_at":"2026-02-07T22:02:44.359Z","avatar_url":"https://github.com/gnanesh-16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Downloads](https://static.pepy.tech/badge/canvect)](https://pepy.tech/project/canvect)   [![Downloads](https://static.pepy.tech/badge/canvect/month)](https://pepy.tech/project/canvect)   [![Downloads](https://static.pepy.tech/badge/canvect/week)](https://pepy.tech/project/canvect)  \n   \n# Canvect v0.1.4 Release Notes\n\n# Overiew\nSo, this is the newr version add on's to that Canvect is a Python package designed for sending and managing CAN (Controller Area Network) messages related to acceleration control. It provides a simple yet flexible API for creating and dispatching CAN messages, making it ideal for applications in automotive and industrial systems where CAN communication is essential.\n\n## Contributing\n\nWe welcome contributions to the `canvect` project! To get started:\n\n1. **Fork the repository**\n2. **Clone your fork**\n   ```bash\n   git clone https://github.com/your-username/canvect.git\n   ```\n3 **Clone your fork**\n```bash\ngit checkout -b feature/your-feature\n```\n4 **Make your changes and commit them*\n```bash\ngit commit -m \"Add a new feature\"\n```\n5. **Push to your fork **\n```bash\ngit push origin feature/your-feature\n\n```\n# New Features\n1. Dynamic Parameter Input: Users can now input dynamic parameters for the following\n\n- arbitration_id: Specify the CAN ID as a hexadecimal value.\n- seventh_byte: Set the seventh byte for the CAN message (value between 0-15).\n- channel: Define the CAN channel (e.g., 'PCAN_USBBUS2').\n- interface: Choose the CAN interface (e.g., 'pcan').\n- bitrate: Set the bitrate for the CAN bus communication (e.g., 500000).\n\nThis enhancement allows users to customize their CAN message sending directly from input prompts, making the package more versatile and user-friendly.\n\n## Installation\n\n```bash\npip install canvect==0.1.4\n\n```\n\n## Usage Examples\n\n1. You can now easily modify parameters like arbitration_id, bitrate, and channel to suit your specific needs:ds\n\n```bash \nfrom Canvect import continuous_acceleration_send\n\ncontinuous_acceleration_send(\n    arbitration_id=int(input(\"Enter arbitration ID (hex): \"), 16),  # Custom CAN ID\n    seventh_byte=int(input(\"Enter the value for the seventh byte (0-15): \")),  # Seventh byte\n    channel=input(\"Enter CAN channel (e.g., 'PCAN_USBBUS2'): \"),  # Custom CAN channel\n    interface=input(\"Enter CAN interface (e.g., 'pcan'): \"),  # Custom interface\n    bitrate=int(input(\"Enter bitrate (e.g., 500000): \"))  # Custom bitrate\n)\n\n```\n\n\n## Example with RingBuffer\n\n```bash \nfrom Canvect import RingBuffer\n\n# Create a RingBuffer with a capacity of 5 items\nbuffer = RingBuffer(capacity=5)\n\n# Append items to the buffer\nfor i in range(10):\n    buffer.append(f\"message_{i}\")\n    print(f\"Buffer after appending message_{i}: {buffer}\")\n\n# Access items by index\nfor i in range(len(buffer)):\n    print(f\"Item at index {i}: {buffer[i]}\")\n\n\n```\n1. The buffer can hold up to 5 items. Once it reaches the maximum capacity, new items will overwrite the oldest ones.\n\n2. You can access items using their index. If you try to access an index that is out of range, an IndexError will be raised.\n\nNote: Here refers to above example\n\n\n```bash \nfrom Canvect import CANBusHandler, send_Canvect_message\n\n# Initialize CAN bus\nbus_handler = CANBusHandler(channel='PCAN_USBBUS2', interface='pcan', bitrate=500000)\n\n# Define custom CAN data (8 bytes)\ndata = [0x11, 0xC8, 0x00, 0x00, 0x00, 0x00, seventh_byte, 0x00]\n\n# Send CAN message with a custom CAN ID and data\nsend_Canvect_message(bus_handler.bus, arbitration_id=0x200, data=data)\n\n# Shutdown the bus after sending\nbus_handler.shutdown()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnanesh-16%2Fcanvect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnanesh-16%2Fcanvect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnanesh-16%2Fcanvect/lists"}