Skip to main content

Python module for easy integration with phantomas

Project description

Python module for easy integration with phantomas

https://travis-ci.org/macbre/phantomas-python.svg?branch=master

Install

In order to use this module you need phantomas “binary” installed in your system.

sudo make install

This will run node.js’ npm that will install phantomas globally.

Module’s API

import json
from phantomas import Phantomas

results = Phantomas(
    url="http://example.com",
    modules=['headers', 'requestsStats']
).run()

print results.getMetric('requests')  # get the "requests" metric
print json.dumps(results.getOffenders('requests'), indent=True)  # get offenders for the "requests" metric

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phantomas-0.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page