Skip to content

Instantly share code, notes, and snippets.

@rruntsch
Created April 10, 2021 18:58
Show Gist options
  • Save rruntsch/ead0e0f842ac6d8f7f76f4c706f69819 to your computer and use it in GitHub Desktop.
Save rruntsch/ead0e0f842ac6d8f7f76f4c706f69819 to your computer and use it in GitHub Desktop.
Controller Python code to demonstrate Python c_e_info class use
from c_e_info import c_e_info
# Get the names of all Entrez databases as XML. Write the XML
# to a file and print it to the screen.
pubmed_db_list = c_e_info()
pubmed_db_list.write_db_xml('c://project_data/c_e_info/entrez_db_list.xml')
print(pubmed_db_list.get_db_xml())
# Get the details of the pubmed database as XML. Write the XML
# to a file and print it to the screen.
pubmed_db_info = c_e_info('pubmed')
pubmed_db_info.write_db_xml('c://project_data/c_e_info/entrez_pubmed_db_info.xml')
print(pubmed_db_info.get_db_xml())
@joseberlines
Copy link

Hi there, how do you install c_e_info? its not in pypi!
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment