traversys / tideway Goto Github PK
View Code? Open in Web Editor NEWPython library for BMC Discovery API Interface.
License: GNU General Public License v3.0
Python library for BMC Discovery API Interface.
License: GNU General Public License v3.0
A number of functions are duplicated (due to BMC's downstream API changes and my own laziness), these should be cleaned up.
Applies to v0.2.0 (currently dev branch)
Add a feature to be able to query endpoints from the swagger documentation.
Have bulk search results returned by default, with the option to limit results, or limit requests.
The module cannot be imported if the tkinter module is not installed in Python.
v0.2.0
pip install tideway==0.2.0
#!/usr/bin/env python3
# coding: utf-8
import os
import sys
from pathlib import Path
import argparse
import json
import tideway
The following error message appears with running the code :
import tideway
File "/venv/lib/python3.7/site-packages/tideway-0.2.0-py3.7.egg/tideway/__init__.py", line 4, in <module>
from tideway import main, \
File "/venv/lib/python3.7/site-packages/tideway-0.2.0-py3.7.egg/tideway/main.py", line 4, in <module>
from tkinter import BASELINE
File "/usr/local/lib/python3.7/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
tkinter is imported in main.py as follows :
from tkinter import BASELINE
New in Discovery 12.3.
The newest release of Discovery (12.3/21.3) Uses API version 1.3.
API calls won't work because the header bearer pre-text is now case sensitive, whereas lowercase was accepted before.
Example: Bearer NDpkaXNjb3B==
Fix needs to be applied to tideway/discoRequests.py line 8
def url_and_headers(target,token,api_endpoint,response):
url = target + api_endpoint
headers = {"Accept": response, "Authorization":"bearer " + str(token) }
return url, headers
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.