|
PyOGP
PyOGP is a Python project which aims to implement the mechanisms define in the Open Grid Protocol.
Featured IntroductionOGP stand for "Open Grid Protocol" and is worked on by the Architecture Working Group which was founded by Linden Lab and includes members of Linden Lab and the Second Life community. It's aim is to create a open and standardized protocol for running and interconnecting virtual worlds like Second Life. Componentspyogp consists at the moment of the following components:
All the components are Python eggs and can be found in the SVN repository. StatusThis is an experimental start of the project. Much will change and a lot will be added of course. Working right now is the capsserver and the login handler for the experimental Agent Domain by Linden Lab (although login seems to fail right now). How to use itInstalling the buildoutThere is a buildout available which includes all the components. Installing the buildout is probably the easiest way to get it up and running. To do this follow these steps:
tar zxf pyogp-0.0001.tgz
cd buildout
python bootstrap.py
bin/buildout Now the necessary scripts are generated and all the modules are configured. You can find an interpreter with all those modules in the bin directory:
$ bin/pyogp
>>> from pyogp.model.agent import Agent
>>> agent = Agent("mrtopf")
>>> agent
<pyogp.model.agent.Agent object at 0x3d6dd0>
>>>
Running the Caps ServerIf you installed the buildout like described above you should be able to start the caps server which is also located in the bin/ directory: $ bin/capsserver
Temporary file too old, not loading /tmp/capabilities.tmp
httpd starting up on ('0.0.0.0', 8080)
httpd starting up on ('127.0.0.1', 8080)
In another terminal you can then run the example caps script: bin/capstest This will tell the capsserver to grant a capability for the URL http://mrtopf.de. It will receive the capability for it which is a private random looking URL for it. The script will return this. If you use retrieve this e.g. via wget the capsserver will proxy this and return the contents of http://mrtopf.de, e.g. wget `bin/capstest` If you want to have a look at the actual scripts then look in your buildout here:
|