Skip to main content

A simple python wrapper for inspirehep API

Project description

pyinspirehep

The pyinspirehep is a package which is a simple wrapper of inspirehep API in Python.

Installation

You can install this package using

pip install pyinspirehep

Features

  • A simple client to get json data from Inspirehap API

Usage

The class Client is the simple Python wrapper to get data from Inspirehep API.

from pyinsiprehep import Client

client = Client()
paper = client.get_literature("451647")
paper["metadata"]["titles"][0]["title"]
'The Large N limit of superconformal field theories and supergravity'

The other method of the Client which may be usefull are here:

  • get_literature()
  • get_author()
  • get_institution()
  • get_journal()
  • get_experiment()
  • get_seminar()
  • get_conference()
  • get_job()
  • get_doi()
  • get_arxiv()
  • get_orcid()
  • get_data()

Each of these methods have a docstring you can get using help function of the Python. Basically all of them gets an identifier which determines the record in Inspirehep database.

Contributing

Everyone who want's to work on this library is welcome to collaborate by creating pull requests or sending email to authors.

LICENSE

MIT License

Copyright (c) [2022] [Javad Ebadi, Vahid Hoseinzade]

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

pyinspirehep-0.2.3.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file pyinspirehep-0.2.3.tar.gz.

File metadata

  • Download URL: pyinspirehep-0.2.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for pyinspirehep-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9b199a97cf1537bd8f1c11eb78c74b4a8bf27b9d807463443da8d71df4962782
MD5 0245c3d436f946450124d6aa43c6d024
BLAKE2b-256 0efa162702e016782d08854f91a94ace587c4dc58b183094615aff325a55b6b3

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