semvec/pypi-packages huggingface dataset:
round2 0.0.4
Round half away from zero.
Requires Python: >=3.6

# Round half away from zero. 

```
pip install round2
```

Since python's default round function uses 'bankers rounding', I made this small module that uses 'commercial rounding' instead. This means half is rounded up for positive numbers and down for negative numbers:

```python
>>> from round2 import round2
>>> round2(1.5)
2
>>> round2(2.5)
3
>>> round2(-1.5)
-2
>>> round2(-2.5)
-3
>>> round2(2.5, decimals=1)
2.5
```

If decimals=0 (default), returns an int, otherwise a float, just like Python’s round function.

Implemented in Cython with type hinting in Python.
qtile-profiles 0.1.2
A profile manger for qtile

# qtile-profiles
Im using my laptop for work and private stuff and wanted to use some kind of profiles.

## Installation
You can install the package using pip
```bash
pip install qtile-profiles
```
## Usage
```python
from qtile_profiles import Profile, ProfileManager

def set_browser(browser: str):
    subprocess.run(
            f"xdg-mime default {browser} x-scheme-handler/http",
            shell=True,
        )
    subprocess.run(
            f"xdg-mime default {browser} x-scheme-handler/https",
            shell=True,
        )


work = Profile(
        programs={ # define some aliases for shorter commands later
            "firefox": "firefox",
            "thunderbird": "flatpak run org.mozilla.Thunderbird", # see 6 lines down
            "teams": "chromium --app=https://teams.office.com",
            },
        init=[ # spawn these program when calling initialize
            ("web", ["firefox"]),
            ("chat", ["mattermost-desktop", "teams"]),
            ("mail", ["tunderbird"]), # here we can use thunderbird insead of calling flatpak
            ("kp", ["keepassxc"]),
            ],
        on_load=lambda qtile: set_browser("firefox.desktop") # callback, call when profile is selected
        )
privat = Profile(
        programs={
            "firefox": "firefox -P privat",
            "thunderbird": "thunderbird",
            "discord": "discord",
            },
        init=[
            ("web", ["firefox"]),
            ("chat", ["signal-desktop", "discord"]),
            ("mail", ["thunderbird"]),
            ("kp", ["keepassxc"]),
            ],
        on_load=lambda qtile: set_browser("firefox-privat.desktop")
        )

profiles = ProfileManager([work, privat])

keys.extend([
    Key([super], "p", lazy.function(profiles.next_profile)),
    Key([super], "f", lazy.function(profiles.spawn, "firefox")),
    Key([super], "i", lazy.function(profiles.current_profile.spawn_init)),
    ])
```
jupytray 0.8
Run the Jupyter notebook server as a little app in the system tray

<h1>
<img src="https://raw.githubusercontent.com/tfiers/jupytray/main/src/jupytray/static/jupyter.ico" width=32>
Jupytray
</h1>

Run the Jupyter notebook server as a little app in the system tray. 

That way you don't have to keep a separate command window open just for the server.

<img src="https://img.icons8.com/windows/32/000000/windows-10.png"/> This app is made for Windows.

(It should be portable to Mac/Linux, as the GUI uses the cross-platform 'Qt' framework.
Pull requests for such a port are welcome).


## Installation

Make sure PyQt5 is installed:
```
conda install pyqt
```

Then run:
```
pip install jupytray
```
This will get you the
[![latest version on PyPI](https://img.shields.io/pypi/v/jupytray.svg?label=latest%20version%20on%20PyPI:)](https://pypi.org/project/jupytray/)

Finally, run
```
jupytray-shortcuts install
```
This will add shortcuts to the Windows Start menu and Startup folder.



## Usage

Open the Start menu, type `Jupytray`, and hit enter.

This should start the tray app and the Jupyter notebook server.

The app will also auto-run at system restarts. (This can be disabled in the settings menu).


## Deinstallation

First remove the Windows shortcuts:
```
jupytray-shortcuts uninstall
```
Then remove the Python package:
```
pip uninstall jupytray
```