inspirehep.modules.authors.rest package

Submodules

inspirehep.modules.authors.rest.citations module

class inspirehep.modules.authors.rest.citations.AuthorAPICitations[source]

Bases: object

API endpoint for author collection returning citations.

serialize(pid, record, links_factory=None)[source]

Return a list of citations for a given author recid.

Parameters:
  • pid – Persistent identifier instance.
  • record – Record instance.
  • links_factory – Factory function for the link generation, which are added to the response.

inspirehep.modules.authors.rest.coauthors module

class inspirehep.modules.authors.rest.coauthors.AuthorAPICoauthors[source]

Bases: object

API endpoint for author collection returning co-authors.

serialize(pid, record, links_factory=None)[source]

Return a list of co-authors for a given author recid.

Parameters:
  • pid – Persistent identifier instance.
  • record – Record instance.
  • links_factory – Factory function for the link generation, which are added to the response.

inspirehep.modules.authors.rest.publications module

class inspirehep.modules.authors.rest.publications.AuthorAPIPublications[source]

Bases: object

API endpoint for author collection returning publications.

serialize(pid, record, links_factory=None)[source]

Return a list of publications for a given author recid.

Parameters:
  • pid – Persistent identifier instance.
  • record – Record instance.
  • links_factory – Factory function for the link generation, which are added to the response.

inspirehep.modules.authors.rest.stats module

class inspirehep.modules.authors.rest.stats.AuthorAPIStats[source]

Bases: object

API endpoint for author collection returning statistics.

serialize(pid, record, links_factory=None)[source]

Return a different metrics for a given author recid.

Parameters:
  • pid – Persistent identifier instance.
  • record – Record instance.
  • links_factory – Factory function for the link generation, which are added to the response.

Module contents

Record serialization.