Skip to main content

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)

Release files for pybtex-apa7-style 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybtex-apa7-style 0.1.2
File Size Uploaded
pybtex-apa7-style-0.1.2.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pybtex-apa7-style 0.1.2
File Interpreter ABI Platform
pybtex_apa7_style-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / pybtex-apa7-style-0.1.2.tar.gz

Download URL pybtex-apa7-style-0.1.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4f71a8578813703efd32a0fa6d900e6a8ac9edccd984d0cb443f43e20fdad4ee
BLAKE2b-256 checksum
How to use checksums
5a3364028247bca186366a53b9e04889aac91ffaeb14caf937cb800a72837fd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/19.6.0

Release files / pybtex_apa7_style-0.1.2-py3-none-any.whl

Download URL pybtex_apa7_style-0.1.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e049437134b36c6310d0ed1ccf966019febf8f278822d13132106162a4e612a8
BLAKE2b-256 checksum
How to use checksums
6fad44d33825aa01c4169459c1e52dbb65927fe42f0386d29105d31ef66d5cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/19.6.0

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page