semvec/pypi-packages huggingface dataset:
pychamp 1.1.0.dev4
Data Science Tools
Requires Python: >=3.6.7
Keywords: data science tools

# Data Science Tools (pychamp)

`pychamp` is a data science tool intended to ease data science practices.

<h4>Modules</h4>

- configparser : It can be used for parsing configuration file format `json` and `ini`.
- connection : It can be used for creating `connection URL`, `connection engine` and for `executing` any type of sql `queries`.
- features_selection : It can be used for selecting features using `Backward Elimination`, `VIF` and `Features Importance`.
- sampling : It can be used for different types of sampling operations such as `SMOTE`, `SMOTENC` and `ADASYN` for both categorical and numerical features.
- stats : It can be used for `Confidence and Prediction Interval`, `IQR outlier removal` and `Summary Statistics`.
- viz : It can be used for visualization.
- net : It can be used for sending mail currently.
- model : Different types of regression, classification and clustering models can be used.
- eda : It handles data types and missing values.
orthanc-rest-client 0.5.7
REST client for Orthanc DICOM servers

# Orthanc REST client

[![Build Status](https://travis-ci.com/teffalump/orthanc_rest_client.svg?branch=master)](https://travis-ci.com/teffalump/orthanc_rest_client)
[![PyPI version](https://badge.fury.io/py/orthanc-rest-client.svg)](https://badge.fury.io/py/orthanc-rest-client)

Provides a REST client targeted at [Orthanc](https://www.orthanc-server.com) REST API endpoints.

Based on the excellent [apiron](https://github.com/ithaka/apiron) library.

### Install

    pip install orthanc-rest-client

### How to use

Import the pre-defined client and pass the server details

    from orthanc_rest_client import Orthanc
    orthanc = Orthanc('http://localhost:8042')

    # Patient endpoints
    orthanc.get_patients()
    orthanc.get_patient(id)
    ...and so on

    # Study endpoints
    orthanc.get_studies()
    orthanc.get_study(id)
    ...and so on

    # Series endpoints
    orthanc.get_series()
    orthanc.get_one_series(id)
    ...and so on

    # Instance endpoints
    orthanc.get_instances()
    orthanc.get_instance(id)
    ...and so on

    # Get changes
    orthanc.get_changes()

    # Find objects by query
    query = {'Level': 'Patient',
                'Query': {'PatientName': 'Jon*'},
            }
    orthanc.find(query)

    # Get previous queries
    orthanc.get_queries()

There are many other preconfigured endpoints.

### Authentication

Pass valid auth object:

    from requests.auth import HTTPBasicAuth
    auth = HTTPBasicAuth('orthanc', 'orthanc')
    orthanc = Orthanc('https://test.server.com', auth=auth)

Then call functions normally (the auth object is passed automatically).

### Advanced examples

For example, to save an instance file to local directory:

    def save_dcm_file(instance_id):
        fileName = '.'.join([instance_id, "dcm"])
        with open(fileName, 'wb') as dcm:
            for chunk in orthanc.get_instance_file(instance_id):
                dcm.write(chunk)

To get a zip of DCM files from a series:

    with open('test.zip', 'wb') as z:
        for chunk in orthanc.get_series_archive(<id>):
            z.write(chunk)

### Security warning on non-HTTPS endpoints

The rest client will warn when using HTTP endpoints. Strongly consider using HTTPS given the data sensitivity.

You can disable the warning using the `warn_insecure` keyword argument:

    orthanc = Orthanc('http://insecure.endpoint.com', warn_insecure=False)

### Further help

- [apiron](https://github.com/ithaka/apiron)
- [Orthanc documentation](http://book.orthanc-server.com)
- [Orthanc REST API](https://docs.google.com/spreadsheets/d/e/2PACX-1vSBEymDKGZgskFEFF6yzge5JovGHPK_FIbEnW5a6SWUbPkX06tkoObUHh6T1XQhgj-HqFd0AWSnVFOv/pubhtml?gid=654036639&single=true)