Skip to content

Commit

Permalink
wokring env
Browse files Browse the repository at this point in the history
  • Loading branch information
martindemko committed Apr 8, 2024
1 parent 26e2362 commit 05b4fa2
Show file tree
Hide file tree
Showing 7 changed files with 619 additions and 35 deletions.
17 changes: 17 additions & 0 deletions create_libraries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import psycopg2
from bioblend import galaxy
import sys

server_name = sys.argv[1]
server = 'https://' + server_name
api_key = sys.argv[2]
gi = galaxy.GalaxyInstance(url=server, key=api_key)

# Define library properties
library_name = 'Test'
library_description = 'Library for testing purpose'

# Create library
new_library = gi.libraries.create_library(name=library_name, description=library_description)

print("New library ID:", new_library['id'])
Loading

0 comments on commit 05b4fa2

Please sign in to comment.