semvec/pypi-packages huggingface dataset:
python-gdcm 3.2.2
Grassroots DICOM runtime libraries
Requires Python: >=3.7

[![Python version](https://img.shields.io/pypi/pyversions/python-gdcm.svg)](https://img.shields.io/pypi/pyversions/python-gdcm.svg)
[![PyPI version](https://badge.fury.io/py/python-gdcm.svg)](https://badge.fury.io/py/python-gdcm)
[![python-gdcm Downloads Last Month](https://assets.piptrends.com/get-last-month-downloads-badge/python-gdcm.svg 'python-gdcm Downloads Last Month by pip Trends')](https://piptrends.com/package/python-gdcm)
[![Downloads](https://static.pepy.tech/badge/python-gdcm)](https://pepy.tech/project/python-gdcm)

# Python-GDCM

**Unofficial** [GDCM](http://gdcm.sourceforge.net/wiki/index.php/Main_Page) packages for Python 3 on Linux, Windows and MacOS (both Intel and Apple Silicon).

Grassroots DiCoM is a C++ library for [DICOM](https://www.dicomstandard.org/) medical files that can be wrapped for Python using [SWIG](http://www.swig.org/). It supports datasets encoded using native, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntaxes. It also comes with Parts 3, 6 & 7 of the DICOM Standard as XML files.

## Installation

### Using pip

```bash
pip install -U python-gdcm
```

### From source

#### Install dependencies
- Compiler for you platform (GCC, Clang, MSVC)
- [CMake](https://cmake.org/)
- [SWIG](http://www.swig.org/)
- [patchelf](https://github.com/NixOS/patchelf) will also be needed on Linux
- [Git](https://git-scm.com/) to get the source code

#### Setup environment
If the `cmake` or `swig` executables aren't in `$PATH`, either add them or create  `CMAKE_EXE` and `SWIG_EXE` envars:
```bash
export CMAKE_EXE="path/to/cmake/executable"
export SWIG_EXE="path/to/swig/executable"
```

#### Clone source
```bash
git clone --recurse-submodules https://github.com/tfmoraes/python-gdcm
```

#### Build and install
```bash
# Note the trailing slash!
pip install python-gdcm/
```

#### Test installed package
```bash
python -c "import gdcm; print(gdcm.GDCM_VERSION)"
```
If you get a `ModuleNotFoundError: No module named '_gdcm.gdcmswig'` error then make sure your current working directory doesn't contain a `_gdcm` folder.

## Usage

### Reading a DICOM image file

```python
import gdcm
reader = gdcm.ImageReader()
reader.SetFileName("dicom_image_file.dcm")
ret = reader.Read()
if not ret:
    print("It was not possible to read your DICOM file")
```

### Other Examples

See here https://github.com/malaterre/GDCM/tree/master/Examples/Python
chameleon-code 0.1.5
Chameleon Code - Use any AI model with Claude Code
Requires Python: >=3.10

# Chameleon Code - Use any AI model with Claude Code

Use any AI model with Claude Code.

## What is this?

Chameleon Code is a proxy that translates Claude Code requests to any AI model. Uses OpenRouter by default.

## Quick Start

```bash
uv tool install chameleon-code
OPENROUTER_API_KEY="<YOUR_OPENROUTER_API_KEY>" cham
```

Or run standalone (it's single Python file, requires `uv`):

```bash
./cham.py
```

## Options

```
--model, -m MODEL              Model to use
--small-model SMALL_MODEL      Small model for haiku/subagent tasks (defaults to --model)
--max-tokens MAX_TOKENS        Maximum tokens per request
--url URL                      API URL to route to (defaults to OpenRouter)
--api-key API_KEY              API key (or set OPENROUTER_API_KEY env var)
--server                       Run server only, connect externally
--port PORT                    Port to bind to
```

## Examples

```bash
# Use with OpenRouter (default)
OPENROUTER_API_KEY="sk-or-v1-..." cham --model deepseek/deepseek-chat

# Use with different API
OPENROUTER_API_KEY="sk-..." cham --url https://api.openai.com/v1 --model gpt-4

# Run server on custom port
OPENROUTER_API_KEY="sk-..." cham --server --port 8080
```