Aspyct

A Python module that allows you to use aspect oriented programming with Python.
Download

Aspyct Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Antoine d'Otreppe
  • Publisher web site:

Aspyct Tags


Aspyct Description

A Python module that allows you to use aspect oriented programming with Python. Aspyct is a library that allows you to use aspect oriented programming with Python.It's easy to use and works transparently. This means that you can add aspects to existing softwares without modifying source files.These aspects may help doing a lot and miscellaneous things.This includes (but is, of course, not limited to): 1. debugging 2. user-interface enabling 3. security hole patching 4. various behavior modifications 5. generic programmingIt is easy to enable Aspyct in your project or on your machine. Simply add the library file (Aspyct.py) to project, or run installer for your computer.What is Aspect Oriented Programming ?AOP is the 'next gen' programming way. The evolution it brings to software building is similar to object oriented programming, it is just the next step.AOP helps you programming faster and easierThe best way to tell you what it is is giving you some links.Why should I use Aspyct ?There are several Python AOP modules. You may wonder why use Aspyct and not another one.Here are the main reasons for it:1. Aspyct is easy, really easy to use. it doesn't require large chunks of additional code to be enabled;2. Aspyct is powerful: it supports aspect classes, function advices, pointcut gathering and a lot more3. Aspyct runs transparently. This means that original software won't see any difference if you apply Aspyct to it;4. Aspyct team considers every user's wish as a potential good idea. So, if you need something, there are chances you get it.(Very) Easy to useAspyct is really easy to use.#1 Define your function:def sayHello(): print('Hello World !')#2 Define your advice:def advice(): print('Get ready to say hello !')#3 Apply advice to the functionAspyct.beforeCall(sayHello, advice)#4 Call your functionsayHello()You're done !Output will beGet ready to say hello !Hello World !Of course, this is a basic operation. Requirements: · Python What's New in This Release: · addition of an atAvoid join point · Aspyct now takes advantage of decorators · Aspyct is now a full package instead of a single module. · addition of the "light" module. type "help('Aspyct.light')" for more infos. It's still a beta version.


Aspyct Related Software