Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Contains various useful tools in simulating discrete system events based on outcome and probabilities
.. -- restructuredtext --
in Eventsim 0.6
in Eventsim 0.5.9
in Eventsim 0.5.8
in Eventsim 0.5.7
Formerly 3 decimal places
)in Eventsim 0.5.6
.. note:: please if you had a previous version of eventsim, it is advisable to uninstall it first in case of errors. Use:
.. code::
pip uninstall eventsim
eventsim makes discrete event easy to simulate
Currently, it consists of three modules: discrete, randgen and simevent
Contains a class Calculate that takes two lists as arguments and an optional integer value (steps) for simplifying and calculating:
as well as two other methods trimval that takes in one argument, (numbers or lists and strips it of leading zeros and round up to 4 decimal places
and trimlist that takes in as many arguments as possibe and does the same thing trimval does but very useful if there is a nested list in the list of arguments.
They both help to display lists and numbers in a better and easier way to read rather than have values with many leading decimal numbers in a list keeping it concise.
contains a class Generate that takes integer numbers as arguments (from no argument to 5 arguments) with optional arguments being "r" or "s". r for reverse sorted and s for ascending order sort. It is used to generate:
contains classes for generating and estimating events that happens in a workplace scenario. Simulating events like:
This module currently contains three classes, Randomsim, Simulate, Simtable
Randomsim which generates random values to populate the inter-arrival and service time ad then calculates the rest of the values (accepts 0 - 3 arguments)
Simulate, a more flexible class that allows you to input your own inter-arrival time and service time as a list (takes 1-2 arguments [inter-arrival, service] time)
Simtable contains one method, drawtable() for generating a tabled format of all the data using tkinter frames.make life easier by importing all classes from simevent
.. code::
e.g. from eventsim.simevent import *
or risk having to import at least three different modules by youself.Using drawtable is really simple, you only need to pass in the instance of your simulation class as first argument and Tk() as second argument and your table will be generated for you
.. code::
e.g. a = Randomsim(4,6,9)
Simtable(a, Tk()).drawtable()
help on using this package is included in the examples. If you have an old version of eventsim, you are adviced to delete/uninstall the old one if the update isn't working well
For more help information please see examples in the package or checkout its documentation <http://www.pythonhosted.org/eventsim>
_ at http://www.pythonhosted.org/eventsim/
Download and install using:
.. code::
pip install eventsim
I was inspired to write this package after my university coursework demanded using python to simulate events. I hope Modelling and Simulation students find it useful
All glory belongs to God for helping me in completing my first module.
If further information or help is needed, feel free to contact me on my email at taiwo.kareem36@gmail.com This is still in a test mode please if any errror or bugs is found, feel free to contact the developer and give details
FAQs
Contains various useful tools in simulating discrete system events based on outcome and probabilities
We found that eventsim 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.