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.3.tar.gz (47.3 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.3-py3-none-any.whl (75.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for outerrail-1.2.3.tar.gz
Algorithm Hash digest
SHA256 6c319686d83a006e655471b5d1dd86874b8bbda724978214b510c7ff36c70d9e
MD5 202aabf7b6899d76de95bb69bccd15aa
BLAKE2b-256 f7e14bba36473714d36e75bf0b8c7555cfdd1536e550ef9237fc8b2401eb3b26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: outerrail-1.2.3-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.12.3

File hashes

Hashes for outerrail-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb2295ba2efadba3fd1e4b3c307f92f6bc2644a9d2953af552ca85fa49418bd6
MD5 4b8846c956bb6442bf3da67113a740e8
BLAKE2b-256 281ec8f41bbda7923d4eb93b72552a29334ece29795ea7c1d9e72855c013ef45

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