{"id":34051258,"url":"https://github.com/divyajeettt/pyvectors","last_synced_at":"2026-03-17T20:36:16.340Z","repository":{"id":57458296,"uuid":"526708870","full_name":"divyajeettt/pyvectors","owner":"divyajeettt","description":"A mathematical Python module. Allows you to play with 3D Position Vectors.","archived":false,"fork":false,"pushed_at":"2022-08-24T18:47:44.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T09:25:22.649Z","etag":null,"topics":["3d-geometry","matplotlib","pip","python","vector","visualization"],"latest_commit_sha":null,"homepage":"","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/divyajeettt.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}},"created_at":"2022-08-19T18:12:33.000Z","updated_at":"2023-01-17T19:54:44.000Z","dependencies_parsed_at":"2022-09-09T22:51:20.087Z","dependency_job_id":null,"html_url":"https://github.com/divyajeettt/pyvectors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divyajeettt/pyvectors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyajeettt%2Fpyvectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyajeettt%2Fpyvectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyajeettt%2Fpyvectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyajeettt%2Fpyvectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyajeettt","download_url":"https://codeload.github.com/divyajeettt/pyvectors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyajeettt%2Fpyvectors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30631383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["3d-geometry","matplotlib","pip","python","vector","visualization"],"created_at":"2025-12-14T01:05:38.180Z","updated_at":"2026-03-17T20:36:16.331Z","avatar_url":"https://github.com/divyajeettt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyvectors\n\n## About pyvectors\n\npyvectors is a mathematical module providing (real) 3-dimensional position Vectors centered at the Origin as Python objects through a class called `Vector`.\n\n*Date of creation:* `September 27, 2020` \\\n*Date of first release on [PyPI](https://pypi.org/project/pyvectors/):* `April 29, 2021`\n\nUsing this module, vector algebra can be performed fairly easily in Python. It allows a user to plot Vectors on a 3D plot, and can be used as a learning tool to enhance a student's 3D visualization capabilities. \n\n## About class `Vector`\n\nTo access the help-text of the class to know more about it, run:\n\n```python\nhelp(pyvectors.Vector)\n```\n\n### Class Attributes\n\n- `Vector.i == Vector(1, 0, 0)`\n- `Vector.j == Vector(0, 1, 0)`\n- `Vector.k == Vector(0, 0, 1)`\n- `Vector.null == Vector(0, 0, 0)`\n    \nThese `Vectors` cannot be created through the `Vector()` constructor. Functions evaluating to these Vectors will return these predefined objects only.\n\n### Instance Attributes\n\nAll attributes of Vector objects are read-only. Changing any of them results in unexpected behavior, which renders the object useless and prone to errors. To know the available instance attributes, run:\n\n```python\ndir(pyvectors.Vector.null)\n```\n\nTo access the help-text of a method to know more about it, run (`f` is your desired Vector method):\n\n```python\nhelp(pyvectors.Vector.f)\n```\n\n## Update History\n\n### Updates (0.2.2)\n\nMinor bug fixes:\n- Fixed: all math domain errors\n- Fixed: issues with plotting multiple Vectors\n\n### Updates (0.2.3)\n\nAdded methods which allow you to rotate Vectors using the Right-Hand Rule and Matrix Rotation:\n- `Vector.rotate(v, yaw=x, pitch=y, roll=z)`\n    \u003e rotates the Vector by the given yaw, pitch and roll angles\n- `Vector.rotate_vector(v1, v2, phi=value)`\n    \u003e rotates Vector v1 phi degrees about Vector v2\n- `Vector.rotate_axis(v, axis=\"A\", phi=value)`\n    \u003e rotates the Vector phi degrees about the positive direction of the given axis\n\n### Updates (0.2.4)\n\nYou can now compare the magnitude of Vector objects using built-in operators \u003c and \u003e. Note that relational operators \u003c= and \u003e= will still not be defined for Vector Objects as they lead to ambiguity. (Whether to compare magnitudes or compare for actual equality)\n\n### Updates (0.2.5)\n\nAdded new methods:\n- `Vector.exp(v)`\n    \u003e returns a Vector in the direction of v whose magnitude is equal to the exponential of the magnitude of v\n- `Vector.polar_repr(v)`\n    \u003e returns a string representation of v in its polar form\n\n### Updates (0.2.6)\n\n- Minor bug fixes:\n    - Fixed: floating-point precision errors:\n- Alternate constructor `Vector.FromSequence(seq)` can now accept generators and generator expressions as argument\n\n### Updates (0.2.7)\n\nMore colors available for plotting Vectors\n\n### Updates (0.2.8)\n\n`Vector.random(mod)` is now a staticmethod\n\n## Footnotes\n\n- The project does not (yet) use private/read-only class attributes available in Python where they ideally should be.\n- classmethods `ExceptionNull(*vectors)` and `ExceptionVector(*vectors)` are not meant for use\n\n## Run\n\nTo use, execute:\n\n```\npip3 install pyvectors\n```\n\nImport the class `Vector` in your project, wherever needed, using:\n\n```python\nfrom pyvectors import Vector\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyajeettt%2Fpyvectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyajeettt%2Fpyvectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyajeettt%2Fpyvectors/lists"}