semvec/pypi-packages huggingface dataset:
nameko-cachelib 0.1.1
An easy-to-use nameko cache
Requires Python: >=3.10,<4.0

# nameko-cache

An easy-to-use nameko cache

Some code references from repo [nameko-cachetools](https://github.com/santiycr/nameko-cachetools)

# Install
```shell
pip install nameko-cachelib
```

# Example
```python

    class Service:
        name = "service"

        cached_service = CacheRpcProxy("service")

        @rpc
        def cached(self, *args, **kwargs):
            return self.cached_service.some_method(*args, **kwargs)

```

# TODO list
## memory cache

## single flight

## redis cache
JefvdA-python-clitools 0.0.3
A python package which adds simple cli tools to your python project.
Requires Python: >=3.6

# Python clitools
This package removes annoying boilerplate code that you will see you write yourself over and over again to create a pleasant cli-centered user interface.

* [Installation](#installation)
* [Tools](#tools)
* [Menu](#menu)

# Installation
For more information, check out the [PyPi page](https://pypi.org/project/JefvdA-python-clitools/)

to install the newest version, use:
```
pip install JefvdA-python-clitools
```

# Tools
The tools are methods that are used most-often. <br>
These include:
* **clear()** -> OS independant method to clear the terminal
* **wait_for_enter()** -> method to wair for user input before continuing, clears the screen after
* **get_user_input()** -> method to returns user input. This method formats the text printed for the input to add " >>> " after it. Example: "What is your name?", becomes, "What is your name? >>> "

# Menu
A "Menu" class that makes it very easy to display a menu in the terminal, and have different results for all the options the user can choose from.

When initiating a new "Menu" object, make sure to pass it all the options, aswell as their corresponding fucntions. <br>
Example:
```python
menu_options = {
    "Hello world": say_hello_world,
    "Greet by name": ask_for_name,
    "Get random number": get_random_number,
    "Exit": exit
}
menu = Menu(menu_options)
```

When a "Menu" option is created, it can be displayed with the "show()" method.
```python
menu.show()
```
*This will only run the menu once, if you wish to keep displaying the menu. Wrap the "show" in a while loop + add an option to exit the program*
rsrfile 0.9.6
Read RiskSpectrum PSA results bin-files
Requires Python: >=3.8, <4

# rsrfile
Python module for read RSR files (RiskSpectrum PSA result files)

[![image](https://img.shields.io/pypi/v/rsrfile.svg)](https://pypi.python.org/pypi/rsrfile/)

## Features
* Read minimal cut sets;
* Read of importance measurements table of basic events, CCF groups, attributes, systems, components and events groups;
* Read CDF and PDF value table;
* Read common calculation info. Such as calculation time, number of MCS, cutoff threshold, etc.

## Installation
```sh
# PyPI
pip install rsrfile
```

## Usage
The code below displays common information on the calculation and a table of importance measurementscfor attributes:
```python
import rsrfile
import pandas as pd

with rsrfile.open('<path to RSR file>', '<open mode> "r" or "w"') as f:
    print(f.MCSSummary)
    attr = pd.DataFrame(
        f.AttrImpTable[1:],
        columns=f.AttrImpTable[0])
    print(attr)
```

## Documentation
### Summary results

``` python
rsrfile.RSRFile.mcs_summary
```
### MCS
### Mod. MCS
### Risk Importance Measures
* Basic Event
* CCF Group
* Parameter
* Attribute
* Component
* System
* Event Group
### Other stats