Skip to content

Set up client #2

@afuetterer

Description

@afuetterer

Let's begin with the basic functionality of the client:

  • BaseClient is ABC
  • Client (sync)
  • Base URL
  • User agent
  • Timeout
  • _request()
  • add tests (vcr.py)
  • list()
  • get()
  • 404
  • Add mini usage example in readme
  • add Client to api reference docs
  • Returns the xml for now
  • Argument return response or xml, return_type. Defaults to xml.
import re3data

re3data.repositories.list()
re3data.repositories.get(zenodo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions