
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
This package contains implementation of the library "MPComplex". MPComplex is a data type supporting complex numbers which allow comparison and sorting operations.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
MPComplex is a data type which support complex numbers which allow comparison and sorting operations. This library extends 'mpc' in 'mpmath' library (https://pypi.org/project/mpmath/) by allowing comparisons and sorting.
The operations supported by MPComplex are addition, subtraction, multiplication, division, power, comparisons, and sorting.
Input: MPComplex(4, 2) + MPComplex(5, 3) Output: MPComplex(9, 5)
Input: MPComplex(7, 9) - MPComplex(3, 3) Output: MPComplex(4, 6)
Input: MPComplex(5, 4) * MPComplex(4, 6) Output: MPComplex(-4, 46)
Input: MPComplex(5, 4) / MPComplex(4, 6) Output: MPComplex(0.846153846153846, -0.269230769230769)
Input: MPComplex(5, 4) // MPComplex(4, 6) Output: MPComplex(0, 0)
Input: MPComplex(4, 2) ** 5 Output: MPComplex(-1216, 1312)
MPComplex objects are compared to each other in the following order:
For example, to check whether MPComplex object a is greater than MPComplex object b or not, the program does the following steps:
The similar process applies to the operations 'less than', 'less than or equal to', and 'greater than or equal to' as well.
For checking equality of two complex numbers, equality applies if the real and imaginary parts of both numbers are equal.
Input: MPComplex(5, 4) > MPComplex(4, 6) Output: True
Input: MPComplex(5, 4) >= MPComplex(4, 6) Output: True
Input: MPComplex(5, 4) < MPComplex(4, 6) Output: False
Input: MPComplex(5, 4) <= MPComplex(4, 6) Output: False
Input: MPComplex(4, 2) == MPComplex(4, 1) Output: False
Input: MPComplex(4, 2) != MPComplex(4, 1) Output: True
If a list of MPComplex objects is called with sort() method, the list will be sorted in ascending order.
Input: [MPComplex(4, 2), MPComplex(4, 1), MPComplex(5, 3), MPComplex(2, 7)].sort() Output: [MPComplex(2, 7), MPComplex(4, 1), MPComplex(4, 2), MPComplex(5, 3)]
FAQs
This package contains implementation of the library "MPComplex". MPComplex is a data type supporting complex numbers which allow comparison and sorting operations.
We found that MPComplex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.