Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:08:35+00:00 2026-06-07T13:08:35+00:00

I have a REST API, say: http://localhost/api/v1/foo1 http://localhost/api/v1/foo2 http://localhost/api/v1/foo3 I’d like to have a

  • 0

I have a REST API, say:

http://localhost/api/v1/foo1
http://localhost/api/v1/foo2
http://localhost/api/v1/foo3

I’d like to have a python client that would look something like

api({some kinda init code})

result1 = api.get_foo1(params)
result2 = api.post_foo2(params)
result2 = api.post_foo2(params)

I’m really lazy and I was wondering if there’s some existing python package that would generate such an API for me.

I’ve already done some searching in SO, the best approach I’ve found so far is to use the python-requests package, and write my own wrapper to pretty it up. Is there anything easier?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:08:37+00:00Added an answer on June 7, 2026 at 1:08 pm

    You can try using the python-rest-client on Google Code, where you would make calls that look like this:

    conn.request_get("/search", args={'q':'Test'}, headers={'Accept':'text/json'})
    

    But as you can quickly see you will still need to create a wrapper of some sort to achieve the simplicity of your example calls.

    Remember that with REST, you don’t have foreknowledge of what the service call will return, so you can’t have a one-size-fits-all API for REST. Ultimately, you’ll need to wrap your http calls into something that’s convenient for your needs.

    I recommend doing this yourself – this will help you with your maintenance as you aren’t introducing a layer of abstraction in between your client and the API itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a REST API in java, and it supports responses that are
We have a Rest API that requires client certificate authentication. The API is used
I have a REST API where I would like to cache the JSON response
I currently have a REST API that must be authenticated via BasicAuth, but later
I am implementing a REST webservice and I have a resource (http://localhost/createUser) which is
Let's say you have a complex resource in a REST API. You have several
I have a REST API that I am trying to access using Rails 3.0.1
We have REST API that we want only our domain has access to and
Lets say I have a Rest API which can be accessed via e.g.: mypage.com/v1/users/1234
I have a scenario in which I have REST API which manages a Resource

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.