{ "info": { "author": "Jim Pivarski, Henry Schreiner, Eduardo Rodrigues", "author_email": "eduardo.rodrigues@cern.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering", "Typing :: Typed" ], "description": "\"Vector\n\n# Vector\n\n[![Actions Status][actions-badge]][actions-link]\n[![Documentation Status][rtd-badge]][rtd-link]\n[![pre-commit.ci status][pre-commit-badge]][pre-commit-link]\n[![Code style: black][black-badge]][black-link]\n\n\n[![PyPI version][pypi-version]][pypi-link]\n[![PyPI platforms][pypi-platforms]][pypi-link]\n\n[![GitHub Discussion][github-discussions-badge]][github-discussions-link]\n[![Gitter][gitter-badge]][gitter-link]\n[![Scikit-HEP][sk-badge]](https://scikit-hep.org/)\n\n\nVector is a Python 3.6+ library for 2D, 3D, and [Lorentz vectors](https://en.wikipedia.org/wiki/Special_relativity#Physics_in_spacetime), especially _arrays of vectors_, to solve common physics problems in a NumPy-like way.\n\nMain features of Vector:\n\n * Pure Python with NumPy as its only dependency. This makes it easier to install.\n * Vectors may be represented in a variety of coordinate systems: Cartesian, cylindrical, pseudorapidity, and any combination of these with time or proper time for Lorentz vectors. In all, there are 12 coordinate systems: {_x_-_y_ vs _\u03c1_-_\u03c6_ in the azimuthal plane} \u00d7 {_z_ vs _\u03b8_ vs _\u03b7_ longitudinally} \u00d7 {_t_ vs _\u03c4_ temporally}.\n * Uses names and conventions set by [ROOT](https://root.cern/)'s [TLorentzVector](https://root.cern.ch/doc/master/classTLorentzVector.html) and [Math::LorentzVector](https://root.cern.ch/doc/master/classROOT_1_1Math_1_1LorentzVector.html), as well as [scikit-hep/math](https://github.com/scikit-hep/scikit-hep/tree/master/skhep/math), [uproot-methods TLorentzVector](https://github.com/scikit-hep/uproot3-methods/blob/master/uproot3_methods/classes/TLorentzVector.py), [henryiii/hepvector](https://github.com/henryiii/hepvector), and [coffea.nanoevents.methods.vector](https://coffeateam.github.io/coffea/modules/coffea.nanoevents.methods.vector.html).\n * Implemented on a variety of backends:\n - pure Python objects\n - NumPy arrays of vectors (as a [structured array](https://numpy.org/doc/stable/user/basics.rec.html) subclass)\n - [Awkward Arrays](https://awkward-array.org/) of vectors\n - potential for more: CuPy, TensorFlow, Torch, JAX...\n * NumPy/Awkward backends also implemented in [Numba](https://numba.pydata.org/) for JIT-compiled calculations on vectors.\n * Distinction between geometrical vectors, which have a minimum of attribute and method names, and vectors representing momentum, which have synonyms like `pt` = `rho`, `energy` = `t`, `mass` = `tau`.\n\n## Installation\n\nTo install, use `pip install vector` or your favorite way to install in an environment.\n\n## Overview\n\nThis overview is based on the [documentation here](https://vector.readthedocs.io/en/develop/usage/intro.html).\n\n\n```python\nimport vector\nimport numpy as np\nimport awkward as ak # at least version 1.2.0\nimport numba as nb\n```\n\n## Constructing a vector or an array of vectors\n\nThe easiest way to create one or many vectors is with a helper function:\n\n * `vector.obj` to make a pure Python vector object,\n * `vector.arr` to make a NumPy array of vectors (or `array`, lowercase, like `np.array`),\n * `vector.awk` to make an Awkward Array of vectors (or `Array`, uppercase, like `ak.Array`).\n\n### Pure Python vectors\n\n\n```python\nvector.obj(x=3, y=4) # Cartesian 2D vector\nvector.obj(rho=5, phi=0.9273) # same in polar coordinates\nvector.obj(x=3, y=4).isclose(vector.obj(rho=5, phi=0.9273)) # use \"isclose\" unless they are exactly equal\nvector.obj(x=3, y=4, z=-2) # Cartesian 3D vector\nvector.obj(x=3, y=4, z=-2, t=10) # Cartesian 4D vector\nvector.obj(rho=5, phi=0.9273, eta=-0.39, t=10) # in rho-phi-eta-t cylindrical coordinates\nvector.obj(pt=5, phi=0.9273, eta=-0.39, E=10) # use momentum-synonyms to get a momentum vector\nvector.obj(rho=5, phi=0.9273, eta=-0.39, t=10) == vector.obj(pt=5, phi=0.9273, eta=-0.390035, E=10)\nvector.obj(rho=5, phi=0.9273, eta=-0.39, t=10).tau # geometrical vectors have to use geometrical names (\"tau\", not \"mass\")\nvector.obj(pt=5, phi=0.9273, eta=-0.39, E=10).mass # momentum vectors can use momentum names (as well as geometrical ones)\nvector.obj(pt=5, phi=0.9273, theta=1.9513, mass=8.4262) # any combination of azimuthal, longitudinal, and temporal coordinates is allowed\nvector.obj(x=3, y=4, z=-2, t=10).isclose(vector.obj(pt=5, phi=0.9273, theta=1.9513, mass=8.4262))\n\n# Test instance type for any level of granularity.\n(\n isinstance(vector.obj(x=1.1, y=2.2), vector.Vector), # is a vector or array of vectors\n isinstance(vector.obj(x=1.1, y=2.2), vector.Vector2D), # is 2D (not 3D or 4D)\n isinstance(vector.obj(x=1.1, y=2.2), vector.VectorObject), # is a vector object (not an array)\n isinstance(vector.obj(px=1.1, py=2.2), vector.Momentum), # has momentum synonyms\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4), vector.Planar), # has transverse plane (2D, 3D, or 4D)\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4), vector.Spatial), # has all spatial coordinates (3D or 4D)\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4), vector.Lorentz), # has temporal coordinates (4D)\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4).azimuthal, vector.AzimuthalXY), # azimuthal coordinate type\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4).longitudinal, vector.LongitudinalZ), # longitudinal coordinate type\n isinstance(vector.obj(x=1.1, y=2.2, z=3.3, t=4.4).temporal, vector.TemporalT), # temporal coordinate type\n)\n```\n\n\nThe allowed keyword arguments for 2D vectors are:\n\n * `x` and `y` for Cartesian azimuthal coordinates,\n * `px` and `py` for momentum,\n * `rho` and `phi` for polar azimuthal coordinates,\n * `pt` and `phi` for momentum.\n\nFor 3D vectors, you need the above and:\n\n * `z` for the Cartesian longitudinal coordinate,\n * `pz` for momentum,\n * `theta` for the spherical polar angle (from $0$ to $\\pi$, inclusive),\n * `eta` for pseudorapidity, which is a kind of spherical polar angle.\n\nFor 4D vectors, you need the above and:\n\n * `t` for the Cartesian temporal coordinate,\n * `E` or `energy` to get four-momentum,\n * `tau` for the \"proper time\" (temporal coordinate in the vector's rest coordinate system),\n * `M` or `mass` to get four-momentum.\n\nSince momentum vectors have momentum-synonyms _in addition_ to the geometrical names, any momentum-synonym will make the whole vector a momentum vector.\n\nIf you want to bypass the dimension and coordinate system inference through keyword arguments (e.g. for static typing), you can use specialized constructors:\n\n\n```python\nvector.VectorObject2D.from_xy(1.1, 2.2)\nvector.MomentumObject3D.from_rhophiz(1.1, 2.2, 3.3)\nvector.VectorObject4D.from_xyetatau(1.1, 2.2, 3.3, 4.4)\n```\n\nand so on, for all combinations of azimuthal, longitudinal, and temporal coordinates, geometric and momentum-flavored.\n\n### NumPy arrays of vectors\n\n\n```python\n# NumPy-like arguments (literally passed through to NumPy)\nvector.array([\n (1.1, 2.1), (1.2, 2.2), (1.3, 2.3), (1.4, 2.4), (1.5, 2.5)\n], dtype=[(\"x\", float), (\"y\", float)])\n\n# Pandas-like arguments (dict from names to column arrays)\nvector.array({\"x\": [1.1, 1.2, 1.3, 1.4, 1.5], \"y\": [2.1, 2.2, 2.3, 2.4, 2.5]})\n\n# As with objects, the coordinate system and dimension is taken from the names of the fields.\nvector.array({\n \"x\": [1.1, 1.2, 1.3, 1.4, 1.5],\n \"y\": [2.1, 2.2, 2.3, 2.4, 2.5],\n \"z\": [3.1, 3.2, 3.3, 3.4, 3.5],\n \"t\": [4.1, 4.2, 4.3, 4.4, 4.5],\n})\n\nvector.array({\n \"pt\": [1.1, 1.2, 1.3, 1.4, 1.5],\n \"phi\": [2.1, 2.2, 2.3, 2.4, 2.5],\n \"eta\": [3.1, 3.2, 3.3, 3.4, 3.5],\n \"M\": [4.1, 4.2, 4.3, 4.4, 4.5],\n})\n```\n\nExisting NumPy arrays can be viewed as arrays of vectors, but it needs to be a [structured array](https://numpy.org/doc/stable/user/basics.rec.html) with recognized field names.\n\n\n```python\n# NumPy array # interpret groups of four values as named fields # give it vector properties and methods\nnp.arange(0, 24, 0.1).view([(\"x\", float), (\"y\", float), (\"z\", float), (\"t\", float)]).view(vector.VectorNumpy4D)\n```\n\n\nSince `VectorNumpy2D`, `VectorNumpy3D`, `VectorNumpy4D`, and their momentum equivalents are NumPy array subclasses, all of the normal NumPy methods and functions work on them.\n\n\n```python\nnp.arange(0, 24, 0.1).view([(\"x\", float), (\"y\", float), (\"z\", float), (\"t\", float)]).view(vector.VectorNumpy4D).reshape(6, 5, 2)\n```\n\n\nAll of the keyword arguments and rules that apply to `vector.obj` construction apply to `vector.arr` dtypes.\n\nGeometrical names are used in the dtype, even if momentum-synonyms are used in construction.\n\n\n```python\nvector.arr({\"px\": [1, 2, 3, 4], \"py\": [1.1, 2.2, 3.3, 4.4], \"pz\": [0.1, 0.2, 0.3, 0.4]})\n```\n\n\n### Awkward Arrays of vectors\n\n[Awkward Arrays](https://awkward-array.org/) are arrays with more complex data structures than NumPy allows, such as variable-length lists, nested records, missing and even heterogeneous data (multiple data types: use sparingly).\n\nThe `vector.awk` function behaves exactly like the [ak.Array](https://awkward-array.readthedocs.io/en/latest/_auto/ak.Array.html) constructor, except that it makes arrays of vectors.\n\n\n```python\nvector.awk([\n [{\"x\": 1, \"y\": 1.1, \"z\": 0.1}, {\"x\": 2, \"y\": 2.2, \"z\": 0.2}],\n [],\n [{\"x\": 3, \"y\": 3.3, \"z\": 0.3}],\n [{\"x\": 4, \"y\": 4.4, \"z\": 0.4}, {\"x\": 5, \"y\": 5.5, \"z\": 0.5}, {\"x\": 6, \"y\": 6.6, \"z\": 0.6}],\n])\n```\n\n\nIf you want _any_ records named \"`Vector2D`\", \"`Vector3D`\", \"`Vector4D`\", \"`Momentum2D`\", \"`Momentum3D`\", or \"`Momentum4D`\" to be interpreted as vectors, register the behaviors globally.\n\n\n```python\nvector.register_awkward()\n\nak.Array([\n [{\"x\": 1, \"y\": 1.1, \"z\": 0.1}, {\"x\": 2, \"y\": 2.2, \"z\": 0.2}],\n [],\n [{\"x\": 3, \"y\": 3.3, \"z\": 0.3}],\n [{\"x\": 4, \"y\": 4.4, \"z\": 0.4}, {\"x\": 5, \"y\": 5.5, \"z\": 0.5}, {\"x\": 6, \"y\": 6.6, \"z\": 0.6}],\n],\n with_name=\"Vector3D\"\n)\n```\n\n\n\n\n\n\nAll of the keyword arguments and rules that apply to `vector.obj` construction apply to `vector.awk` field names.\n\n## Vector properties\n\nAny geometrical coordinate can be computed from vectors in any coordinate system; they'll be provided or computed as needed.\n\n\n```python\nvector.obj(x=3, y=4).rho\nvector.obj(rho=5, phi=0.9273).x\nvector.obj(rho=5, phi=0.9273).y\nvector.obj(x=1, y=2, z=3).theta\nvector.obj(x=1, y=2, z=3).eta\n```\n\n\nSome properties are not coordinates, but derived from them.\n\n\n```python\nvector.obj(x=1, y=2, z=3).costheta\nvector.obj(x=1, y=2, z=3).mag # spatial magnitude\nvector.obj(x=1, y=2, z=3).mag2 # spatial magnitude squared\n```\n\n\nThese properties are provided because they can be computed faster or with more numerical stability in different coordinate systems. For instance, the magnitude ignores `phi` in polar coordinates.\n\n\n```python\nvector.obj(rho=3, phi=0.123456789, z=4).mag2\n```\n\nMomentum vectors have geometrical properties as well as their momentum-synonyms.\n\n\n```python\nvector.obj(px=3, py=4).rho\nvector.obj(px=3, py=4).pt\nvector.obj(x=1, y=2, z=3, E=4).tau\nvector.obj(x=1, y=2, z=3, E=4).mass\n```\n\n\n\n\nHere's the key thing: _arrays of vectors return arrays of coordinates_.\n\n\n```python\nvector.arr({\n \"x\": [1.0, 2.0, 3.0, 4.0, 5.0],\n \"y\": [1.1, 2.2, 3.3, 4.4, 5.5],\n \"z\": [0.1, 0.2, 0.3, 0.4, 0.5],\n}).theta\n\nvector.awk([\n [{\"x\": 1, \"y\": 1.1, \"z\": 0.1}, {\"x\": 2, \"y\": 2.2, \"z\": 0.2}],\n [],\n [{\"x\": 3, \"y\": 3.3, \"z\": 0.3}],\n [{\"x\": 4, \"y\": 4.4, \"z\": 0.4}, {\"x\": 5, \"y\": 5.5, \"z\": 0.5}],\n]).theta\n\n# Make a large, random NumPy array of 3D momentum vectors.\narray = np.random.normal(0, 1, 150).view([(x, float) for x in (\"x\", \"y\", \"z\")]).view(vector.MomentumNumpy3D).reshape(5, 5, 2)\n\n# Get the transverse momentum of each one.\narray.pt\n\n# The array and its components have the same shape.\narray.shape\narray.pt.shape\n\n# Make a large, random Awkward Array of 3D momentum vectors.\narray = vector.awk([[{x: np.random.normal(0, 1) for x in (\"px\", \"py\", \"pz\")} for inner in range(np.random.poisson(1.5))] for outer in range(50)])\n\n# Get the transverse momentum of each one, in the same nested structure.\narray.pt\n\n# The array and its components have the same list lengths (and can therefore be used together in subsequent calculations).\nak.num(array)\nak.num(array.pt)\n```\n\n\n## Vector methods\n\nVector methods require arguments (in parentheses), which may be scalars or other vectors, depending on the calculation.\n\n\n```python\nvector.obj(x=3, y=4).rotateZ(0.1)\nvector.obj(rho=5, phi=0.4).rotateZ(0.1)\n\n# Broadcasts a scalar rotation angle of 0.5 to all elements of the NumPy array.\nprint(vector.arr({\"rho\": [1, 2, 3, 4, 5], \"phi\": [0.1, 0.2, 0.3, 0.4, 0.5]}).rotateZ(0.5))\n\n# Matches each rotation angle to an element of the NumPy array.\nprint(vector.arr({\"rho\": [1, 2, 3, 4, 5], \"phi\": [0.1, 0.2, 0.3, 0.4, 0.5]}).rotateZ(np.array([0.1, 0.2, 0.3, 0.4, 0.5])))\n\n# Broadcasts a scalar rotation angle of 0.5 to all elements of the Awkward Array.\nprint(vector.awk([[{\"rho\": 1, \"phi\": 0.1}, {\"rho\": 2, \"phi\": 0.2}], [], [{\"rho\": 3, \"phi\": 0.3}]]).rotateZ(0.5))\n\n# Broadcasts a rotation angle of 0.1 to both elements of the first list, 0.2 to the empty list, and 0.3 to the only element of the last list.\nprint(vector.awk([[{\"rho\": 1, \"phi\": 0.1}, {\"rho\": 2, \"phi\": 0.2}], [], [{\"rho\": 3, \"phi\": 0.3}]]).rotateZ([0.1, 0.2, 0.3]))\n\n# Matches each rotation angle to an element of the Awkward Array.\nprint(vector.awk([[{\"rho\": 1, \"phi\": 0.1}, {\"rho\": 2, \"phi\": 0.2}], [], [{\"rho\": 3, \"phi\": 0.3}]]).rotateZ([[0.1, 0.2], [], [0.3]]))\n```\n\n\nSome methods are equivalent to binary operators.\n\n\n```python\nvector.obj(x=3, y=4).scale(10)\nvector.obj(x=3, y=4) * 10\n10 * vector.obj(x=3, y=4)\nvector.obj(rho=5, phi=0.5) * 10\n```\n\n\nSome methods involve more than one vector.\n\n\n```python\nvector.obj(x=1, y=2).add(vector.obj(x=5, y=5))\nvector.obj(x=1, y=2) + vector.obj(x=5, y=5)\nvector.obj(x=1, y=2).dot(vector.obj(x=5, y=5))\nvector.obj(x=1, y=2) @ vector.obj(x=5, y=5)\n```\n\n\nThe vectors can use different coordinate systems. Conversions are necessary, but minimized for speed and numeric stability.\n\n\n```python\nvector.obj(x=3, y=4) @ vector.obj(x=6, y=8) # both are Cartesian, dot product is exact\nvector.obj(rho=5, phi=0.9273) @ vector.obj(x=6, y=8) # one is polar, dot product is approximate\nvector.obj(x=3, y=4) @ vector.obj(rho=10, phi=0.9273) # one is polar, dot product is approximate\nvector.obj(rho=5, phi=0.9273) @ vector.obj(rho=10, phi=0.9273) # both are polar, a formula that depends on phi differences is used\n```\n\n\n\n\nIn Python, some \"operators\" are actually built-in functions, such as `abs`.\n\n\n```python\nabs(vector.obj(x=3, y=4))\n```\n\n\n\n\nNote that `abs` returns\n\n * `rho` for 2D vectors\n * `mag` for 3D vectors\n * `tau` (`mass`) for 4D vectors\n\nUse the named properties when you want magnitude in a specific number of dimensions; use `abs` when you want the magnitude for any number of dimensions.\n\nThe vectors can be from different backends. Normal rules for broadcasting Python numbers, NumPy arrays, and Awkward Arrays apply.\n\n\n```python\nvector.arr({\"x\": [1, 2, 3, 4, 5], \"y\": [0.1, 0.2, 0.3, 0.4, 0.5]}) + vector.obj(x=10, y=5)\n\n(\n vector.awk([ # an Awkward Array of vectors\n [{\"x\": 1, \"y\": 1.1}, {\"x\": 2, \"y\": 2.2}],\n [],\n [{\"x\": 3, \"y\": 3.3}],\n [{\"x\": 4, \"y\": 4.4}, {\"x\": 5, \"y\": 5.5}],\n ])\n + vector.obj(x=10, y=5) # and a single vector object\n)\n\n(\n vector.awk([ # an Awkward Array of vectors\n [{\"x\": 1, \"y\": 1.1}, {\"x\": 2, \"y\": 2.2}],\n [],\n [{\"x\": 3, \"y\": 3.3}],\n [{\"x\": 4, \"y\": 4.4}, {\"x\": 5, \"y\": 5.5}],\n ])\n + vector.arr({\"x\": [4, 3, 2, 1], \"y\": [0.1, 0.1, 0.1, 0.1]}) # and a NumPy array of vectors\n)\n```\n\n\nSome operations are defined for 2D or 3D vectors, but are usable on higher-dimensional vectors because the additional components can be ignored or are passed through unaffected.\n\n\n```python\nvector.obj(rho=1, phi=0.5).deltaphi(vector.obj(rho=2, phi=0.3)) # deltaphi is a planar operation (defined on the transverse plane)\nvector.obj(rho=1, phi=0.5, z=10).deltaphi(vector.obj(rho=2, phi=0.3, theta=1.4)) # but we can use it on 3D vectors\nvector.obj(rho=1, phi=0.5, z=10, t=100).deltaphi(vector.obj(rho=2, phi=0.3, theta=1.4, tau=1000)) # and 4D vectors\nvector.obj(rho=1, phi=0.5).deltaphi(vector.obj(rho=2, phi=0.3, theta=1.4, tau=1000)) # and mixed dimensionality\n```\n\nThis is especially useful for giving 4D vectors all the capabilities of 3D vectors.\n\n\n```python\nvector.obj(x=1, y=2, z=3).rotateX(np.pi/4)\nvector.obj(x=1, y=2, z=3, tau=10).rotateX(np.pi/4)\nvector.obj(pt=1, phi=1.3, eta=2).deltaR(vector.obj(pt=2, phi=0.3, eta=1))\nvector.obj(pt=1, phi=1.3, eta=2, mass=5).deltaR(vector.obj(pt=2, phi=0.3, eta=1, mass=10))\n```\n\n\nThe opposite\u2014using low-dimensional vectors in operations defined for higher numbers of dimensions\u2014is sometimes defined. In these cases, a zero longitudinal or temporal component has to be imputed.\n\n\n```python\nvector.obj(x=1, y=2, z=3) - vector.obj(x=1, y=2)\nvector.obj(x=1, y=2, z=0).is_parallel(vector.obj(x=1, y=2))\n```\n\n\nAnd finally, in some cases, the function excludes a higher-dimensional component, even if the input vectors had them.\n\nIt would be confusing if the 3D cross-product returned a fourth component.\n\n\n```python\nvector.obj(x=0.1, y=0.2, z=0.3, t=10).cross(vector.obj(x=0.4, y=0.5, z=0.6, t=20))\n```\n\n\nThe (current) list of properties and methods is:\n\n**Planar (2D, 3D, 4D):**\n\n * `x` (`px`)\n * `y` (`py`)\n * `rho` (`pt`): two-dimensional magnitude\n * `rho2` (`pt2`): two-dimensional magnitude squared\n * `phi`\n * `deltaphi(vector)`: difference in `phi` (signed and rectified to $-\\pi$ through $\\pi$)\n * `rotateZ(angle)`\n * `transform2D(obj)`: the `obj` must supply components through `obj[\"xx\"]`, `obj[\"xy\"]`, `obj[\"yx\"]`, `obj[\"yy\"]`\n * `is_parallel(vector, tolerance=1e-5)`: only true _if they're pointing in the same direction_\n * `is_antiparallel(vector, tolerance=1e-5)`: only true _if they're pointing in opposite directions_\n * `is_perpendicular(vector, tolerance=1e-5)`\n\n**Spatial (3D, 4D):**\n\n * `z` (`pz`)\n * `theta`\n * `eta`\n * `costheta`\n * `cottheta`\n * `mag` (`p`): three-dimensional magnitude, does not include temporal component\n * `mag2` (`p2`): three-dimensional magnitude squared\n * `cross`: cross-product (strictly 3D)\n * `deltaangle(vector)`: difference in angle (always non-negative)\n * `deltaeta(vector)`: difference in `eta` (signed)\n * `deltaR(vector)`: $\\Delta R = \\sqrt{\\Delta\\phi^2 + \\Delta\\eta^2}$\n * `deltaR2(vector)`: the above, squared\n * `rotateX(angle)`\n * `rotateY(angle)`\n * `rotate_axis(axis, angle)`: the magnitude of `axis` is ignored, but it must be at least 3D\n * `rotate_euler(phi, theta, psi, order=\"zxz\")`: the arguments are in the same order as [ROOT::Math::EulerAngles](https://root.cern.ch/doc/master/classROOT_1_1Math_1_1EulerAngles.html), and `order=\"zxz\"` agrees with ROOT's choice of conventions\n * `rotate_nautical(yaw, pitch, roll)`\n * `rotate_quaternion(u, i, j, k)`: again, the conventions match [ROOT::Math::Quaternion](https://root.cern.ch/doc/master/classROOT_1_1Math_1_1Quaternion.html).\n * `transform3D(obj)`: the `obj` must supply components through `obj[\"xx\"]`, `obj[\"xy\"]`, etc.\n * `is_parallel(vector, tolerance=1e-5)`: only true _if they're pointing in the same direction_\n * `is_antiparallel(vector, tolerance=1e-5)`: only true _if they're pointing in opposite directions_\n * `is_perpendicular(vector, tolerance=1e-5)`\n\n**Lorentz (4D only):**\n\n * `t` (`E`, `energy`): follows the [ROOT::Math::LorentzVector](https://root.cern/doc/master/LorentzVectorPage.html) behavior of treating spacelike vectors as negative `t` and negative `tau` and truncating wrong-direction timelike vectors\n * `t2` (`E2`, `energy2`)\n * `tau` (`M`, `mass`): see note above\n * `tau2` (`M2`, `mass2`)\n * `beta`: scalar(s) between $0$ (inclusive) and $1$ (exclusive, unless the vector components are infinite)\n * `gamma`: scalar(s) between $1$ (inclusive) and $\\infty$\n * `rapidity`: scalar(s) between $0$ (inclusive) and $\\infty$\n * `boost_p4(four_vector)`: change coordinate system using another 4D vector as the difference\n * `boost_beta(three_vector)`: change coordinate system using a 3D beta vector (all components between $-1$ and $+1$)\n * `boost(vector)`: uses the dimension of the given `vector` to determine behavior\n * `boostX(beta=None, gamma=None)`: supply `beta` xor `gamma`, but not both\n * `boostY(beta=None, gamma=None)`: supply `beta` xor `gamma`, but not both\n * `boostZ(beta=None, gamma=None)`: supply `beta` xor `gamma`, but not both\n * `transform4D(obj)`: the `obj` must supply components through `obj[\"xx\"]`, `obj[\"xy\"]`, etc.\n * `to_beta3()`: turns a `four_vector` (for `boost_p4`) into a `three_vector` (for `boost_beta3`)\n * `is_timelike(tolerance=0)`\n * `is_spacelike(tolerance=0)`\n * `is_lightlike(tolerance=1e-5)`: note the different tolerance\n\n**All numbers of dimensions:**\n\n * `unit()`: note the parentheses\n * `dot(vector)`: can also use the `@` operator\n * `add(vector)`: can also use the `+` operator\n * `subtract(vector)`: can also use the `-` operator\n * `scale(factor)`: can also use the `*` operator\n * `equal(vector)`: can also use the `==` operator, but consider `isclose` instead\n * `not_equal(vector)`: can also use the `!=` operator, but consider `isclose` instead\n * `isclose(vector, rtol=1e-5, atol=1e-8, equal_nan=False)`: works like [np.isclose](https://numpy.org/doc/stable/reference/generated/numpy.isclose.html); arrays also have an [allclose](https://numpy.org/doc/stable/reference/generated/numpy.allclose.html) method\n\n## Compiling your Python with Numba\n\n[Numba](https://numba.pydata.org/) is a just-in-time (JIT) compiler for a mathematically relevant subset of NumPy and Python. It allows you to write fast code without leaving the Python environment. The drawback of Numba is that it can only compile code blocks involving objects and functions that it recognizes.\n\nThe Vector library includes extensions to inform Numba about vector objects, vector NumPy arrays, and vector Awkward Arrays. At the time of writing, the implementation of vector NumPy arrays is incomplete due to [numba/numba#6148](https://github.com/numba/numba/pull/6148).\n\nFor instance, consider the following function:\n\n\n```python\n@nb.njit\ndef compute_mass(v1, v2):\n return (v1 + v2).mass\n\ncompute_mass(vector.obj(px=1, py=2, pz=3, E=4), vector.obj(px=-1, py=-2, pz=-3, E=4))\n```\n\n\n\n\nWhen the two `MomentumObject4D` objects are passed as arguments, Numba recognizes them and replaces the Python objects with low-level structs. When it compiles the function, it recognizes `+` as the 4D `add` function and recognizes `.mass` as the `tau` component of the result.\n\nAlthough this demonstrates that Numba can manipulate vector objects, there is no performance advantage (and a likely disadvantage) to compiling a calculation on just a few vectors. The advantage comes when many vectors are involved, in arrays.\n\n\n```python\n# This is still not a large number. You want millions.\narray = vector.awk([[dict({x: np.random.normal(0, 1) for x in (\"px\", \"py\", \"pz\")}, E=np.random.normal(10, 1)) for inner in range(np.random.poisson(1.5))] for outer in range(50)])\n\n@nb.njit\ndef compute_masses(array):\n out = np.empty(len(array), np.float64)\n for i, event in enumerate(array):\n total = vector.obj(px=0.0, py=0.0, pz=0.0, E=0.0)\n for vec in event:\n total = total + vec\n out[i] = total.mass\n return out\n\n\ncompute_masses(array)\n```\n\n\n### Status as of April 8, 2021\n\nUndoubtedly, there are rough edges, but most of the functionality is there and Vector is ready for user-testing. It can only be improved by your feedback!\n\n\n## Contributors \u2728\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n
\"\"/
Jim Pivarski

\ud83d\udea7 \ud83d\udcbb \ud83d\udcd6
\"\"/
Henry Schreiner

\ud83d\udea7 \ud83d\udcbb \ud83d\udcd6
\"\"/
Eduardo Rodrigues

\ud83d\udea7 \ud83d\udcbb \ud83d\udcd6
\"\"/
N!no

\ud83d\udcd6
\"\"/
Peter Fackeldey

\ud83d\udcd6
\"\"/
Luke Kreczko

\ud83d\udcbb
\"\"/
Nicholas Smith

\ud83e\udd14
\"\"/
Jonas Eschle

\ud83e\udd14
\n\n\n\n\n\n\nThis project follows the\n[all-contributors](https://github.com/all-contributors/all-contributors)\nspecification. Contributions of any kind welcome! See\n[CONTRIBUTING.md](./.github/CONTRIBUTING.md) for information on setting up a\ndevelopment environment.\n\n\n## Acknowledgements\n\nThis library was primarily developed by Jim Pivarski, Henry Schreiner, and Eduardo Rodrigues.\n\nSupport for this work was provided by the National Science Foundation cooperative agreement OAC-1836650 (IRIS-HEP) and OAC-1450377 (DIANA/HEP). Any opinions, findings, conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.\n\n\n\n[actions-badge]: https://github.com/scikit-hep/vector/workflows/CI/badge.svg\n[actions-link]: https://github.com/scikit-hep/vector/actions\n[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg\n[black-link]: https://github.com/psf/black\n[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github\n[github-discussions-link]: https://github.com/scikit-hep/vector/discussions\n[gitter-badge]: https://badges.gitter.im/Scikit-HEP/vector.svg\n[gitter-link]: https://gitter.im/Scikit-HEP/vector?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[pre-commit-badge]: https://results.pre-commit.ci/badge/github/scikit-hep/vector/develop.svg\n[pre-commit-link]: https://results.pre-commit.ci/repo/github/scikit-hep/vector\n[pypi-link]: https://pypi.org/project/vector/\n[pypi-platforms]: https://img.shields.io/pypi/pyversions/vector\n[pypi-version]: https://badge.fury.io/py/vector.svg\n[rtd-badge]: https://readthedocs.org/projects/vector/badge/?version=latest\n[rtd-link]: https://vector.readthedocs.io/en/latest/?badge=latest\n[sk-badge]: https://scikit-hep.org/assets/images/Scikit--HEP-Project-blue.svg\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scikit-hep/vector", "keywords": "vector", "license": "BSD-3-Clause", "maintainer": "The Scikit-HEP admins", "maintainer_email": "scikit-hep-admins@googlegroups.com", "name": "vector", "package_url": "https://pypi.org/project/vector/", "platform": "Any", "project_url": "https://pypi.org/project/vector/", "project_urls": { "Bug Tracker": "https://github.com/scikit-hep/vector/issues", "Changelog": "https://vector.readthedocs.io/en/latest/changelog.html", "Discussions": "https://github.com/scikit-hep/vector/discussions", "Documentation": "https://vector.readthedocs.io/", "Homepage": "https://github.com/scikit-hep/vector" }, "release_url": "https://pypi.org/project/vector/0.8.5/", "requires_dist": [ "numpy (>=1.13.3)", "packaging (>=19.0)", "importlib-metadata (>=0.22) ; python_version < \"3.8\"", "typing-extensions ; python_version < \"3.8\"", "awkward (>=1.2.0) ; extra == 'all'", "pytest (>=4.6) ; extra == 'all'", "uncompyle6 ; extra == 'all'", "spark-parser ; extra == 'all'", "nbsphinx ; extra == 'all'", "myst-parser (>0.13) ; extra == 'all'", "Sphinx (~=3.0) ; extra == 'all'", "sphinx-copybutton ; extra == 'all'", "sphinx-book-theme (~=0.0.42) ; extra == 'all'", "sphinx-math-dollar ; extra == 'all'", "ipykernel ; extra == 'all'", "awkward ; extra == 'all'", "numba (>=0.50) ; (python_version >= \"3.6\") and extra == 'all'", "awkward (>=1.2.0) ; extra == 'awkward'", "awkward (>=1.2.0) ; extra == 'dev'", "pytest (>=4.6) ; extra == 'dev'", "numba (>=0.50) ; (python_version >= \"3.6\") and extra == 'dev'", "nbsphinx ; extra == 'docs'", "myst-parser (>0.13) ; extra == 'docs'", "Sphinx (~=3.0) ; extra == 'docs'", "sphinx-copybutton ; extra == 'docs'", "sphinx-book-theme (~=0.0.42) ; extra == 'docs'", "sphinx-math-dollar ; extra == 'docs'", "ipykernel ; extra == 'docs'", "awkward ; extra == 'docs'", "pytest (>=4.6) ; extra == 'test'", "uncompyle6 ; extra == 'test_extras'", "spark-parser ; extra == 'test_extras'" ], "requires_python": ">=3.6", "summary": "Vector classes and utilities", "version": "0.8.5", "yanked": false, "yanked_reason": null }, "last_serial": 12758152, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "07b120495789401ca7efb28e4adda187", "sha256": "89c152dad73a1399037f12bb80bf2c15e741e1f997b40dea3ecf99e5aea6089d" }, "downloads": -1, "filename": "vector-0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "07b120495789401ca7efb28e4adda187", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 3093, "upload_time": "2019-12-23T14:18:58", "upload_time_iso_8601": "2019-12-23T14:18:58.157369Z", "url": "https://files.pythonhosted.org/packages/98/1e/085f23c20232b2b9821bf221e668a3262c963adca19e7339698105f30f00/vector-0.0.0-py3-none-any.whl", "yanked": true, "yanked_reason": "Placeholder, use >=0.8.0" }, { "comment_text": "", "digests": { "md5": "373e74c28294c2116063a6653936d562", "sha256": "1a1543a9a9fddd122f57ccaae95f568d7d42f7056e91fb44b3b55e15e8ce1c31" }, "downloads": -1, "filename": "vector-0.0.0.tar.gz", "has_sig": false, "md5_digest": "373e74c28294c2116063a6653936d562", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 1657, "upload_time": "2019-12-23T14:18:59", "upload_time_iso_8601": "2019-12-23T14:18:59.268350Z", "url": "https://files.pythonhosted.org/packages/64/fc/b3dd26d6c8eb9f128251182a570be7293fe3f8cfc90a1fa4fe0009862a98/vector-0.0.0.tar.gz", "yanked": true, "yanked_reason": "Placeholder, use >=0.8.0" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "8b29e5e26957796f45c86774852c797d", "sha256": "d239926077e3f6dee08798d6e9264d3cbaa7396ce9a0b14470163933955dbf63" }, "downloads": -1, "filename": "vector-0.8.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8b29e5e26957796f45c86774852c797d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 150718, "upload_time": "2021-04-08T22:27:44", "upload_time_iso_8601": "2021-04-08T22:27:44.913909Z", "url": "https://files.pythonhosted.org/packages/f4/42/604d1ac1b7dd108a794a794aa8d0e5df50df33eca9914537e53ea6bc427d/vector-0.8.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "3e7c9bf6e0afa864559f297cce6918f6", "sha256": "4ccd2b6701f2a43481bb07ed593090eed63ac909da4a20c484de7e57a5e2403e" }, "downloads": -1, "filename": "vector-0.8.0.tar.gz", "has_sig": false, "md5_digest": "3e7c9bf6e0afa864559f297cce6918f6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 165356, "upload_time": "2021-04-08T22:27:46", "upload_time_iso_8601": "2021-04-08T22:27:46.851887Z", "url": "https://files.pythonhosted.org/packages/ba/c1/35837f498d664ce2d7d71967cf3237dbaf20a907882725f368fbbcdd5cb9/vector-0.8.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "41c50ff3b296319f8aac5a5a1ea155e2", "sha256": "587e21e5dfd0fefcb27524b7bf1795a281f767b17adc175d6bd2530eca38c7e1" }, "downloads": -1, "filename": "vector-0.8.1-py3-none-any.whl", "has_sig": false, "md5_digest": "41c50ff3b296319f8aac5a5a1ea155e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 152102, "upload_time": "2021-04-09T19:52:33", "upload_time_iso_8601": "2021-04-09T19:52:33.401359Z", "url": "https://files.pythonhosted.org/packages/a9/14/a7b1ef23785e5cdb5b68b47c69fd3eabbc69cd3c6133319ff5fb25b03012/vector-0.8.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "bbb7dd2d7f391767f3afa2fe0432ad7b", "sha256": "166837eb074d09f2058025871b0ac2ffbf7d433f957a5edd29bffa6b222bfe2f" }, "downloads": -1, "filename": "vector-0.8.1.tar.gz", "has_sig": false, "md5_digest": "bbb7dd2d7f391767f3afa2fe0432ad7b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 173374, "upload_time": "2021-04-09T19:52:35", "upload_time_iso_8601": "2021-04-09T19:52:35.280329Z", "url": "https://files.pythonhosted.org/packages/da/6a/5538abf498625a426480a127421812811a16b1e515aad260bb147147af3f/vector-0.8.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "fa7811e938af4579161b2e41cc49fc7e", "sha256": "c9d993a1d45d339687332992137f12bf67e53b319a986ee474267a42ca8c7cb1" }, "downloads": -1, "filename": "vector-0.8.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fa7811e938af4579161b2e41cc49fc7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 154424, "upload_time": "2021-05-26T18:31:14", "upload_time_iso_8601": "2021-05-26T18:31:14.397587Z", "url": "https://files.pythonhosted.org/packages/50/82/34d3fb37f8db04f46a250fa51f3c9e13bee4b1753778e9c29eb4a549d64c/vector-0.8.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "545e0e833a8dd5bd7123a2b0580830a8", "sha256": "55d926d67997571710cb7f524fa6b7196f765ac27fda124f0be55349deb4d254" }, "downloads": -1, "filename": "vector-0.8.2.tar.gz", "has_sig": false, "md5_digest": "545e0e833a8dd5bd7123a2b0580830a8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 169703, "upload_time": "2021-05-26T18:31:16", "upload_time_iso_8601": "2021-05-26T18:31:16.413729Z", "url": "https://files.pythonhosted.org/packages/e5/14/28ec834e90721b8d99ff4080a53d650d86f0d1597c9cd6e34170746d12f9/vector-0.8.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "53fa5b0bf2f486f88cede39830f7c409", "sha256": "4a309f73bc5a359f424604ff00dbadc3bf751e95997c7f3ec7b58ecab2feac0b" }, "downloads": -1, "filename": "vector-0.8.3-py3-none-any.whl", "has_sig": false, "md5_digest": "53fa5b0bf2f486f88cede39830f7c409", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 154938, "upload_time": "2021-06-11T02:53:13", "upload_time_iso_8601": "2021-06-11T02:53:13.218381Z", "url": "https://files.pythonhosted.org/packages/7b/b0/c978eed281354c43bee075672598f42ac9d8dd1800d3b374d821af6f9227/vector-0.8.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4fc4f943e7773591a04fcb41553e54f0", "sha256": "601b64510d84ddd0f44390e21c93d06bc08df2d88b85203379726b594d4cfa4b" }, "downloads": -1, "filename": "vector-0.8.3.tar.gz", "has_sig": false, "md5_digest": "4fc4f943e7773591a04fcb41553e54f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 170186, "upload_time": "2021-06-11T02:53:15", "upload_time_iso_8601": "2021-06-11T02:53:15.258961Z", "url": "https://files.pythonhosted.org/packages/92/b3/9c6a3bc3b7eb74220aff501673b6e3fe6f2e17414976d8853100832e993d/vector-0.8.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.8.4": [ { "comment_text": "", "digests": { "md5": "8ba2e893a6b6bd60af339fcca4d7261c", "sha256": "4d42865b08202850f58b21126fe8c3c884add75999985f70e7974cbed6f2e966" }, "downloads": -1, "filename": "vector-0.8.4-py3-none-any.whl", "has_sig": false, "md5_digest": "8ba2e893a6b6bd60af339fcca4d7261c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 155093, "upload_time": "2021-07-29T15:11:02", "upload_time_iso_8601": "2021-07-29T15:11:02.436154Z", "url": "https://files.pythonhosted.org/packages/70/f2/058cde3474ff40a866050e71e2fc47fd22e33ceb5cd0ac90b02f8e9e3f2b/vector-0.8.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "0ba69da1d4ee36d1d5c6db479b669567", "sha256": "ef97bfec0263766edbb74c290401f89921f8d11ae9e4a0ffd904ae40674f1239" }, "downloads": -1, "filename": "vector-0.8.4.tar.gz", "has_sig": false, "md5_digest": "0ba69da1d4ee36d1d5c6db479b669567", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 170445, "upload_time": "2021-07-29T15:11:04", "upload_time_iso_8601": "2021-07-29T15:11:04.395152Z", "url": "https://files.pythonhosted.org/packages/db/06/1918bb3014c6537ce36a9af7e7d3957a368216dd06a82bee5cf5ca1acee9/vector-0.8.4.tar.gz", "yanked": false, "yanked_reason": null } ], "0.8.5": [ { "comment_text": "", "digests": { "md5": "7eef5328efb5c88a41672d923f083a7b", "sha256": "fccc2095edc93e2356dde116f37fa239b6268901dd98e35585f74480a31c4b17" }, "downloads": -1, "filename": "vector-0.8.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7eef5328efb5c88a41672d923f083a7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 156840, "upload_time": "2022-02-01T19:37:14", "upload_time_iso_8601": "2022-02-01T19:37:14.223486Z", "url": "https://files.pythonhosted.org/packages/e8/d0/6b0e698190a47c8dea2800c114711b6badceef3d6c4db6c50c57b8e3aa9f/vector-0.8.5-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "2ebd875a472cc9d75992cea2342568f0", "sha256": "2c7c8b228168b89da5d30d50dbd05452348920559ebe0eb94cfdafa15cdc8378" }, "downloads": -1, "filename": "vector-0.8.5.tar.gz", "has_sig": false, "md5_digest": "2ebd875a472cc9d75992cea2342568f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 223432, "upload_time": "2022-02-01T19:37:15", "upload_time_iso_8601": "2022-02-01T19:37:15.805929Z", "url": "https://files.pythonhosted.org/packages/c6/b1/0dc4a62f4ceb3411738dc362e283b5ec0a9b7d996b3a2179f5403df64d07/vector-0.8.5.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7eef5328efb5c88a41672d923f083a7b", "sha256": "fccc2095edc93e2356dde116f37fa239b6268901dd98e35585f74480a31c4b17" }, "downloads": -1, "filename": "vector-0.8.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7eef5328efb5c88a41672d923f083a7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 156840, "upload_time": "2022-02-01T19:37:14", "upload_time_iso_8601": "2022-02-01T19:37:14.223486Z", "url": "https://files.pythonhosted.org/packages/e8/d0/6b0e698190a47c8dea2800c114711b6badceef3d6c4db6c50c57b8e3aa9f/vector-0.8.5-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "2ebd875a472cc9d75992cea2342568f0", "sha256": "2c7c8b228168b89da5d30d50dbd05452348920559ebe0eb94cfdafa15cdc8378" }, "downloads": -1, "filename": "vector-0.8.5.tar.gz", "has_sig": false, "md5_digest": "2ebd875a472cc9d75992cea2342568f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 223432, "upload_time": "2022-02-01T19:37:15", "upload_time_iso_8601": "2022-02-01T19:37:15.805929Z", "url": "https://files.pythonhosted.org/packages/c6/b1/0dc4a62f4ceb3411738dc362e283b5ec0a9b7d996b3a2179f5403df64d07/vector-0.8.5.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }