semvec/pypi-packages huggingface dataset:
asyncnostic 0.1.0
simple way of using pytest with async unit tests

# asyncnostic
Using pytest to run unit-tests that now need to run async?
This package serves as a catch-all for mixing regular and asynchronous tests.

```py
import unittest
import asyncio
from asyncnostic import asyncnostic

# if your test class has no async components to it at all
# asyncnostic will stay out of your way
@asyncnostic
class TestAThing(unittest.TestCase):

  # the kwarg "loop" as an method argument is optional
  # If you don't want it, leave it out.
  # The event loop will be the same for all tests
  # we keep the same setUp and tearDown naming conventions from unittest
  async def setUp(self, loop):
    self.device = Device()
    await self.device.start(loop)

  # as long as your tests start with convention - starting in "test"
  # asyncnostic will pick them up
  async def test_async_simple(self, loop):
    result = await self.device.property
    assert result

  # we even handle regular tests thrown into the mix
  # you can even ask for the loop if you want
  def test_regular_simple(self, loop):
    assert self.device.loop == loop

```

### How it works under the hood
We find all coroutines that start with "test", as is convention. These tests are then transformed into regular methods, and the asynchronous test is overwritten by the regular test method with the same name. Tests that are not asynchronous are left unchanged. If any of the tests request a loop, the event loop (unique per class) will be passed as a keyword argument.

### Contributing
Feel free to open a PR or and issue if there's any problem with `Asyncnostic`! If you do open a PR, make sure to have run `nox` before review :)
larpix-web 0.1.0rc2
LArPix DAQ Web Interface
Keywords: dune larpix

LArPix Web Interface
====================

Installation instructions
-------------------------

Create a new [virtual
environment](https://larpix-daq.readthedocs.io/en/latest/guide/install.html#virtual-environment)
or use one that already has larpix-daq installed.

Then install the web interface with ``pip install larpix-web``.

All the dependencies including larpix-daq will be installed. If you
want to use a specific version of larpix-daq, pip-install it first with
``pip install larpix-daq==x.y.z`` (specifying the version for
``x.y.z``). This version of larpix-web is compatible with v0.2.x of
larpix-daq.

Launching the web server
------------------------

To launch the web server, simply run:

```
python -m larpixweb.server
```

The server can then be accessed by visiting <http://localhost:5000>.

The server log is saved at the hardcoded location ``larpixweb.log`` in
the directory you start the server process.