Commit 408fe2b8 authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

move examples

parent 944f7c47
# Automation tools for MPEG workflow
You can use MDMS and GitLab modules in your own scripts. An example how to use them can be found in `./example_{mdms,gitlab}.py`.
You can use MDMS and GitLab modules in your own scripts. An example how to use them can be found in [examples](./examples) folder or in [systems.py](systems.py).
:warning: It is your responsibility to use the modules with care. Make sure that you make as few requests as possible to MDMS and GitLab servers.
......
'''
Just a few examples on how to use gitlab module
'''
import sys
sys.path.append('..') # hack which allows to import module from the parent directory
from automation import gitlab
# get all projects
......@@ -10,4 +12,4 @@ for project in projects:
print(project)
issues = gitlab.get_issues(projects[0]['id'])
print('issues count:', len(issues))
\ No newline at end of file
print('project {} has {} issues.'.format(projects[0]['url'], len(issues)))
\ No newline at end of file
'''
Just a few examples on how to use mdms module
'''
import sys
sys.path.append('..') # hack which allows to import module from the parent directory
from automation import mdms
# Get all meetings
......
......@@ -2,8 +2,9 @@
This is an example how to get a list of authors who had input documents
with a specific substring in the title
'''
from automation import mdms, helpers
import sys
sys.path.append('..') # hack which allows to import module from the parent directory
from automation import mdms, helpers
import os
# meetings with the smaller number will be ignored
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment