Skip to main content

s2cholar

Client for the new Semantic Scholar API.

We used the Swagger Codegen project to generate the initial version of this package, which was then modified by the contributors.

Details of the Swagger Codegen used:

  • API version: 1.0
  • Package version: 0.1.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Announcement

This project is active and under development. Everyone is more than welcome to help and contribute.

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/luizvbo/s2cholar.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/luizvbo/s2cholar.git)

Then import the package:

import s2cholar

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import s2cholar

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import s2cholar
from s2cholar.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = s2cholar.AuthorApi(s2cholar.ApiClient(configuration))
author_id = '145872832' # str

try:
    # Details about an author
    api_response = api_instance.get_graph_get_author(author_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorApi->get_graph_get_author: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.semanticscholar.org/graph/v1

Class Method HTTP request Description
AuthorApi get_graph_get_author GET /author/{author_id} Details about an author
AuthorApi get_graph_get_author_papers GET /author/{author_id}/papers Details about an author's papers
PaperApi get_paper GET /paper/{paper_id} Details about a paper
PaperApi get_paper_authors GET /paper/{paper_id}/authors Details about a paper's authors
PaperApi get_paper_citations GET /paper/{paper_id}/citations Details about a paper's citations
PaperApi get_paper_references GET /paper/{paper_id}/references Details about a paper's references
PaperApi get_paper_search GET /paper/search Search for papers by keyword

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Luiz Otavio Vilas Boas Oliveira

Contribution

Contributions are more than welcome to this package.

Commit Messages

In order to keep our git log clean, use the tags below in your commit messages (adapted from the numpy workflow):

  • API: an (incompatible) API change
  • BUG: bug fix
  • CICD: changes to the CI/CD
  • DEP: deprecate something, or remove a deprecated object
  • DOC: documentation
  • ENH: enhancement
  • MAINT: maintenance commit (refactoring, typos, etc.)
  • REV: revert an earlier commit
  • STY: style fix (whitespace, PEP8)
  • TST: addition or modification of tests

Metadata

Release files for s2cholar 0.1.1

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

Source distribution (sdist)

Source distribution for s2cholar 0.1.1
File Size Uploaded Provenance Actions
s2cholar-0.1.1.tar.gz 31.1 kB Without provenance Details for s2cholar-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for s2cholar 0.1.1
File Interpreter ABI Platform Actions
s2cholar-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for s2cholar-0.1.1-py2.py3-none-any.whl

Total release size: 87.1 kB

Release files / s2cholar-0.1.1.tar.gz

Download URL s2cholar-0.1.1.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b2f10c188e0476becdbba2375610df43db137101c6012dbd723dbebae2c066d1
BLAKE2b-256 checksum
How to use checksums
570160586773801d29d4e551c0aa5d09440441ff55af0439850d3421cd328fd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / s2cholar-0.1.1-py2.py3-none-any.whl

Download URL s2cholar-0.1.1-py2.py3-none-any.whl
Size 56.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a88d276d7dd69ffbdcb59524a32e2952bb06350eea83291a0114611de881b861
BLAKE2b-256 checksum
How to use checksums
69cf0925dac3ebc1932619cf747498cd488bbec20cb673e546b7e85daacb4606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for s2cholar 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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