semvec/pypi-packages huggingface dataset:
pygeosimplify 0.0.18
Python package for automatic, cell-based inference of clash-free simplified detector geometry.
Requires Python: <3.13,>=3.9

<img src=https://github.com/jbeirer/pygeosimplify/raw/main/docs/logo.svg alt="Logo" width="250">


[![Release](https://img.shields.io/github/v/release/jbeirer/pygeosimplify)](https://img.shields.io/github/v/release/jbeirer/pygeosimplify)
[![Build status](https://img.shields.io/github/actions/workflow/status/jbeirer/pygeosimplify/main.yml?branch=main)](https://github.com/jbeirer/pygeosimplify/actions/workflows/main.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/jbeirer/pygeosimplify/graph/badge.svg?token=ZCJV384TXF)](https://codecov.io/gh/jbeirer/pygeosimplify)
[![Commit activity](https://img.shields.io/github/commit-activity/m/jbeirer/pygeosimplify)](https://img.shields.io/github/commit-activity/m/jbeirer/pygeosimplify)
[![License](https://img.shields.io/github/license/jbeirer/pygeosimplify)](https://img.shields.io/github/license/jbeirer/pygeosimplify)
[![DOI](https://zenodo.org/badge/707731497.svg)](https://doi.org/10.5281/zenodo.14308339)


Welcome to pyGeoSimplify!

## Download pyGeoSimplify
```python
pip install pygeosimplify
```

## Quick Start

```python
import pygeosimplify as pgs
from pygeosimplify.simplify.layer import GeoLayer
from pygeosimplify.simplify.detector import SimplifiedDetector

# Set names of branches that specify coordinate system of cells
pgs.set_coordinate_branch("XYZ", "isXYZ")
pgs.set_coordinate_branch("EtaPhiR", "isEtaPhiR")
pgs.set_coordinate_branch("EtaPhiZ", "isEtaPhiZ")
pgs.set_coordinate_branch("RPhiZ", "isRPhiZ")

# Load geometry
geo = pgs.load_geometry("DetectorCells.root", tree_name='treeName')

# Create simplified detector
detector = SimplifiedDetector()

# Add dector layers to detector
n_layer = max(geo.layer) + 1
for i_layer in range(0, n_layer):
	layer = GeoLayer(geo, layer_idx = i_layer, thinned_layer_width = 1)
	detector.add_layer(layer)

# Process detector
detector.process()

# Save simplified detector to gdml file
detector.save_to_gdml(cyl_type='processed', output_path='processed.gdml')
```

## LICENSE

pyGeoSimplify is free of use and open-source. All versions are
published under the [MIT License](https://github.com/jbeirer/pygeosimplify/blob/main/LICENSE).
portal-cli 0.1.20
A CLI for portal image management.
Requires Python: >=3.6

# Portal CLI

A command-line interface for interacting with the portal image management system.

## Installation

To install the Portal CLI, use pip:

```bash
pip install portal-cli
```

## Usage

The Portal CLI provides several commands for managing images.

### Upload

Uploads a Docker image.

```bash
portal-cli upload image --image <path/to/image.tar>
```

### Search

Searches for images.

```bash
portal-cli search by-name --name <image_name>
```

### Scan

Scans an image for vulnerabilities.

```bash
portal-cli scan vulnerabilities --image <image:tag>
```

### Chart

Retrieves a Helm chart.

```bash
portal-cli chart get --image-uid <image_uid> --image-version <image_version>
```

### Transfer

Transfers an image to a registry.

```bash
portal-cli transfer to-registry --image <image:tag> --registry <registry_url>
```

### Deploy

Deploys an image to a Kubernetes cluster.

```bash
portal-cli deploy image --image <image:tag> --namespace <namespace>
```

## Examples

### Uploading an Image

```bash
portal-cli upload image --image my_app_image.tar
```

### Searching for an Image by Name

```bash
portal-cli search by-name --name my_app_image
```

### Scanning an Image for Vulnerabilities

```bash
portal-cli scan vulnerabilities --image my_app_image:latest
```

### Getting a Helm Chart

```bash
portal-cli chart get --image-uid 7LLgaAY1M2odDy8afDbWxSNqtawaPU2LMex8Hs5mD2oY1VKgzQ436W8TU5Ux --image-version v0-0-01
```

### Transferring an Image to a Registry

```bash
portal-cli transfer to-registry --image my_app_image:latest --registry docker.example.com
```

### Deploying an Image to a Kubernetes Namespace

```bash
portal-cli deploy image --image my_app_image:latest --namespace production
```

## Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues.

## License

This project is licensed under the MIT License. See the `LICENSE` file for more information.
```