semvec/pypi-packages huggingface dataset:
asoct-mcd 0.2.1
Minuscule Cell Detection in AS-OCT Medical Images
License: MIT
Requires Python: >=3.9
Keywords: medical-imaging, cell-detection, optical-coherence-tomography, computer-vision, deep-learning

# ASOCT-MCD: Minuscule Cell Detection in AS-OCT Images

A Python package for detecting minuscule cells in Anterior Segment Optical Coherence Tomography (AS-OCT) medical images.

## Installation

```bash
pip install asoct-mcd
```

## Basic Usage

```python
from asoct_mcd.pipeline import MCDPipelineBuilder

# Create pipeline with default settings
pipeline = MCDPipelineBuilder().build()

# Detect cells in image
result = pipeline.detect_cells("image.png")

# Print results
print(f"Detected {result.cell_count} cells")
print(f"Cell locations: {result.cell_locations}")
```

## Custom Configuration

```python
# Using dictionary configuration
config = {
    "threshold": {"lambda_factor": 0.9, "method": "isodata"},
}

pipeline = MCDPipelineBuilder().from_dict(config).build()
result = pipeline.detect_cells("image.png")
```

```python
# Using YAML configuration
pipeline = MCDPipelineBuilder().from_yaml("your_config.yaml").build()
result = pipeline.detect_cells("image.png")
```


## Model Storage and Management
Default Model Storage Locations
The ASOCT-MCD package automatically downloads and manages pre-trained models. Models are cached locally following standard ML library conventions:
Default Cache Directories
Linux/macOS:
```
~/.cache/asoct_mcd/models/
├── sam_vit_b_01ec64.pth              # SAM ViT-B segmentation model (~375MB)
└── spatial_attention_network.pth     # Cell classification model (~1MB)
```
Windows:
```
C:\Users\<username>\.cache\asoct_mcd\models\
├── sam_vit_b_01ec64.pth              # SAM ViT-B segmentation model (~375MB)
└── spatial_attention_network.pth     # Cell classification model (~1MB)
```

## Requirements
- Python >= 3.9
- See requirements.txt for full list

## Citation

arXiv: https://arxiv.org/abs/2503.12249

To cite MCD in publications, please use:

```bibtex
@article{chen2025minuscule,
      title={Minuscule Cell Detection in AS-OCT Images with Progressive Field-of-View Focusing}, 
      author={Boyu Chen, Ameenat L. Solebo, Daqian Shi, Jinge Wu, Paul Taylor},
      year={2025},
      journal={arXiv preprint arXiv:2503.12249}
}

```
## Acknowledgements
Thanks to the support of AWS Doctoral Scholarship in Digital Innovation, awarded through the UCL Centre for Digital Innovation. We thank them for their generous support.
![](readme_images/AWS.png)
![](readme_images/CDI.png)
sentry-forked-djangorestframework-stubs 3.16.3.post1
PEP-484 stubs for django-rest-framework
License: MIT
Requires Python: >=3.10

sentry-forked-djangorestframework-stubs
=======================================

### new release

make a new branch for the fork of an upstream tag:

```bash
git remote add upstream git@github.com:typeddjango/djangorestframework-stubs
git fetch upstream --tags
git push origin --tags
git checkout 1.2.3 -b sentry-1.2.3
```

- cherry-pick the craft / release commit(s) into your branch from `master`
- cherry-pick relevant commit(s) from previous releases

releases are done through craft in the release.yml workflow -- make sure to
target your particular branch with a `-#` release postfix (like `1.2.3-1`)

___

<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/>

# pep484 stubs for Django REST framework

[![test](https://github.com/typeddjango/djangorestframework-stubs/actions/workflows/test.yml/badge.svg?branch=master&event=push)](https://github.com/typeddjango/djangorestframework-stubs/actions/workflows/test.yml)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Gitter](https://badges.gitter.im/mypy-django/Lobby.svg)](https://gitter.im/mypy-django/Lobby)
[![StackOverflow](https://shields.io/badge/ask-stackoverflow-orange?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/django-stubs?tab=Active)


Mypy stubs for [Django REST Framework](https://pypi.org/project/djangorestframework/).
Supports Python 3.10 and up.

## Installation

```bash
pip install djangorestframework-stubs[compatible-mypy]
```

To make mypy aware of the plugin, you need to add

```ini
[mypy]
plugins =
    mypy_drf_plugin.main
```

in your `mypy.ini` file.

## FAQ

### Model instance is inferred as `Any` instead of my `Model` class

When subclassing `ModelSerializer`, add a [type argument](https://peps.python.org/pep-0484/#generics) to type-hint the related model class, for example:

```python
class MyModelSerializer(serializers.ModelSerializer[MyModel]):
    class Meta:
        model = MyModel
        fields = ("id", "example")
```

Which means that methods where the model is being passed around will know the actual type of the model instead of being `Any`. The `instance` attribute on the above serializer will be `MyModel | typing.Sequence[MyModel] | None`.

## To get help

We have Gitter here: <https://gitter.im/mypy-django/Lobby>
If you think you have more generic typing issue, please refer to <https://github.com/python/mypy> and their Gitter.

## Contributing

This project is open source and community driven. As such we encourage contributions big and small. You can contribute by doing any of the following:

1. Contribute code (e.g. improve stubs, add plugin capabilities, write tests etc) - to do so please follow the [contribution guide](./CONTRIBUTING.md).
2. Assist in code reviews and discussions in issues.
3. Identify bugs and issues and report these

You can always also reach out in gitter to discuss your contributions!