# Afromag AMA Citation Generator (Python Edition)
An open-source Python library designed to automate reference formatting according to the **American Medical Association (AMA 11th Edition)** manual of style. Built for medical researchers, data scientists, academic writers, and developers building healthcare or scholarly publishing tools.
---
## Official Web Tool & Interactive Resources
For non-technical users or quick manual citation formatting, use our live interactive web version:
* **Interactive Generator:** [Afromag AMA Citation Tool](https://afromag.com.ng/ama-citation-generator/)
* **Official Academic Hub:** [Afromag Main Portal](https://afromag.com.ng)
---
## Key Features
* **AMA 11th Edition Compliant:** Follows strict formatting rules for authors, journal title abbreviations, year, volume, issue, page numbers, and DOIs.
* **Flexible Author Handling:** Formats surname and initial combinations effortlessly for single or multi-author medical papers.
* **DOI Integration:** Automatically appends active Digital Object Identifier (DOI) URLs when provided.
* **Lightweight & Zero Dependencies:** Pure Python implementation with zero third-party packages required for maximum reliability in pipeline integrations.
---
## Installation
Install the latest release directly from PyPI via pip:
pip install afromag-ama-citation-tool
from afromag\_ama\_citation import generate\_ama\_citation
citation = generate\_ama\_citation(
  authors="Smith AB, Johnson CD, Patel R",
  title="Advances in automated reference extraction for medical literature",
  journal="J Med Res Sci",
  year=2026,
  volume=14,
  issue=2,
  pages="110-118"
)
print(citation)
\# Output: Smith AB, Johnson CD, Patel R. Advances in automated reference extraction for medical literature. J Med Res Sci. 2026;14(2):110-118.
citation = generate\_ama\_citation(
  authors="Akinwande KO, Taylor ME",
  title="Global trends in health informatics and digital reference management",
  journal="Lancet Digit Health",
  year=2026,
  volume=8,
  issue=5,
  pages="e204-e211",
  doi="\[https://doi.org/10.1016/S2589-7500(26)00012-3](https://doi.org/10.1016/S2589-7500(26)00012-3)"
)
print(citation)
AMA 11th Edition Quick Reference Guide
Author Names: List inverted names (LastName Initials) without periods after initials. Separate multiple authors with commas.
Article Title: Capitalize only the first letter of the title and proper nouns (sentence case). Do not place quotes around the title.
Journal Names: Abbreviate according to NLM Title Abbreviations (e.g., Journal of the American Medical Association becomes JAMA).
Publication Details: Format as Year;Volume(Issue):Pages. without spaces around the semicolon or colon.
About Afromag
Afromag is a global platform dedicated to advancing open access tools, medical technology resources, and scholarly publishing solutions for international researchers and academic institutions.
For additional citation styles, API documentation, or to contribute to our open-source tools, visit the Afromag AMA Citation Generator.
License
Distributed under the MIT License. Developed and maintained by **Afromag**.
Metadata
Release files for afromag-ama-citation-tool 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| afromag_ama_citation_tool-1.0.2.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| afromag_ama_citation_tool-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / afromag_ama_citation_tool-1.0.2.tar.gz
| Download URL | afromag_ama_citation_tool-1.0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec1d582cfd7bb744750f98b674be2f6f53c279195785c1ebdcaae33dfa7eb758
|
|
BLAKE2b-256 checksum How to use checksums |
3b5724ba4da185782ca177634e6d4ffc9b1b618f777ec69e13a36a4d28aa4ba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / afromag_ama_citation_tool-1.0.2-py3-none-any.whl
| Download URL | afromag_ama_citation_tool-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b2331f2aba4a7c4df8e8fc99bf23c9a188216b30af353666ee710d1058e4743
|
|
BLAKE2b-256 checksum How to use checksums |
03d9299a1a2a3fd5a2cb725efdacfd03447c61fa2a7ab3f77c94a86c27be82e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for afromag-ama-citation-tool 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.