Skip to main content

Decorator for retrying exec a method

Project description

Axe
========

[![Build Status](https://travis-ci.org/soasme/axe.svg?branch=master)](https://travis-ci.org/soasme/axe)

### What is Axe?

Axe is an extremely extendable web framework for Python based on `Werkzeug`. It help developer keep project easy to extend and test when project grows bigger and bigger.

* IoC

Unlike Flask, there is no **Thread-Local** variables like `flask.request`, `flask.g`.
All variable are injected into view function through function name inspired by `py.test fixture`.

* Concurrent

.

**Warning**: It's still experimental and has many buggy.

### Example

```python
from axe import Axe, jsonify
app = Axe()

@app.ext
def login(request):
token = request.headers['Authorization']
user = Account.get_from_token(token)
if not user:
abort(403)
return user

def index(login):
return jsonify({'id': login.id, 'expire': login.expire})

app.build({
'/': index
})

if __name__ == '__main__':
app.run()
```

### How to run tests?

Run All tests:

$ tox

Run single case:

$ py.test tests/test_basic.py -k test_get_index

### Where can I get help?

You can ask any question in [Github Issue](https://github.com/soasme/axe/issues) :)

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

Axe-0.0.1a.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file Axe-0.0.1a.tar.gz.

File metadata

  • Download URL: Axe-0.0.1a.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Axe-0.0.1a.tar.gz
Algorithm Hash digest
SHA256 a86c82b7ec6d61f3d7d0045466df9f65f4f8dfb879f91333a1cd72970630db2a
MD5 c0e622aab3b96afd6a0693e4e8d9a4ff
BLAKE2b-256 eb6c09c120ccb2a60d90a57d3afd27049c780956709c57a5236169949a633d56

See more details on using hashes here.

Supported by

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