Skip to main content

Python Altmetric API v1 wrapper

Project description

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 Citation

b = a.id("241939")
c = Citation(b)

print c.title

for field in c:
    print field

Reading multiple citations:

form pyaltmetric import CitationCollection

b = Citation(a.id("241939"))
c = Citation(a.doi("10.1038/news.2011.490"))

d = CitationCollection()
d.add_citation(b, c)

for citation in c:
    print citation
  • Free software: BSD license

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

pyaltmetric-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file pyaltmetric-0.1.2.tar.gz.

File metadata

  • Download URL: pyaltmetric-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyaltmetric-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70b796e405b61bcbd9a7690da4e19435fb9a4b6e0c0ad9721d7360b417c161b3
MD5 78e9adfcdc53f1d93c32c9cacaf8907e
BLAKE2b-256 cd889898f44b4438ce96b8b806e74823995eea2aae0bb6ef9c11222e98bc1e56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page