Skip to content

meetmangukiya/ramlient

 
 

Repository files navigation

ramlient - RAML client for python

RESTful API Modeling Language (RAML) client


PyPI License Build Status
codecov.io Code Health Code Issues
PyPI version PyPI PyPI PyPI

Author: Timo Furrer tuxtimo@gmail.com
License: MIT


ramlient makes it very easy to access RAML based APIs. Kenneth would probably call it raml for humans or something ;)

Installation

Use pip to install ramlient:

pip install ramlient

Usage

Let's assume you have the following simple RAML file:

#%RAML 0.8
---
title: Example API
baseUri: http://example.com
securitySchemes:
  - basic:
      type: Basic Authentication
/resource:
  displayName: First One
  put:
    responses:
      200:
      201:
      203:
  get:
    description: get the first one
    headers:
      x-custom:
    responses:
      200:
  /{resourceId}:
    description: This is a resource description *with* some _markdown_ embedded in it
    uriParameters:
      resourceId:
        required: true
        description: Which resoure would you like to view
    get:
      queryParameters:
        filter:
          description: What to filter
          type: string
      responses:
        200:

Use ramlient to make easy requests to the routes:

from ramlient import Client

client = Client("api.raml")
response = client.resource.get()
resource = client.resource.resourceId(1).get()

About

RESTful API Modeling Language (RAML) client in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%