A Python package to check whether papers in your .bib file have been listed on Retraction Watch
Project description
retraction_check
A Python package to check whether papers in your .bib file or a specific bibtex entry have been listed on Retraction Watch.
Features
- Parse .bib files and extract paper information
- Query the Retraction Watch dataset for retracted papers
- Support both exact DOI matching and fuzzy title matching
- Robust error handling for various edge cases
Installation
# Install from PyPI (when published)
pip install retraction-check
# Or install from source
git clone https://github.com/codingfabi/retraction_check.git
cd retraction_check
pipenv install
# Install development dependencies
pipenv install --dev
Usage
Command line
# Using the installed command
retraction-check yourfile.bib
# Or using the module
python -m retraction_check.check_bib yourfile.bib
Development
Running tests
# Run all tests
pipenv run test
# Run tests with coverage
pipenv run test-cov
# Run tests in watch mode
pipenv run test-watch
# Run tests directly with Python
python tests/run_tests.py
Code quality
# Format code
pipenv run format
# Lint code
pipenv run lint
# Type checking
pipenv run type-check
# Run all checks
pipenv run check-all
Available test commands
test- Run all tests with verbose outputtest-cov- Run tests with coverage report (HTML and terminal)test-watch- Run tests in watch mode with short tracebacklint- Run flake8 lintingformat- Format code with blackformat-check- Check if code is properly formattedtype-check- Run mypy type checkingcheck-all- Run all quality checks (format, lint, type-check, test-cov)
Requirements
- Python 3.8+
- bibtexparser
- requests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retraction_check-0.1.0.tar.gz.
File metadata
- Download URL: retraction_check-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7a327e79c78b54d55bef7ad968be4ebd00b7e1cbc8bb8590bcc7eb797bddaa
|
|
| MD5 |
c18fd515054cb00fc055b8dea688b570
|
|
| BLAKE2b-256 |
137ecf382ea13840c90849705618b16a6f921854ff4dbf677776c9e6a2e33749
|
Provenance
The following attestation bundles were made for retraction_check-0.1.0.tar.gz:
Publisher:
build.yml on codingfabi/retraction_check
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retraction_check-0.1.0.tar.gz -
Subject digest:
2b7a327e79c78b54d55bef7ad968be4ebd00b7e1cbc8bb8590bcc7eb797bddaa - Sigstore transparency entry: 429193205
- Sigstore integration time:
-
Permalink:
codingfabi/retraction_check@a18746686caec91798dbdf8a7f8438ee8daa8bbb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/codingfabi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a18746686caec91798dbdf8a7f8438ee8daa8bbb -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file retraction_check-0.1.0-py3-none-any.whl.
File metadata
- Download URL: retraction_check-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c24fd2174963bfba4468ffd027674e548f96f8cc207d17a4a7b6ffae4248d8d
|
|
| MD5 |
fd7bb3cba40491e65988567a6a8f5277
|
|
| BLAKE2b-256 |
96d761d15a70a6065f4d1f1c44e7269155afae6ce6a480871c809e7b3f4a3f43
|
Provenance
The following attestation bundles were made for retraction_check-0.1.0-py3-none-any.whl:
Publisher:
build.yml on codingfabi/retraction_check
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retraction_check-0.1.0-py3-none-any.whl -
Subject digest:
6c24fd2174963bfba4468ffd027674e548f96f8cc207d17a4a7b6ffae4248d8d - Sigstore transparency entry: 429193228
- Sigstore integration time:
-
Permalink:
codingfabi/retraction_check@a18746686caec91798dbdf8a7f8438ee8daa8bbb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/codingfabi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a18746686caec91798dbdf8a7f8438ee8daa8bbb -
Trigger Event:
workflow_dispatch
-
Statement type: