paperscraper 0.3.4__tar.gz → 0.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {paperscraper-0.3.4 → paperscraper-0.3.5}/PKG-INFO +2 -2
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/__init__.py +1 -1
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_self_references.py +0 -27
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/PKG-INFO +2 -2
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/requires.txt +1 -1
- {paperscraper-0.3.4 → paperscraper-0.3.5}/pyproject.toml +1 -1
- {paperscraper-0.3.4 → paperscraper-0.3.5}/LICENSE +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/README.md +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/arxiv/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/arxiv/arxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/arxiv/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/async_utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/citations.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/core.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/entity/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/entity/core.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/entity/paper.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/entity/researcher.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/orcid.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/self_citations.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/self_references.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_citations.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_paper.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_self_citations.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/arxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/biorxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/chemrxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/medrxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/utils/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/utils/chemrxiv/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/utils/chemrxiv/chemrxiv_api.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/utils/chemrxiv/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/impact.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/load_dumps.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pdf/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pdf/fallbacks.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pdf/pdf.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pdf/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/plotting.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/postprocessing.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pubmed/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pubmed/pubmed.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pubmed/tests/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pubmed/tests/test_pubmed.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/pubmed/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/scholar/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/scholar/core.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/scholar/scholar.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/scholar/tests/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/scholar/tests/test_scholar.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/server_dumps/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/tests/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/tests/test_dump.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/tests/test_impactor.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/tests/test_pdf.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/utils.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/xrxiv/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/xrxiv/tests/__init__.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/xrxiv/tests/test_xrxiv.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/xrxiv/xrxiv_api.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/xrxiv/xrxiv_query.py +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/SOURCES.txt +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/dependency_links.txt +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/not-zip-safe +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper.egg-info/top_level.txt +0 -0
- {paperscraper-0.3.4 → paperscraper-0.3.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paperscraper
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: paperscraper: Package to scrape papers.
|
|
5
5
|
Author-email: Jannis Born <jannis.born@gmx.de>, Matteo Manica <drugilsberg@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ License-File: LICENSE
|
|
|
25
25
|
Requires-Dist: arxiv>=1.4.7
|
|
26
26
|
Requires-Dist: pymed-paperscraper>=1.0.4
|
|
27
27
|
Requires-Dist: pandas>=1.0.4
|
|
28
|
-
Requires-Dist: requests
|
|
28
|
+
Requires-Dist: requests>=2.32.2
|
|
29
29
|
Requires-Dist: tqdm>=4.51.0
|
|
30
30
|
Requires-Dist: scholarly>=1.0.0
|
|
31
31
|
Requires-Dist: seaborn>=0.11.0
|
{paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_self_references.py
RENAMED
|
@@ -49,33 +49,6 @@ class TestSelfReferences:
|
|
|
49
49
|
assert isinstance(self_cites, float)
|
|
50
50
|
assert self_cites >= 0 and self_cites <= 100
|
|
51
51
|
|
|
52
|
-
def test_compare_async_and_sync_performance(self, dois):
|
|
53
|
-
"""
|
|
54
|
-
Compares the execution time of asynchronous and synchronous `self_references`
|
|
55
|
-
for a list of DOIs.
|
|
56
|
-
"""
|
|
57
|
-
|
|
58
|
-
start_time = time.perf_counter()
|
|
59
|
-
async_results = self_references_paper(dois)
|
|
60
|
-
async_duration = time.perf_counter() - start_time
|
|
61
|
-
|
|
62
|
-
# Measure synchronous execution time (three independent calls)
|
|
63
|
-
start_time = time.perf_counter()
|
|
64
|
-
sync_results = [self_references_paper(doi) for doi in dois]
|
|
65
|
-
|
|
66
|
-
sync_duration = time.perf_counter() - start_time
|
|
67
|
-
|
|
68
|
-
print(f"Asynchronous execution time (batch): {async_duration:.2f} seconds")
|
|
69
|
-
print(
|
|
70
|
-
f"Synchronous execution time (independent calls): {sync_duration:.2f} seconds"
|
|
71
|
-
)
|
|
72
|
-
assert len(sync_results) == len(async_results)
|
|
73
|
-
|
|
74
|
-
assert 0.5 * async_duration <= sync_duration, (
|
|
75
|
-
f"Async execution ({async_duration:.2f}s) is slower than sync execution "
|
|
76
|
-
f"({sync_duration:.2f}s)"
|
|
77
|
-
)
|
|
78
|
-
|
|
79
52
|
def test_researcher(self):
|
|
80
53
|
"""
|
|
81
54
|
Tests calculation of self-references for all papers of an author.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paperscraper
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: paperscraper: Package to scrape papers.
|
|
5
5
|
Author-email: Jannis Born <jannis.born@gmx.de>, Matteo Manica <drugilsberg@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ License-File: LICENSE
|
|
|
25
25
|
Requires-Dist: arxiv>=1.4.7
|
|
26
26
|
Requires-Dist: pymed-paperscraper>=1.0.4
|
|
27
27
|
Requires-Dist: pandas>=1.0.4
|
|
28
|
-
Requires-Dist: requests
|
|
28
|
+
Requires-Dist: requests>=2.32.2
|
|
29
29
|
Requires-Dist: tqdm>=4.51.0
|
|
30
30
|
Requires-Dist: scholarly>=1.0.0
|
|
31
31
|
Requires-Dist: seaborn>=0.11.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/citations/tests/test_self_citations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{paperscraper-0.3.4 → paperscraper-0.3.5}/paperscraper/get_dumps/utils/chemrxiv/chemrxiv_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|