Skip to content

Commit

Permalink
Code format using black, update part of example data, test script in …
Browse files Browse the repository at this point in the history
…README
  • Loading branch information
titipata committed Jan 21, 2020
1 parent 177869c commit c6ff97e
Show file tree
Hide file tree
Showing 10 changed files with 595 additions and 504 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: python
env:
- PYTHON=3.5
- PYTHON=3.6
- PYTHON=3.7
- PYTHON=3.8
- PYTHON=3.5
- PYTHON=3.6
- PYTHON=3.7
- PYTHON=3.8

miniconda:
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
Expand All @@ -22,4 +22,4 @@ script:
- py.test --cov=pubmed_parser tests/ --verbose

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ git clone https://github.com/titipata/pubmed_parser
pip install ./pubmed_parser
```

You can test your installation by running `py.test --cov=pubmed_parser tests/ --verbose`

## Example snippet to parse PubMed OA dataset

An example usage is shown as follows
Expand Down
2 changes: 0 additions & 2 deletions data/cc11003.nxml

This file was deleted.

Binary file removed data/medline16n0902.xml.gz
Binary file not shown.
Binary file added data/pubmed20n0014.xml.gz
Binary file not shown.
29 changes: 16 additions & 13 deletions pubmed_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
Author: Titipat Achakulvisut, Daniel E. Acuna
"""
__version__ = '0.2.1'
from .pubmed_oa_parser import list_xml_path, \
parse_pubmed_xml, \
parse_pubmed_references, \
parse_pubmed_paragraph, \
parse_pubmed_caption, \
parse_pubmed_table
from .medline_parser import parse_medline_xml, \
parse_medline_grant_id
from .pubmed_web_parser import parse_xml_web, \
parse_citation_web, \
parse_outgoing_citation_web
from .utils import pretty_print
__version__ = "0.2.1"
from .pubmed_oa_parser import (
list_xml_path,
parse_pubmed_xml,
parse_pubmed_references,
parse_pubmed_paragraph,
parse_pubmed_caption,
parse_pubmed_table,
)
from .medline_parser import parse_medline_xml, parse_medline_grant_id
from .pubmed_web_parser import (
parse_xml_web,
parse_citation_web,
parse_outgoing_citation_web,
)
from .utils import pretty_print
Loading

0 comments on commit c6ff97e

Please sign in to comment.