librelist archives

« back to archive

m2sh started, play with it

m2sh started, play with it

From:
Zed A. Shaw
Date:
2010-07-16 @ 08:12
I just put up the basic guts of the m2sh command line tool.  It uses
PyRepl, Storm ORM, and my Lamson arguments parsing library to implement
a command line tool with built-in readline capable shell.  I got it
wrapping most of the Mongrel2 sqlite3 database so you can try some stuff
out.

First, grab the latest fossil and make sure you've got a
tests/config.sqlite file to play with.  Probably want to do a:

make clean all

To get that right.  Next, do this:

cd examples/python
sudo easy_install pyrepl
sudo easy_install storm
sudo python setup.py install

Alright now you have the m2sh command.  It doesn't do much, but you can
play with it:

m2sh
m2> help

^D to quit. Now, try this:

cd ../..   # gets back to the mongrel2 source
m2sh dump -db tests/config.sqlite
m2sh
m2> dump -db tests/config.sqlite

So, this will be the start of the ops/management stuff for crafting
configs, managing servers, etc.  Take a look at the
examples/python/mongrel2/config/*.py file to see what's going on.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] m2sh started, play with it

From:
Anuj Dutta
Date:
2010-07-18 @ 19:30
Hello,

I have been trying to install m2sh shell but I keep getting the error:

*No eggs found in /tmp/easy_install-4jclKb/storm-0.16.0/egg-dist-tmp-j96Fwu
(setup script problem?)
*
Although, I could easily install storm on its own.

I am using a Mac OSX with Python 2.5.1.

Anuj
(@andhapp)


On 16 July 2010 09:12, Zed A. Shaw <zedshaw@zedshaw.com> wrote:

> I just put up the basic guts of the m2sh command line tool.  It uses
> PyRepl, Storm ORM, and my Lamson arguments parsing library to implement
> a command line tool with built-in readline capable shell.  I got it
> wrapping most of the Mongrel2 sqlite3 database so you can try some stuff
> out.
>
> First, grab the latest fossil and make sure you've got a
> tests/config.sqlite file to play with.  Probably want to do a:
>
> make clean all
>
> To get that right.  Next, do this:
>
> cd examples/python
> sudo easy_install pyrepl
> sudo easy_install storm
> sudo python setup.py install
>
> Alright now you have the m2sh command.  It doesn't do much, but you can
> play with it:
>
> m2sh
> m2> help
>
> ^D to quit. Now, try this:
>
> cd ../..   # gets back to the mongrel2 source
> m2sh dump -db tests/config.sqlite
> m2sh
> m2> dump -db tests/config.sqlite
>
> So, this will be the start of the ops/management stuff for crafting
> configs, managing servers, etc.  Take a look at the
> examples/python/mongrel2/config/*.py file to see what's going on.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
Anuj DUTTA

Re: [mongrel2] m2sh started, play with it

From:
Anuj Dutta
Date:
2010-07-19 @ 00:45
Thanks. Will get on it.

Anuj
(@andhapp)
------Original Message------
From: Zed A. Shaw
Sender: mongrel2@librelist.com
To: mongrel2@librelist.com
ReplyTo: mongrel2@librelist.com
Subject: Re: [mongrel2] m2sh started, play with it
Sent: 19 Jul 2010 00:56

On Sun, Jul 18, 2010 at 11:48:54PM +0000, Anuj Dutta wrote:
> Hey man,
> 
> If you could point me in the right direction, I would like to get involved.

Cool, I really need to write a contributor's page, but first thing, go
through the getting started docs and try out all the stuff:

http://mongrel2.org:6767/wiki?name=GettingStarted

Take notes and anything that seems odd or you think could be different,
then submit a ticket for it:

http://mongrel2.org:6767/reportlist

Next, take a look at some of the demos and try writing one, again if you
run into anythign that could be different, fire up a ticket or talk
about it on the list.

You can also work up language bindings for doing Mongrel2 handlers, or
help other people with theirs.  We've got PHP, C++, Python, and Ruby in
the works, which leaves quite a few languages on http://www.zeromq.org/
that can be implemented still.

Finally, putting it through its paces and finding bugs, submitting
patches, or offering to knock of a ticket is always a good thing.  If
you do something small then just shoot me a patch and I'll include it.
If it's bigger then I'll add you to the access list and you can push, or
I can pull from your own fossil repo.

Let me know what you end up doing.

-- 
Zed A. Shaw
http://zedshaw.com/


------------------

Re: [mongrel2] m2sh started, play with it

From:
Anuj Dutta
Date:
2010-07-18 @ 23:48
Hey man,

If you could point me in the right direction, I would like to get involved.

Thanks.

Anuj
(@andhapp)


------Original Message------
From: Zed A. Shaw
Sender: mongrel2@librelist.com
To: mongrel2@librelist.com
ReplyTo: mongrel2@librelist.com
Subject: Re: [mongrel2] m2sh started, play with it
Sent: 19 Jul 2010 00:43

On Sun, Jul 18, 2010 at 11:35:30PM +0100, Anuj Dutta wrote:
> On 18 July 2010 21:12, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
> It works fine if you install stuff manually. I installed everything manually
> and the shell works alright now.

Great, I'll try to clean up the install process more and make some
instructions.

-- 
Zed A. Shaw
http://zedshaw.com/


------------------

Re: [mongrel2] m2sh started, play with it

From:
Zed A. Shaw
Date:
2010-07-18 @ 23:56
On Sun, Jul 18, 2010 at 11:48:54PM +0000, Anuj Dutta wrote:
> Hey man,
> 
> If you could point me in the right direction, I would like to get involved.

Cool, I really need to write a contributor's page, but first thing, go
through the getting started docs and try out all the stuff:

http://mongrel2.org:6767/wiki?name=GettingStarted

Take notes and anything that seems odd or you think could be different,
then submit a ticket for it:

http://mongrel2.org:6767/reportlist

Next, take a look at some of the demos and try writing one, again if you
run into anythign that could be different, fire up a ticket or talk
about it on the list.

You can also work up language bindings for doing Mongrel2 handlers, or
help other people with theirs.  We've got PHP, C++, Python, and Ruby in
the works, which leaves quite a few languages on http://www.zeromq.org/
that can be implemented still.

Finally, putting it through its paces and finding bugs, submitting
patches, or offering to knock of a ticket is always a good thing.  If
you do something small then just shoot me a patch and I'll include it.
If it's bigger then I'll add you to the access list and you can push, or
I can pull from your own fossil repo.

Let me know what you end up doing.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] m2sh started, play with it

From:
Zed A. Shaw
Date:
2010-07-18 @ 20:12
On Sun, Jul 18, 2010 at 08:30:33PM +0100, Anuj Dutta wrote:
> Hello,
> 
> I have been trying to install m2sh shell but I keep getting the error:
> 
> *No eggs found in /tmp/easy_install-4jclKb/storm-0.16.0/egg-dist-tmp-j96Fwu
> (setup script problem?)
> *
> Although, I could easily install storm on its own.

Weird, why's it looking there.  I'd say install it manually for now.
Soon I'll have eggs and stuff.  Also, try pip, it seems to be more
robust.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] m2sh started, play with it

From:
Anuj Dutta
Date:
2010-07-18 @ 22:35
On 18 July 2010 21:12, Zed A. Shaw <zedshaw@zedshaw.com> wrote:

> On Sun, Jul 18, 2010 at 08:30:33PM +0100, Anuj Dutta wrote:
> > Hello,
> >
> > I have been trying to install m2sh shell but I keep getting the error:
> >
> > *No eggs found in
> /tmp/easy_install-4jclKb/storm-0.16.0/egg-dist-tmp-j96Fwu
> > (setup script problem?)
> > *
> > Although, I could easily install storm on its own.
>
> Weird, why's it looking there.  I'd say install it manually for now.
> Soon I'll have eggs and stuff.  Also, try pip, it seems to be more
> robust.
>
>
It works fine if you install stuff manually. I installed everything manually
and the shell works alright now.

Anuj
(@andhapp)

 --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
Anuj DUTTA

Re: [mongrel2] m2sh started, play with it

From:
Zed A. Shaw
Date:
2010-07-18 @ 23:43
On Sun, Jul 18, 2010 at 11:35:30PM +0100, Anuj Dutta wrote:
> On 18 July 2010 21:12, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
> It works fine if you install stuff manually. I installed everything manually
> and the shell works alright now.

Great, I'll try to clean up the install process more and make some
instructions.

-- 
Zed A. Shaw
http://zedshaw.com/