Neuro SDK for Python¶
A Python library for the Neuro Platform API.
The latest stable release is available on PyPI. Either add
neuromation to your
requirements.txt or install with pip:
$ pip install neuromation
To start working with the Neuro Platform you need to login first. The easiest way to do it is the using of CLI utility:
$ neuro login
After the login a configuration file is created and it can be read later.
neuromation.api.get() for initializing client instance from existing
from neuromation import api async with api.get() as client: jobs = [job async for job in client.jobs.list()]
The example above instantiates a
client object in async context manager and
fetches a list of user’s jobs. On exit from
async with statement the
object is closed and is not available for future calls.