Giter VIP home page Giter VIP logo

redash-python's Introduction

redash-python's People

Contributors

blacksuan19 avatar yu-iskw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redash-python's Issues

Support extra custom HTTP headers

Motivation

We secure our redash environment with Google Cloud IAP so that we surely authenticate redash users. When we would like to programmatically call redash APIs, we need to embed an ID token to the HTTP header. So, it would be great if the package support custom extra headers to call redash APIs through Google Cloud IAP.

curl --verbose --header 'Authorization: Bearer ID_TOKEN' URL

https://cloud.google.com/iap/docs/authentication-howto

Help with create queries

Hi. I need your help. I'm confuse about the function create in Class QueriesService. I need to put the argument in a Dict. def create(data: Dict) -> Dict
but what the arguments in the Dict? for example, I need to put name, data_source_id... what are the exact arguments?

Thanks!

Modification in fetch page to be able to get all queries instead of 25

Hi,

I need a list of all the queries instead of 25 queries. Can you change the version for this with this code below? Can you change your version on pip for my code?

I did some change in your code minxins.py to do this:
def fetch_page(self, page: int = 1, page_size: int = 100, **kwargs) -> List[Dict]:
"""Load a page of a paginated resource"""
response = self.__base.get(
self.endpoint, params=dict(page=page, page_size=page_size), **kwargs
)
return response.get("results")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.