semvec/pypi-packages huggingface dataset:
hemlock-ax 0.0.1
A hemock extension for adaptive experimentation.
Requires Python: >=3.8

# Hemlock Ax

[![pipeline status](https://gitlab.com/dsbowen/hemlock-ax/badges/master/pipeline.svg)](https://gitlab.com/dsbowen/hemlock-ax/-/commits/master)
[![coverage report](https://gitlab.com/dsbowen/hemlock-ax/badges/master/coverage.svg)](https://gitlab.com/dsbowen/hemlock-ax/-/commits/master)
[![PyPI version](https://badge.fury.io/py/hemlock-ax.svg)](https://badge.fury.io/py/hemlock-ax)
[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://gitlab.com/dsbowen/hemlock-ax/-/blob/master/LICENSE)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gl/dsbowen%2Fhemlock-ax/HEAD?urlpath=lab/tree/examples)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A hemock extension for adaptive experimentation. [Read the docs](https://dsbowen.gitlab.io/hemlock-ax).
github-app-access-token-fetcher 1.0.1
Utility script to produce a github app access token.
Requires Python: >=3.8,<4.0

# GitHub App Access Token Fetcher

Utility to get access tokens for a GitHub App. 

## Prerequisites
* The GitHub App must be created **and installed**.
* A private key must be generated (from the GitHub App settings UI) and its content should be written as binary data to
  an AWS Secretsmanager secret.


To set up the private key, do something like this (assuming the secret is created already):
```python
import boto3
secret_arn = "arn:aws:secretsmanager:us-east-1:1234:secret:my-secret-name"
pem_file = "/path/to/private_key.pem"
client = boto3.client('secretsmanager', region_name=secret_arn.split(':')[3])
with open(pem_file, 'rb') as f:
    client.put_secret_value(SecretId=secret_arn, SecretBinary=f.read())
```


## Install

```bash
pip install github-app-access-token-fetcher
```


## Usage

```
get-github-app-token --help

usage: get-github-app-token [-h] --app-id APP_ID --private-key-secret-arn PRIVATE_KEY_SECRET_ARN

Get a GitHub App token

optional arguments:
  -h, --help            show this help message and exit
  --app-id APP_ID       GitHub App ID
  --private-key-secret-arn PRIVATE_KEY_SECRET_ARN
                        ARN of the secret containing the GitHub App private key
```

Example:

```bash
export AWS_PROFILE=...  # Something with access to the private key secret.
get-github-app-token \
    --app-id 1234 \
    --private-key-secret-arn arn:aws:secretsmanager:us-west-1:4321:secret:abc-1234
```
DB12 1.0.4
DIRAC Benchmark 2012
Requires Python: >=2.7

# DB12

DIRAC benchmark 2012 is a really quick benchmark, originally developed by Ricardo Graciani (https://github.com/graciani)
that uses wrapper functions by Andrew McNab (https://github.com/Andrew-McNab-UK) to run multiple copies in parallel.
Imane Iraoui (https://github.com/ImanIra0ui/) ported it to py3 and added many tests.
The current maintainers are Federico Stagni (https://github.com/fstagni) and Alexandre Boyer (https://github.com/aldbr).

It is distributed from https://github.com/DIRACGrid/DB12.

# Install

To install the DB12 package, run:

```bash
pip install DB12
```

# Use
## From the Command line interface

You can execute a single DB12 benchmark with the following command:

```bash
db12 single
```

To get further information, read the help:

```bash
db12 --help
```

## From your code

After installation, the package can be imported by typing:

```python
from db12 import single_dirac_benchmark
single_dirac_benchmark()
```

# Contribute
## Development

DB12 is a fully open source project, and you are welcome to contribute to it:
- Fork the project
- Develop
- Create a Pull Request to propose a change

## Code quality

To ensure the code meets DB12's coding conventions we recommend installing pre-commit system wide using your operating system's package manager.
Alteratively, pre-commit is included in the Python3 development environment, see the development guide for details on how to create one.
Once pre-commit is installed you can enable it by running:

```bash
pre-commit install --allow-missing-config
```

Code formatting will now be automatically applied before each commit.

## Score analysis

DB12 has been ported to Python3 in October 2021, this created discrepancies in the scores.
You might need to run an analysis of the DB12 scores to mitigate these discrepancies.

Further details: [here](https://zenodo.org/record/5647834)