Usage:
======
use `tprofile.ProfileMeta' as the metaclass of handler subclass or base handler class.
Example:
..code::python
import tornado.web
from tprofile import ProfileMeta
def condition(self):
return True if self.get_argument('profile', None) == "1" else False
ProfileMeta.set_condition(condition)
class BaseHandler(tornado.web.RequestHandler):
__metaclass__ = ProfileMeta
class MainHandler(BaseHandler):
def get(self):
pass
======
use `tprofile.ProfileMeta' as the metaclass of handler subclass or base handler class.
Example:
..code::python
import tornado.web
from tprofile import ProfileMeta
def condition(self):
return True if self.get_argument('profile', None) == "1" else False
ProfileMeta.set_condition(condition)
class BaseHandler(tornado.web.RequestHandler):
__metaclass__ = ProfileMeta
class MainHandler(BaseHandler):
def get(self):
pass
Metadata
Release files for tprofile 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tprofile-0.0.16.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tprofile-0.0.16-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 10.2 kB
Release files / tprofile-0.0.16.tar.gz
| Download URL | tprofile-0.0.16.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
052c326c078e3f555a0a9269eb3d1b39393505fbe67bf4fc44b24bf1ddd24185
|
|
BLAKE2b-256 checksum How to use checksums |
291885e5415a3af2f5ffcc2079233e0c616bf4b95c81e2ac56eb00b131cf2c5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tprofile-0.0.16-py2.7.egg
| Download URL | tprofile-0.0.16-py2.7.egg |
|---|---|
| Size | 7.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f235b6e4015d3d26b7a94a402dcdd63ec5b1a0f32ef379a991e90d4965c40ec3
|
|
BLAKE2b-256 checksum How to use checksums |
d22f7bb9245cfc58c09a46d1d0533ce3661dbdfd1ae0e694311fb0eae0ab0964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |