Provides APA7 style for Pybtex
Project description
APA7 Style for Pybtex
This is a fork of naeka's pybtex-apa-style.
Pybtex provides Python support for interacting with bibtex-formatted
bibliography information. Style plugins are required to format a bibliography in a given
style, similar to the role that csl
files play for LaTeX.
This plugin provides APA7 style.
Installation
$ pip install pybtex pybtex-apa7-style
Usage
Pybtex uses Python's plugin system. To use APA7, load it as a plugin.
from pybtex.plugin import find_plugin
from pybtex.database import parse_file
APA = find_plugin('pybtex.style.formatting', 'apa7')()
HTML = find_plugin('pybtex.backends', 'html')()
def bib_to_apa7_html(bibfile):
bibliography = parse_file(bibfile, 'bibtex')
formatted_bib = APA.format_bibliography(bibliography)
return "<br>".join(entry.text.render(HTML) for entry in formatted_bib)
Project details
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
Close
Hashes for pybtex_apa7_style-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e049437134b36c6310d0ed1ccf966019febf8f278822d13132106162a4e612a8 |
|
MD5 | 0f5e98bb808b69f3f02f5a61e3696c75 |
|
BLAKE2b-256 | 6fad44d33825aa01c4169459c1e52dbb65927fe42f0386d29105d31ef66d5cab |