This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
## extradeco

### parametrized(flat_decorator)

A super-flatter decorator decorator!

One is supposed to decorate what would be your inner "wrapper" function in a decorator with
"parametrized". That "wrapper" can now be used as a paramterized decorator with extra parameters
whatever parameters it takes when decorating are passed along with the func object when the func itself
is called - "*args" and "**kwargs" arguments should be passed down in the call to the original `func`.

### Example of use:

Create a flat decorator which wants parameters by doing:

```
from extradeco import paremetrized

@parametrized
def ubberlog(func, loglevel, *args, **kw):
if loglevel > 2:
print ("doing things")
if loglevel > 1:
print("doing less things")
# Line that calls the original function directly on the decorator body
result = func(*args, **kw)
if loglevel:
print("function returned", result)
return result
```

And then, the new logger decorator is ready to be used like this:


```

@ubberlog(2)
def soma(a, b):
return a + b


@ubberlog(1)
def s1(a, b):
return a + b
```

### Warning
For now, the parameter names in the decorator cannot match any parameter name in the final decorated function.
It is advised that you prefix the parameter names in the decorator with somethign that won't be present in the decorated functions.
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
extradeco-0.1.1.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Jun 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting