Giter VIP home page Giter VIP logo

henry's People

Contributors

jcarah avatar josephaxisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

henry's Issues

pip install fails

Python 2.7.15, pip 18.0, mac os 10.13.4

MacBook-Pro-2:~ looker$ pip install henry
Collecting henry
  Could not find a version that satisfies the requirement henry (from versions: )
No matching distribution found for henry

Connection Test error

When 'henry pulse' is run, I get the following error message. To me it seems that the results list empty, although when I check the client id and client secret manually ( https://:19999/api-docs/index.html) , the connection works fine. I hope you have any suggestions.

RUNNING (1/5) Testing Connections: 0% | |[00:00<?]
Traceback (most recent call last):
File "/usr/local/bin/henry", line 11, in
load_entry_point('henry==0.0.1b2', 'console_scripts', 'henry')()
File "/usr/local/lib/python3.7/site-packages/henry-0.0.1b2-py3.7.egg/henry/cli.py", line 273, in main
result = pulse.run_all()
File "/usr/local/lib/python3.7/site-packages/henry-0.0.1b2-py3.7.egg/henry/commands/pulse.py", line 28, in run_all
result = self.check_connections()
File "/usr/local/lib/python3.7/site-packages/henry-0.0.1b2-py3.7.egg/henry/commands/pulse.py", line 102, in check_connections
for i in results:
TypeError: 'NoneType' object is not iterable

add csv export

-- output switch allows export to csv rather thanb just txt

config file error

According to the documentation, the config.yml file should be as below.

hosts:
host_alias:
access_token: ''
host: foo.bar.companyname.com
id: AbCdEfGhIjKlMnOp
secret: QrStUvWxYz1234567890

However, auth.py, references the config file using the name 'kwargs', where the value of host is assigned the value 'looker' in cli.py, as such, throwing an error.

host = params['hosts'][kwargs['host']]['host']

I'm surprised no one else has encountered this issue so thought I'd bring it up.

I fixed the issue by finding and replacing all instances of '[kwargs['host']]' with '[host_alias]'.

Second issue I found was maybe because I'm running on a windows machine. In cli.py, line 29 was giving me issues because of file path backslashes, so had to use encode, decode for logging.config to be able to read this correctly.

LOGGING_LOG_PATH = os.path.join(LOGGING_LOG_PATH,'henry.log').encode('unicode_escape').decode()

Thanks,

Longfei

Allow users to set API timeout.

As users of a large looker instance with millions of queries a month, Henry's default API timeout of 60 seconds means no diagnostic query (besides connection tests) return.

Allowing users to manually fiddle with the timeout window (outside of a development install) would be very useful.

Big fan of this project - thanks.

Custom config.yml locations

The default behaviour in henry is to create the config.yml file in the current working directory. This could be confusing for some users. It would be great to create a config.yml file in the default install folder and then allow users to override this either globally or on a per-use basis.

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.