semvec/pypi-packages huggingface dataset:
miscutils 1.4.0
Miscellaneous utilities for general use
License: MIT
Requires Python: >=3.6,<4.0
Keywords: iterating,head,tail,listing,router,proxy,prompt,shell

# miscutils

These are miscellaneous python utilities for general use. This package includes following submodules:

* **dbg** - Debugging utilities.
* **func** - Utilities related to functions.
* **insp** - Utilities for inspecting the code.
* **io** - Interacting with input/output of python script.
* **iter** - Interacting with iterators and collections.
* **os** - Operating system related utilities.
* **str** - Handling strings.
* **tools** - Not the code, but utilities for programmers.
* **user** - User data processing.

## Developing

Start from preparing venv:

```sh
python3.7 -m poetry install
```

## Building Docs

Update `.rst` manually. Then:

```sh
python3.7 -m poetry run make -C docs html
```

## Testing

```sh
python3.8 -m poetry run pytest tests
```

## Releasing

Update version in `pyproject.toml`. Then:

```sh
python3.7 -m poetry build
git tag X.Y.Z
git push
git push --tags
python3.7 -m poetry publish
```

log into readthedocs.io and trigger a Build

## References

[Documentation](http://pymiscutils.readthedocs.io/)

[Source code](https://github.com/gergelyk/pymiscutils/)

[Package](https://pypi.python.org/pypi/miscutils/)
simpy-agents 1.0.0
An extension of SimPy for working with distinct agents.
License: MIT


simpy-agents
============

simpy-agents extends `SimPy <https://simpy.readthedocs.io/en/latest/>`_ by
adding the 'agent' field to events, allowing the user to track which agent is
associated with each event.

.. code-block:: python

   # Create an environment and schedule a Timeout
   env = Environment()
   env.timeout(10, agent='Test Agent')

   # The 'agent' field is passed to the event and stored in the queue
   env._queue
   >>> [(10, 1, 0, <Timeout(10) object at 0x10f913bd0>, 'Test Agent')]

   # The Environment class now has a 'scheduled_agents' property
   env.scheduled_agents
   >>> ['Test Agent']

Installation
------------

simpy-agents is installable via pip: ``pip install simpy-agents``.

All new functionality is optional and the original SimPy API is maintained. It
is recommended to remove any other installations SimPy from the environment to
ensure the intended version is imported.