semvec/pypi-packages huggingface dataset:
hassmpris 0.1.18
Linux desktop multimedia integration with Home Assistant

# Linux desktop multimedia integration with Home Assistant

This package contains the core protocol and functionality that various parts
of the Home Assistant integration with MPRIS need.

To get the rest of the components, check out
[the agent itself](https://github.com/Rudd-O/hassmpris_agent) as well as the
[command-line client](https://github.com/Rudd-O/hassmpris_client).
qsharp_jupyterlab 0.0.7
Q# extension for JupyterLab
Requires Python: >=3.7

# Q# extension for JupyterLab

## Prerequisites

You will need to install `jupyterlab` to build and develop the extension.

```bash
pip install jupyterlab==4.0.0
```

## A note about `yarn`

The `jlpm` command used below is an alias for `yarn` which comes bundled with Jupyter.

This folder is not part of the `npm` workspace that is defined at the root of this repo.
This is intentional, since Jupyter extension tooling depends on `jlpm`, which expects a
`yarn`-style workspace and a `yarn.lock` file.

## Building

To build and install the extension in development mode, from the `jupyterlab` directory run:

```bash
pip install -e .
# The below command creates a symlink from JupyterLab's
# extensions directory to the current source directory.
jupyter labextension develop . --overwrite
```

To start JupyterLab and use the extension, run:

```bash
jupyter lab
```

To rebuild after making source changes, run:

```bash
jlpm build
```

Then refresh the browser.

## Uninstalling

Remove the `pip` package by running:

```bash
pip uninstall qsharp_jupyterlab
```

You will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions` folder is located. Then you can remove the symlink named `qsharp_jupyterlab` within that folder.

## Releasing

The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
asyncpgpromise 0.1.4
pg-promise like wrapper for asyncpg

# AsyncPGPromise

## Motivation

The creation of AsyncPGPromise was primarily driven by an aspiration to bring the clean API and named arguments support, common in Node.js' `pg-promise``, to the Python ecosystem. The lack of such an approach in Python became more pronounced upon transitioning from Node.js, sparking the motivation to develop a solution. With Python's ultra-fast writing mold being a major encouraging factor, this tiny wrapper, AsyncPGPromise, was brought into existence to fill this gap and to provide a sleek and efficient means of handling PostgreSQL database operations.

## Features

- Simplicity: By using named arguments in your SQL queries, you can keep your code clean and readable.
- Flexibility: All the power of the `asyncpg` library is still at your fingertips, with additional convenience provided by AsyncPGPromise.

## Installation

```bash
pip install asyncpgpromise
```

## Getting Started

You can create a new `AsyncPGPromise` instance with an existing `asyncpg` connection object:

```python
from asyncpgpromise import AsyncPGPromise
import asyncpg

# First create an asyncpg connection
conn = await asyncpg.connect(user='user', password='password', database='database', host='127.0.0.1')

# Then pass it to AsyncPGPromise
pg = AsyncPGPromise(conn)
```

## Usage

### Querying

You can perform SQL queries with named arguments:

```python
rows = await pg.query('SELECT * FROM users WHERE name = $name', name='John')
```

The `query` method returns a list of dictionaries, each representing a row from the SQL query.

### Fetching One Row

If you're only expecting a single row result, you can use the `one` method:

```python
row = await pg.one('SELECT * FROM users WHERE id = $id', id=1)
```

## Note

This is a new project and may still have some rough edges. Contributions are very welcome!

## To-Do

- [ ] Parsing of fields with JSON data

## License

AsyncPGPromise is available under the MIT license. See the LICENSE file for more info.