Metadata-Version: 2.1
Name: gallica-autobib
Version: 0.1.6
Summary: Automatically match Bibliographies against bnf.gallica.fr
License: MIT
Author: John Morris
Author-email: 2e0byo@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Jinja2 (>=2.11.3,<3.0.0)
Requires-Dist: Pillow (>=8.2.0,<9.0.0)
Requires-Dist: PyPDF4 (>=1.27.0,<2.0.0)
Requires-Dist: beautifulsoup4 (>=4.9.3,<5.0.0)
Requires-Dist: bibtexparser (>=1.2.0,<2.0.0)
Requires-Dist: fuzzysearch (>=0.7.3,<0.8.0)
Requires-Dist: fuzzywuzzy (>=0.18.0,<0.19.0)
Requires-Dist: jsonpickle (>=2.0.0,<3.0.0)
Requires-Dist: lark-parser (>=0.11.3,<0.12.0)
Requires-Dist: lxml (>=4.6.3,<5.0.0)
Requires-Dist: pydantic (>=1.5.1,<2.0.0)
Requires-Dist: python-Levenshtein (>=0.12.2,<0.13.0)
Requires-Dist: python-slugify (>=5.0.2,<6.0.0)
Requires-Dist: requests-downloader (>=0.1.6,<0.2.0)
Requires-Dist: rfc3987 (>=1.3.8,<2.0.0)
Requires-Dist: rispy (>=0.6.0,<0.7.0)
Requires-Dist: roman (>=3.3,<4.0)
Requires-Dist: scikit-image (>=0.18.1,<0.19.0)
Requires-Dist: sqlitedict (>=1.7.0,<2.0.0)
Requires-Dist: sruthi (>=0.1.2,<0.2.0)
Requires-Dist: typer (>=0.3.2,<0.4.0)
Requires-Dist: xdg (>=5.0.2,<6.0.0)
Requires-Dist: xmltodict (>=0.12.0,<0.13.0)
Description-Content-Type: text/markdown

# pygallica-autobib

<p align="center">
    <em>Automatically match Bibliographies against bnf.gallica.fr!</em>
</p>

<p align="center">
<a href="https://github.com/2e0byo/pygallica-autobib/actions?query=workflow%3ATest" target="_blank">
    <img src="https://github.com/2e0byo/pygallica-autobib/workflows/Test/badge.svg" alt="Test">
</a>
<a href="https://github.com/2e0byo/pygallica-autobib/actions?query=workflow%3APublish" target="_blank">
    <img src="https://github.com/2e0byo/pygalln=dependabot" alt="Dependabot Enabled">
</a>
<a href="https://codecov.io/gh/2e0byo/pygallica-autobib" target="_blank">
    <img src="https://img.shields.io/codecov/c/github/2e0byo/pygallica-autobib?color=%2334D058" alt="Coverage">
</a>
<a href="https://pypi.org/project/gallica-autobib" target="_blank">
    <img src="https://img.shields.io/pypi/v/gallica-autobib?color=%2334D058&label=pypi%20package" alt="Package version">
</a>
<a href="https://pypi.org/project/gallica-autobib/" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/gallica-autobib.svg" alt="Python Versions">
</a>
</p>


## Standalone Usage

```bash
gallica-autobib my-bibliography.bib pdfs # match my-bibliography and put files in ./pdfs
gallica-autobib --help
```

## As a library
```python
from pathlib import Path
from gallica_resource.pipeline import BibtexParser

parser = BibtexParser(Path("outdir"))

with Path("articles.bib").open() as f:
    parser.read(f)

parser.run()
for result in parser.results:
    print(result)
```

Gallica-Autobib is capable of much more than this. For more information, see the
[homepage](2e0byo.github.io/pygallica-autobib).


