Skip to main content

AIoD - RAIL. SDK for the RAIL service of the AI on Demand platform.

Project description

OuterRail

An SDK for AI on Demand RAIL platform.

PyPI version Python Version Downloads License: MIT

What is RAIL

RAIL stands for: Research and Innovation AI Lab

RAIL is a tool that allows AI practitioners to explore and use AI assets directly in the AI on Demand platform (AIoD). RAIL is developed within the AI4Europe project as one of the core services of the AI on Demand platform.

OuterRail organization

SDK provides two types of interfaces:

  • Instances - are classes that provide a way to work with individual instances of different parts of RAIL, e. g. individual templates, experiments, runs, datasets
  • Managers - contain operations that function on multiple instances, such as querying, counting,... Special case that is also handled by managers is creation of new Instances.

Installation

Requirements

Python 3.11+

pip install

The OuterRail package can simply be installed with pip via command:

pip install OuterRail

Manual installation with wheel

Usage

Importing the package

You can import the SDK with:

import OuterRail

In code setup

Importing the package

You can the entire SDK with:

import OuterRail

Alternatively, you can import only needed parts with:

from OuterRail import what_you_need

Config and Logging in

For the SDK to work with underlying RAIL backend, you need to specify the URL of the RAIL service. Additionally, most of the functionality requires authentication, and therefore you need to be logged in to use this functionality.
Logging in will require entering a device code on the provided URL, where afterwards you will be log in to the service and give consent to resources needed by the SDK.

The code for this would look something like:

import os
from OuterRail import Configuration

config = Configuration(host="https://rail.aiod.eu/api") # 1. Specify URL
config.login() # 2. Blocking function until log in or timeout
# ... your logic here ...
config.logout() # 3. After your code, logout

Examples

For more examples, you can check out the following sources:

Author

This SDK was created at KInIT by Jozef Barut.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outerrail-1.2.4.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outerrail-1.2.4-py3-none-any.whl (75.6 kB view details)

Uploaded Python 3

File details

Details for the file outerrail-1.2.4.tar.gz.

File metadata

  • Download URL: outerrail-1.2.4.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for outerrail-1.2.4.tar.gz
Algorithm Hash digest
SHA256 fe8c58573cb97fcc56f7893f7648e9dfcce34c8f71888d7aec4a73a71d451417
MD5 0d06e4a8823392e41b31f45257f8fc58
BLAKE2b-256 7a4273d5b9e68e07f922397d9b30915f78bcfa8e00caaecaa79233c6500a1e3a

See more details on using hashes here.

File details

Details for the file outerrail-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: outerrail-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 75.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for outerrail-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a650310ac8022d74a6a5f4737de9119de577fa8286cc751e335fe1a309e61602
MD5 da4ba98126cb25830d903d2aa70f2156
BLAKE2b-256 64673d119f46709d26b3a0349d553cd9c9a1f2fb798385eaace962b7d8b1d810

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page