semvec/pypi-packages huggingface dataset:
ehr-utils-utils 0.2.0
Utilities for building and maintaining EHR utilities.
Requires Python: >=3.9

# Utilities for developing EHR utilities

Even utilities need utilities!

## Functions

* `fake_files` - provides test doubles for tsv files
* `fake_tables` - provides test doubles for SQLite tables

## Installation

```bash
pip install ehr-utils-utils
```

## Usage

### `fake_files`
The `fake_files` context manager takes tables (`list[list[str]]`), produces temporary tsv files from them, and yields the filenames. The temporary files will be deleted when the context is exited. 

Example usage:
```python
from ehr_utils_utils import fake_files

def test_my_parse_fcn():
    table = [["a", "b"], ["1", "2"]]
    with fake_files(table) as filenames:
        my_parse_fcn(filenames[0])
        ...
```

### `fake_tables`
The `fake_tables` context manager takes a dictionary mapping table names to their contents (`dict[str, list[list[Any]]]`), produces an in-memory SQLite database, and yields the connection. When the context is exited, connection will be closed, and the memory will be recycled. 

Example usage:
```python
from ehr_utils_utils import fake_tables

def test_my_sql_query():
    test_table = [["a", "b"], ["1", "2"], ["3", "4"]]
    with fake_tables({"my_table": test_table}) as connection:
        result = connection.execute("SELECT a FROM my_table WHERE b = '2'").fetchone()
        assert result == ("1",)
```

Alternatively, you can also use dynamic keyword arguments to specify the table name(s):
```python
from ehr_utils_utils import fake_tables

def test_my_sql_query():
    test_table = [["a", "b"], ["1", "2"], ["3", "4"]]
    with fake_tables(my_table=test_table) as connection:
        result = connection.execute("SELECT a FROM my_table WHERE b = '2'").fetchone()
        assert result == ("1",)
```

## Development

We welcome contributions! Before opening a pull request, please confirm that existing regression tests pass:

```python
python -m pytest tests/
```

## Deployment
azure-mgmt-agricultureplatform 1.0.0b1
Microsoft Azure Agricultureplatform Management Client Library for Python
Requires Python: >=3.9
Keywords: azure, azure sdk

# Microsoft Azure SDK for Python

This is the Microsoft Azure Agricultureplatform Management Client Library.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

## Getting started

### Prerequisites

- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

```bash
pip install azure-mgmt-agricultureplatform
pip install azure-identity
```

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.agricultureplatform import AgriculturePlatformMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AgriculturePlatformMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [Search Agricultureplatform Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project. 

# Release History

## 1.0.0b1 (2026-02-05)

### Other Changes

  - Initial version