Created
April 10, 2021 18:58
-
-
Save rruntsch/ead0e0f842ac6d8f7f76f4c706f69819 to your computer and use it in GitHub Desktop.
Controller Python code to demonstrate Python c_e_info class use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, how do you install c_e_info? its not in pypi!
thanks