hkraal / ssht Goto Github PK
View Code? Open in Web Editor NEWSSH client wrapper for easily connecting to hosts
License: MIT License
SSH client wrapper for easily connecting to hosts
License: MIT License
I don't like the idea of talking to the MySQL server directly from my local machine, so I would like to be able to use an API for the source with an option to set headers (authentication).
{
"url": "https://api.local/hosts",
"headers": [
"X-Auth-Token": "bla"
]
}
When using the MySQL parser which connects to a host which isn't reachable from other locations ssht will stall without feedback to the user, this needs to be improved.
Searching based on IP does not yield any result. Although it's not very useful ssht <ip>
it should be possible since;
ssht
instead of ssh
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
Traceback (most recent call last):
File "/usr/local/bin/ssht", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/ssht/ssht.py", line 75, in main
jsonparser = JsonParser(os.path.join(home_dir, '.ssht'))
File "/usr/local/lib/python2.7/dist-packages/ssht/plugins.py", line 64, in __init__
self._load_data()
File "/usr/local/lib/python2.7/dist-packages/ssht/plugins.py", line 79, in _load_data
except json.decoder.JSONDecodeError as ex:
AttributeError: 'module' object has no attribute 'JSONDecodeError'
I would like to be able to set multiple sources for the hosts, my suggestion is to make the config like this:
{
"sources": [
{
"type": "mysql",
"host": "localhost",
"user": "username",
"password": "password",
"database": "infra1",
"query": "SELECT hostname, port, ipv4, ipv6, user FROM servers"
},
{
"type": "mysql",
"host": "localhost",
"user": "username",
"password": "password",
"database": "infra2",
"query": "SELECT hostname, port, ipv4, ipv6, user FROM servers"
}
]
}
main()
function has too many local variables and should be split up in smaller parts.Host.__repr__
code.*args, **kwargs
to each parser by implementing a Config class.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.