Пример #1
0
"""Code for ``tutorial-get.rst`` file."""
import resdk

# Create a Resolwe object to interact with the server and login
res = resdk.Resolwe(url='https://app.genialis.com')
res.login()

# Enable verbose logging to standard output
resdk.start_logging()

res.data.all()
res.sample.all()

# Get all Collection objects with "SDK" in their name
res.collection.filter(name='SDK')

# Get all Processes with category "Align"
res.process.filter(category='Align')

# Filter by using several fields:
res.data.filter(
  status='OK',
  created__gt='2018-10-01',
  created__lt='2025-11-01',
  ordering='-modified',
  limit=3,
)

# Get object by slug
res.sample.get('resdk-example')
Пример #2
0
"""Code for ``tutorial-get.rst`` file."""
import resdk

# Create a Resolwe object to interact with the server and login
res = resdk.Resolwe(url='https://app.genialis.com')
res.login()

# Enable verbose logging to standard output
resdk.start_logging()

res.data.all()
res.sample.all()

# Get all Collection objects with "SDK" in their name
res.collection.filter(name='SDK')

# Get all Processes with category "Align"
res.process.filter(category='Align')

# Filter by using several fields:
res.data.filter(
    status='OK',
    created__gt='2018-10-01',
    created__lt='2025-11-01',
    ordering='-modified',
    limit=3,
)

# Get object by slug
res.sample.get('resdk-example')