Giter Site home page Giter Site logo

fw_apy's Introduction

fw_apy

Python wrapper for FileWave api.

Setup

pip install requests if using a trusted ssl cert (will not work with self-signed cert)

pip install requests[security] if using a self-signed cert (will also work with trusted cert)

edit lines 9 & 10 with your encoded API key and server address

The fw_apy.py file can be used on it's own or in your own projects. The rest of the files in this repo are examples or supporting files for the examples.

fw_device_details.py

This is an example of using fw_apy. It is a direct port of the php project from the API training session presented by Tony Keller at the 2017 conference.

Usage

First, in lines 16-19, replace the query ID's for the OS queries with your own.

fw_apy.queries() will get you a list of all queries on your server with ID numbers

To use it, launch the script, then open your browser to http://localhost:5000

Click on the pie chart to see corresponding clients, then click on client names to get details.

list_to_query.py

Another example script. This will generate a single-field query from a list.

Usage

Edit lines 7-9 to specify the field to search, the path to your list file, and wether to match 'one' or 'all'

As-is it will use a sample list of Mac model names provided by Gilbert Palau and print the raw response with the results of the query to the screen.

See line 33 and beyond for other output options.

fw_apy's People

Contributors

soxin4 avatar

Stargazers

Jonathan Pyers avatar

Watchers

 avatar

Forkers

dderusha

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.