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/docs") # 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.1.tar.gz (46.6 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.1-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: outerrail-1.2.1.tar.gz
  • Upload date:
  • Size: 46.6 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.1.tar.gz
Algorithm Hash digest
SHA256 485e57fba82aa9a6a5f5ccd43b4e68fadd1497985c0a59034a05846d517d5909
MD5 67d3e4f3eac808dcb86d04c900c042d3
BLAKE2b-256 85a192a518e9c451c685dd5c5103a2b2a10dcfddf59312e0de14ada36bc69a67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: outerrail-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 75.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 314b99778916ca686e6b8c6e09a8dea51cee7b1e9c934526a07d4f68548f0c9e
MD5 e91002e190e277eb4fa1cc02b369db51
BLAKE2b-256 3da248422ccf73b6e2aa831cd1711fef414a2a8c3e4bce08a043e1baa8367e00

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