semvec/pypi-packages huggingface dataset:
temp-path 0.1.1
A tool to temporarily add folders to the path.
Requires Python: >=3.5,<4.0

# temp_path

This is a package to allow you to add a folder to the path temporarily.

Often when you deal with other people's code, it's not set up to be importable /
packaged. This tool allows you to import from those files anyways, without
having to permanently modify your path.

Simply run:

```python
from temp_path import temp_path
with temp_path('../someone/elses/code'):
    import their.messy.code

their.messy.code.use()
```

Of course, this is not just for importing python modules but also for other
stuff you might need on your path.
margingame 0.3.4
A package for the margin game.

`pip install margingame`

This package is mainly for just one class, `Initialise(...)`. 
You can:
<ul>
<li> Pass in non-default parameters for a custom game. </li>
<li> Get attributes, notably payoff matrices as Pandas dataframes. </li>
<li> Use the method to calculate the Nash equilibria. </li>
</ul>

See the code, notably Initialise.py, for more info.


<h1> Main Uses </h1>
<h2> Interactive payoff matrices for both players </h2>
<ol>
  <li> In a .ipynb file, run the code `from margingame.notebook.visualise import visualise`. </li>
  <li> Install any missing packages flagged by an error if there are any (this is due to a bug). </li>
  <li> Run `visualise()`. </li>
</ol>
<h3> Notes </h3>
<ul>
  <li> You can click the left margin of the output cell to expand/truncate it. </li>
  <li> Changing the domains of the payoff matrices is achieved by passing the relevant arguments into `visualise`. </li>
  <li> It's slow, I know. </li>
</ul>

<h2> Calculate the nash equlibria </h2>
<ol>
  <li> Run the code `from margingame.Initialise import Initialise'. </li>
  <li> Create your game with `Game = Initialise(...)', specifying any non-default parameters desired. </li>
  <li> Calculate the nash equlibria via support enumeration via `Game.calculate_equilibria_support_enum()`. </li>
</ol>