semvec/pypi-packages huggingface dataset:
mitol-django-oauth-toolkit-extensions 2025.3.17
MIT Open Learning django app extensions for oauth toolkit
Requires Python: >=3.10

mitol-django-oauth-toolkit-extensions
---

This is the Open Learning's extensions to `django-oauth-toolkit`.

### Getting started

`pip install mitol-django-oauth-toolkit-extensions`


### Configuration


Add the following to `settings.py`:

```python
INSTALLED_APPS = [
    ...
    "mitol.oauth_toolkit_extensions.apps.OAuthToolkitExtensionsApp",
]

# required for migrations
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'

OAUTH2_PROVIDER = {
    ...
    # enable the custom scopes backends
    "SCOPES_BACKEND_CLASS": "mitol.oauth_toolkit_extensions.backends.ApplicationAccessOrSettingsScopes",
}
```


### Usage

After installing this app, a modified `Application` django-admin interface (/admin/oauth2_provider/application/) is available that allows you to optionally create an `ApplicationAccess` record. If you create this record, it will limit scope authorization to the scopes specified in that record. Otherwise the allowed scopes will be derived from settings.
hawcsimulator 2025.3.0
HAWCsat simulator package
Requires Python: >=3.11

# HAWCsat Simulator Package

[![Documentation Status](https://readthedocs.org/projects/hawc-simulator/badge/?version=latest)](https://usask_arg_example.readthedocs.io/en/latest/?badge=latest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/usask-arg/hawc-simulator/main.svg)](https://results.pre-commit.ci/latest/github/usask-arg/usask_arg_example/main)

## Installation
The package can be installed through

`pip install hawcsimulator`

## Usage
Documentation can be found at  https://hawc-simulator.readthedocs.io/

## License
This project is licensed under the MIT license
xaosim 1.0.11
Extreme AO simulation
Requires Python: >=3.9

# XAOSIM: a XAO-like system simulation and interaction environment

**XAOSIM** is a simulation package developed for theoretical and practical work in high angular resolution astronomy.

## Why yet another XAO simulation environment?

The specificity of **XAOSIM** is that it was built around shared memory data structures defined in the context of the SCExAO instrument by Olivier Guyon and Frantz Martinache. This approach makes it possible to design real-time AO control software using XAOSIM's simulation environment data and deploy it on an actual instrument (assuming that it uses the same exchange format) in a transparent manner.

## Acknowledgement

The development and maintenance of **XAOSIM** has been supported by the KERNEL project funded by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement CoG - 683029).

## Installation

> pip install xaosim

## The package includes:

- a deformable mirror (DM) module that includes a multi-channel communication system, assumed to be located in a pupil plane. The DM class simulates a continuous membrane mirror with actuators laid out on a regualar grid.
- an atmospheric phase screen (Phscreen) module that simulates a Kolmogorov + Von Karman frozen screen drifting over the aperture in a predefined direction.
- a camera (Cam) module that produces images of a point source affected after the wavefront has undergone the transformation induced by the DM. One special case of camera is the Shack-Hartman camera (SHcam) used for wavefront sensing.  Another special case is the coronagraphic camera (CoroCam) that can be used to simulate a wide range of coronagraphs (no PIAA-like coronagraphs though).

The code is reasonably well documented and if you are experienced with diffractive optics simulations, you should quickly feel at home, and change the parameters of the turbulence, simulate partial AO correction and even use a perfect coronagraph.