Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
VRPy is a python framework for solving Vehicle Routing Problems (VRP) including:
Check out the docs_ to find more variants and options.
.. _docs : https://vrpy.readthedocs.io/en/latest/
.. code:: python
>>> from networkx import DiGraph
>>> from vrpy import VehicleRoutingProblem
# Define the network
>>> G = DiGraph()
>>> G.add_edge("Source",1,cost=1,time=2)
>>> G.add_edge("Source",2,cost=2,time=1)
>>> G.add_edge(1,"Sink",cost=0,time=2)
>>> G.add_edge(2,"Sink",cost=2,time=3)
>>> G.add_edge(1,2,cost=1,time=1)
>>> G.add_edge(2,1,cost=1,time=1)
# Define the customers demands
>>> G.nodes[1]["demand"] = 5
>>> G.nodes[2]["demand"] = 4
# Define the Vehicle Routing Problem
>>> prob = VehicleRoutingProblem(G, load_capacity=10, duration=5)
# Solve and display solution value
>>> prob.solve()
>>> print(prob.best_value)
3
>>> print(prob.best_routes)
{1: ["Source",2,1,"Sink"]}
.. code:: sh
pip install vrpy
cspy_
NetworkX_
numpy_
PuLP_
.. _cspy : https://pypi.org/project/cspy/ .. _NetworkX : https://pypi.org/project/networkx/ .. _numpy : https://pypi.org/project/numpy/ .. _PuLP : https://pypi.org/project/PuLP/
Documentation is found here_.
.. _here : https://vrpy.readthedocs.io/en/latest/
Unit Tests
.. code:: sh
cd tests
pytest unittests/
Bugs
----
Please report any bugs that you find in the issues_ section. Or, even better, fork the repository on GitHub_ and create a pull request. Any contributions are welcome.
.. _issues : https://github.com/Kuifje02/vrpy/issues
.. _GitHub : https://github.com/Kuifje02/vrpy
FAQs
A python framework for solving vehicle routing problems
We found that vrpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.