Skip to main content
https://badge.fury.io/py/pyaltmetric.png

pyAltmetric is a python wrapper for Altmetric API v1. It provides an API for downloading and reading citations both individually and in bulk.

Installation

pip install pyaltmetric

Usage

Fetching by individual citations by identifiers:

from pyaltmetric import Altmetric

a = Altmetric()

a.id("241939")
a.doi("10.1038/news.2011.490")
a.pmid("21148220")
a.rxiv("1108.2455")
a.ads("2012apphl.100y3104b")

a = Altmetric("api_key_goes_here")

Querying the Altmetric.com database:

a.citations("1w", page=1, nlmid="0410462")

Reading a citation:

>>> from pyaltmetric import Altmetric, Citation
>>>
>>> b = a.id("241939")
>>> c = Citation(b)
>>> print c.title
u'Rebuilding Global Fisheries'
>>>
>>> c   # provides a snapshot of a citation's coverage across platforms.
Altmetrics on: "Rebuilding Global Fisheries" with doi 10.1126/science.1173146
published in Science.

All Posts      14
Tweets          6
Facebook        1
Google+         0
Reddit          0
Blogs           2

>>>
  • Free software: BSD license

Metadata

Release files for pyaltmetric 0.2.0

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

Source distribution (sdist)

Source distribution for pyaltmetric 0.2.0
File Size Uploaded Provenance
pyaltmetric-0.2.0.tar.gz 3.4 kB Without provenance Details

Release files / pyaltmetric-0.2.0.tar.gz

Download URL pyaltmetric-0.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7f36577872b5f7e5e9216746da37464aa5600fb23719035febf13f6b791c73bf
BLAKE2b-256 checksum
How to use checksums
05cbdce608ffdfe66200259602dece2c7c60a0f1fea6a03c3f2ad613e4b62bfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyaltmetric 0.2.0

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.

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