AIoD - RAIL. SDK for the RAIL service of the AI on Demand platform.
Project description
OuterRail
An SDK for AI on Demand RAIL platform.
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:
- RAIL - with example code for using the SDK
- Official documentation
- Docstrings in the SDK itself
Author
This SDK was created at KInIT by Jozef Barut.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outerrail-1.2.3.post1.tar.gz.
File metadata
- Download URL: outerrail-1.2.3.post1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aae941b1d713b563a4603563e74add64f580fc0e17659bc167f9e844e3db1f77
|
|
| MD5 |
e59eea4352e1dc31423204f0944afb0e
|
|
| BLAKE2b-256 |
dc4cc4961a262d95ba8ae3a5991ec901496271028f787d99143c5173258366d4
|
File details
Details for the file outerrail-1.2.3.post1-py3-none-any.whl.
File metadata
- Download URL: outerrail-1.2.3.post1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c9d725ba6abbe565becc7df40fba2a16f60c7602757d0b26a1bb37aa5c62f93
|
|
| MD5 |
d1523d40ebaa506123eee11a8ec6d7a2
|
|
| BLAKE2b-256 |
c7e4a81927811f78753034b462527459b588a43dbc63889a9cd8a386c6825146
|