semvec/pypi-packages huggingface dataset:
corpus-clavicle 0.1.1
Total proteomics differential analysis models and auxilaries for Corpus
Requires Python: >=3.9,<4.0

## corpus-clavicle

This is a python package used to provide models and auxilaries for the corpus package for dealing with total proteomics data

## Installation

```bash
pip install django-postgres-extra corpus-clavicle psycopg2 
```

## Usage

```python
import os
INSTALLED_APPS = [
    #...
    'django.contrib.postgres',  # Required for 'psqlextra
    'psqlextra',
    'clavicle',
    #...
]

DATABASE_ROUTERS = ['clavicle.dbrouter.ClavicleRouter']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'db.sqlite3',
    },
    'clavicle': {
        'ENGINE': 'psqlextra.backend',
        'NAME': os.environ.get('POSTGRES_NAME', 'clavicle'),
        'USER': os.environ.get('POSTGRES_USER', 'admin'),
        'PASSWORD': os.environ.get('POSTGRES_PASSWORD', "testpostgrest"),
        'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
        'PORT': int(os.environ.get('POSTGRES_PORT', '5432')),
    }
}
```

```bash
python manage.py migrate --database=clavicle
```
oidcish 1.0.3
Obtain authentication tokens from OIDC providers.
Requires Python: >=3.10,<4.0

# oidcish

- "Oh I Don't Care If Something Happens"
- "OIDC Is Definitely Cool If Someone Helps"

## What?

Library to connect to your OIDC provider via:

- Authentication code flow
- Device code flow
- Client credentials flow

## Usage

```python
>>> from oidcish import DeviceFlow, CodeFlow, CredentialsFlow
>>> auth = DeviceFlow(
...     host="https://idp.example.com",
...     client_id=...,
...     client_secret=...,
...     scope=...,
...     audience=...
...)
Visit https://idp.example.com/device?userCode=594658190 to complete sign-in.
# Or use env file for auth
# auth = DeviceFlow(_env_file="path/to/my/env.file")
# Or use authorization code flow
# auth = CodeFlow(_env_file="path/to/my/env.file")
# Or use client credentials flow
# auth = CredentialsFlow(_env_file="path/to/my/env.file")
>>> print(auth.credentials.access_token)
eyJhbGciOiJSU...
```

## Options

Device flow can be used with the following options:

| Option | Environment variable | Default | Description |
|-|-|-|-|
| host | OIDCISH_HOST | *No default* | The address to the IDP server. |
| client_id | OIDCISH_CLIENT_ID | *No default* | The client id. |
| client_secret | OIDCISH_CLIENT_SECRET | *No default* | The client secret. |
| scope | OIDCISH_SCOPE | openid profile offline_access | A space separated, case-sensitive list of scopes. |
| audience | OIDCISH_AUDIENCE | *No default* | The access claim was designated for this audience. |

The OIDCISH_ prefix can be set with the OIDCISH_ENV_PREFIX environment variable.

Code flow can be used with the following options:

| Option | Environment variable | Default | Description |
|-|-|-|-|
| host | OIDCISH_HOST | *No default* | The address to the IDP server. |
| client_id | OIDCISH_CLIENT_ID | *No default* | The client id. |
| client_secret | OIDCISH_CLIENT_SECRET | *No default* | The client secret. |
| redirect_uri | OIDCISH_REDIRECT_URI | http://localhost | Must exactly match one of the allowed redirect URIs for the client. |
| username | OIDCISH_USERNAME | *No default* | The user name. |
| password | OIDCISH_PASSWORD | *No default* | The user password. |
| scope | OIDCISH_SCOPE | openid profile offline_access | A space separated, case-sensitive list of scopes. |
| audience | OIDCISH_AUDIENCE | *No default* | The access claim was designated for this audience. |

The OIDCISH_ prefix can be set with the OIDCISH_ENV_PREFIX environment variable.

Client credentials flow can be used with the following options:

| Option | Environment variable | Default | Description |
|-|-|-|-|
| host | OIDCISH_HOST | *No default* | The address to the IDP server. |
| client_id | OIDCISH_CLIENT_ID | *No default* | The client id. |
| client_secret | OIDCISH_CLIENT_SECRET | *No default* | The client secret. |
| audience | OIDCISH_AUDIENCE | *No default* | The access claim was designated for this audience. |

The OIDCISH_ prefix can be set with the OIDCISH_ENV_PREFIX environment variable.
ufo-draw 0.0.4
Draw Feynman diagrams from UFO models
Requires Python: >=3.8,<4.0

# ufo_draw

Allows you to quickly draw feynman diagrams from ufo model files.

## Installation

```bash
pip install ufo_draw # Install it
```
with optional `--user` or `--break-system-packages`. 
However due to the amount of dependencies it might be better to install it using pipx to have dependencies in isolated versions

```bash
pipx install ufo_draw
```

## Example

```
ufo_draw --initial "nu_e nu_e_bar" --final "nu_e nu_e_bar" -o diagram -m ufo_sm
```
creates following diagrams via [pyfeyn2](https://github.com/APN-Pucky/pyfeyn2) from the [ufo_sm](https://github.com/APN-Pucky/ufo_sm) model using [pyqgraf](https://github.com/APN-Pucky/pyqgraf).

![diag0](./img/diagram_0.png)
![diag1](./img/diagram_1.png)
ldtkpy 1.4.1
Load and parse LDtk files, with full types definitions.

# LDtk Python 

Load and parse LDtk files, with full types definitions. 

Automatically generated from Json Schema using QuickType.

See https://ldtk.io/api/

can be used like that:


```python 
import json
from ldtkpy.api import ldtk_json_from_dict

result = ldtk_json_from_dict(json.loads(json_string))
```