Skip to main content
https://www.whatap.io/img/common/whatap_logo_re.svg

WhaTap for python

  • Whatap allows for application performance monitoring.

  • Support: WSGI server application & Batch job & Specific method profiling.

  • Python version : 2.7 + & 3.3+

Installation

$ pip install whatap-python

Application Monitoring

Supported web frameworks such as Django, Flask, Bottle, Cherrypy, Tornado and WSGI Server Application.

Configuration

$ export WHATAP_HOME=[PATH]
$ whatap-setting-config --host [HOST_ADDR]
                        --license [LICENSE_KEY]
                        --app_name [APPLICATION_NAME]
                        --app_process_name [APP_PROCESS_NAME]

Usage

$ whatap-start-agent [YOUR_APPLICATION_START_COMMAND]

...

Unsupported web frameworks WSGI

If you want WSGI Application monitoring, include the @register_app decorator.

import whatap

@whatap.register_app
def simple_app(environ, start_response):
"""Simplest possible application object"""
    status = '200 OK'
    response_headers = [('Content-type', 'text/plain')]
    start_response(status, response_headers)
    return ['Hello world!\n']

Method Profiling

If you want method profiling, include the @method_profiling decorator.

from whatap import method_profiling

@method_profiling
def db_connection():
    db.connect('mysql:// ..')

@method_profiling
def query():
    db.select('select * from ..')

  ....

Batch Monitoring

for Batch job.

Configuration

Set Environment valiable configuration.

$ export WHATAP_BATCH_HOME=[PATH]
$ cat >> $WHATAP_BATCH_HOME/whatap.conf << EOF
license=[LICENSE_KEY]
whatap.server.host=[HOST_ADDR]

app_name=batch
app_process_name=batch
EOF

Usage

Start bach agent.

$ whatap-start-batch

Example code

from whatap import method_profiling

class Command(BaseCommand):

    @batch_profiling
    def handle(self, *args, **options):
        // batch code..
        ....

Restart

Your Application restart.

Download files

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

Source Distribution

whatap_python-0.0.14.tar.gz (48.6 MB view details)

Uploaded Source

File details

Details for the file whatap_python-0.0.14.tar.gz.

File metadata

  • Download URL: whatap_python-0.0.14.tar.gz
  • Upload date:
  • Size: 48.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for whatap_python-0.0.14.tar.gz
Algorithm Hash digest
SHA256 2658a65ac758c5315fe13cd598cdfb749dcad579b497c2fc33ffccd5bd9c50c7
MD5 546fbde13cb9b7c3af51f9a6bf8cf292
BLAKE2b-256 66b900346a9b82e6e1c1a4fd1f8fc5926db4882212aac96408995f534c1ad1be

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.2

1 file

2.0.1

1 file

1.9.2.post1

1 file

1.9.2

1 file

1.9.1

1 file

1.9.0

1 file

1.8.14

1 file

1.8.13

1 file

1.8.12

1 file

1.8.11.post0

1 file

1.8.11

1 file

1.8.10

1 file

1.8.9.post0

1 file

1.8.8

1 file

1.8.7

1 file

1.8.6

1 file

1.8.5

1 file

1.8.4

1 file

1.8.3

1 file

1.8.2

1 file

1.8.1

1 file

1.8.0

1 file

1.7.9

1 file

1.7.8

1 file

1.7.7

1 file

1.7.6

1 file

1.7.5

1 file

1.7.4

1 file

1.7.3

1 file

1.7.2

1 file

1.7.1

1 file

1.7.0

1 file

1.6.10

1 file

1.6.9

1 file

1.6.8

1 file

1.6.7

1 file

1.6.6

1 file

1.6.5

1 file

1.6.4

1 file

1.6.3

1 file

1.6.2

1 file

1.6.1

1 file

1.6.0

1 file

1.5.9

1 file

1.5.8

1 file

1.5.7

1 file

1.5.6

1 file

1.5.5

1 file

1.5.4

1 file

1.5.3

1 file

1.5.2

1 file

1.5.1

1 file

1.5.0

1 file

1.4.9

1 file

1.4.8

1 file

1.4.7

1 file

1.4.6

1 file

1.4.5

1 file

1.4.4

1 file

1.4.3

1 file

1.4.2

1 file

1.4.1

1 file

1.4.0

1 file

1.3.9

1 file

1.3.8

1 file

1.3.7

1 file

1.3.6

1 file

1.3.5

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.9

1 file

1.1.8

1 file

1.1.7

1 file

1.1.6

1 file

1.1.5

1 file

1.1.4

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.9

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.1

1 file

1.0.0

1 file

0.3.40

1 file

0.3.39

1 file

0.3.38

1 file

0.3.37

1 file

0.3.36

1 file

0.3.35

1 file

0.1.120

1 file

0.1.118

1 file

0.1.117

1 file

0.1.116

1 file

0.1.115

1 file

0.1.113

1 file

0.1.112

1 file

0.1.111

1 file

0.1.110

1 file

0.1.109

1 file

0.1.108

1 file

0.1.107

1 file

0.1.106

1 file

0.1.105

1 file

0.1.104

1 file

0.1.103

1 file

0.1.102

1 file

0.1.101

1 file

0.1.100

1 file

0.1.99

1 file

0.1.96

1 file

0.1.95

1 file

0.1.94

1 file

0.1.93

1 file

0.1.92

1 file

0.1.91

1 file

0.1.90

1 file

0.1.89

1 file

0.1.88

1 file

0.1.87

1 file

0.1.86

1 file

0.1.85

1 file

0.1.84

1 file

0.1.83

1 file

0.1.82

1 file

0.1.81

1 file

0.1.80

1 file

0.1.75

1 file

0.1.74

1 file

0.1.73

1 file

0.1.72

1 file

0.1.71

1 file

0.1.70

1 file

0.1.69

1 file

0.1.68

1 file

0.1.67

1 file

0.1.66

1 file

0.1.65

1 file

0.1.64

1 file

0.1.63

1 file

0.1.62

1 file

0.1.61

1 file

0.1.60

1 file

0.1.59

1 file

0.1.58

1 file

0.1.57

1 file

0.1.56

1 file

0.1.55

1 file

0.1.54

1 file

0.1.53

1 file

0.1.52

1 file

0.1.51

1 file

0.1.50

1 file

0.1.49

1 file

0.1.48

1 file

0.1.43

1 file

0.1.42

1 file

0.1.41

1 file

0.0.43

1 file

0.0.42

1 file

0.0.41

1 file

0.0.34

1 file

0.0.33

1 file

0.0.32

1 file

0.0.31

1 file

0.0.29

1 file

0.0.28

1 file

0.0.27

1 file

0.0.26

1 file

0.0.25

1 file

0.0.24

1 file

0.0.23

1 file

0.0.22

1 file

0.0.21

1 file

0.0.19

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

This release

0.0.14 This release

1 file

0.0.13

1 file

0.0.12

1 file

0.0.11

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page