GithubHelp home page GithubHelp logo

graphdat-sdk-python's Introduction

Graphdat SDK for Python

DEPRECATED - This is now longer in use or supported.

A heart rate monitor for you apps

Graphdat lets you visualise the performance of your servers and applications in real time and shows you what to fix.

See an issue, drill into it. Find out the process or line of code causing the bottleneck. Fix it. Deploy code.

Watch in real time the performance improvement.

preview

Dependencies

  • Python 2.6 or greater
  • A Graphdat account

Installing

We recommend installing graphdat with pip:

pip install graphdat

but we support easy_install as well

How to integrate Graphdat with your application

To use the module, you need to wrap your WSGI application entry point with the supplied graphdat wrapper.

If you have a declared function endpoint then you can use the decorator:

from graphdat import WSGIWrapper
@WSGIWrapper
def application(environ, start_response { # your existing endpoint
	...
}

If not (if it is a function from a different module, or created using a factory for example) you can use this method:

application = framework.WSGIHandler() # your existing endpoint
from graphdat import WSGIWrapper
application = WSGIWrapper(application)

Graphdat will now graph all of the URLs of your application.

To add another level of integration, you can instrument your code with Graphdat to see deeper level code integration.

One level deeper

uWSGI

The only proviso with uWSGI is that is be started with threads enabled. E.g. (this command will start MoinMoin under uWSGI with threads enabled)

uwsgi --enable-threads --http :8080 --wsgi-file wiki/server/moin.wsgi

Links

  • Graphdat reference <http://www.graphdat.com/python>
  • Bug tracker <https://github.com/alphashack/graphdat-sdk-python/issues>
  • Browse source code <https://github.com/alphashack/graphdat-sdk-python>
  • Detailed changelog <https://github.com/alphashack/graphdat-sdk-python/commits/master>

Copyright and license

Copyright 2012 Alphashack

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

graphdat-sdk-python's People

Stargazers

 avatar

Watchers

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

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.