Skip to main content

Flywheel Gear Utils

This repository contains Flywheel gear utils with minimal dependencies, i.e. no dependency on Flywheel site version, or SDK version.

Currently the repo contains:

  • Manifest: A class to interact with a gear Manifest
  • Config: A class to interact with a gear Config

Manifest

The Manifest class provides utilities for parsing and generating a manifest for a gear. Including functionality to:

  • Load a manifest from a file
  • Check if the manifest is valid
  • Create default config schema from manifest
  • Access properties for docker image, version, inputs, license, etc.

Ex.:

    >>> from flywheel_gear_toolkit.utils.manifest import Manifest
    >>> manifest = Manifest(<manifest_file>)
    >>> manifest.is_valid()
    []  # No errors
    True

Config

The Config class provides utilities for parsing and generating a manifest for a gear. Including functionality to:

  • Generate default config from manifest
  • Access config properties
  • Utilities for building a config.json file.

Ex.:

    >>> from flywheel_gear_toolkit.utils import config, manifest
    >>> m = manifest.Manifest(<manifest_file>)
    >>> c = config.Config.default_config_from_manifest(m)
    >>> c.add_input('dicom','~/input_dicom.dcm.zip')
    >>> c.to_json('~/gear/config.json')

Metadata

Release files for fw-gear-utils 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for fw-gear-utils 0.1.1
File Interpreter ABI Platform
fw_gear_utils-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / fw_gear_utils-0.1.1-py3-none-any.whl

Download URL fw_gear_utils-0.1.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
395cb67d1a35e0d19051acbfd1825a7dee75a51670d9715674f4f4e8e21f3d0a
BLAKE2b-256 checksum
How to use checksums
57a03e0937030154fc32dce0f09c660e0ea9c6be1ca67738ecdd93d40f341e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.4.109+

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page