librelist archives

« back to archive

Creating a portable flask

Creating a portable flask

From:
Sayth Renshaw
Date:
2013-01-22 @ 22:27
Is there any advice you could offer regarding making a portable flask
environment for a usb drive.

Should I use http://www.portablepython.com/ or pypy
http://pypy.org/download.html as my base?

What packages woul i need to install beside flask to make a good complete
environment. Would there be
a good little editor to use as part of install?

I want to do this to learn flask as I often get opportunity at work but
canot alter work environment.

Thanks

Sayth

Re: [flask] Creating a portable flask

From:
Sean Davis
Date:
2013-01-22 @ 22:37
Have you considered using virtualenv?

On Tue, Jan 22, 2013 at 5:27 PM, Sayth Renshaw <flebber.crue@gmail.com> wrote:
> Is there any advice you could offer regarding making a portable flask
> environment for a usb drive.
>
> Should I use http://www.portablepython.com/ or pypy
> http://pypy.org/download.html as my base?
>
> What packages woul i need to install beside flask to make a good complete
> environment. Would there be
> a good little editor to use as part of install?
>
> I want to do this to learn flask as I often get opportunity at work but
> canot alter work environment.
>
> Thanks
>
> Sayth

Re: Creating a portable flask

From:
Sayth Renshaw
Date:
2013-01-22 @ 22:55
I can't modify my work computers though it must run from a USB .

Sayth

On Wednesday, January 23, 2013, Sean Davis wrote:

> Have you considered using virtualenv?
>
> On Tue, Jan 22, 2013 at 5:27 PM, Sayth Renshaw 
<flebber.crue@gmail.com<javascript:;>>
> wrote:
> > Is there any advice you could offer regarding making a portable flask
> > environment for a usb drive.
> >
> > Should I use http://www.portablepython.com/ or pypy
> > http://pypy.org/download.html as my base?
> >
> > What packages woul i need to install beside flask to make a good complete
> > environment. Would there be
> > a good little editor to use as part of install?
> >
> > I want to do this to learn flask as I often get opportunity at work but
> > canot alter work environment.
> >
> > Thanks
> >
> > Sayth
>

Re: [flask] Creating a portable flask

From:
Jack Pearkes
Date:
2013-01-22 @ 22:53
I use Vagrant for my Flask apps, and have a VagrantFile and simple
provisioning script to make it easy.

Throw these files (https://gist.github.com/2066517) in the root of your
project and run:

$ vagrant up

You'll need to install your dependencies via pip once inside the VM. Any
native dependencies can be added to the provision.sh file.

Jack


On Tue, Jan 22, 2013 at 2:37 PM, Sean Davis <sdavis2@mail.nih.gov> wrote:

> Have you considered using virtualenv?
>
> On Tue, Jan 22, 2013 at 5:27 PM, Sayth Renshaw <flebber.crue@gmail.com>
> wrote:
> > Is there any advice you could offer regarding making a portable flask
> > environment for a usb drive.
> >
> > Should I use http://www.portablepython.com/ or pypy
> > http://pypy.org/download.html as my base?
> >
> > What packages woul i need to install beside flask to make a good complete
> > environment. Would there be
> > a good little editor to use as part of install?
> >
> > I want to do this to learn flask as I often get opportunity at work but
> > canot alter work environment.
> >
> > Thanks
> >
> > Sayth
>

Re: Creating a portable flask

From:
Sayth Renshaw
Date:
2013-01-22 @ 23:34
On Wednesday, January 23, 2013, Jack Pearkes wrote:

> I use Vagrant for my Flask apps, and have a VagrantFile and simple
> provisioning script to make it easy.
>
> Throw these files (https://gist.github.com/2066517) in the root of your
> project and run:
>
> $ vagrant up
>
> You'll need to install your dependencies via pip once inside the VM. Any
> native dependencies can be added to the provision.sh file.
>
> Jack
>
>
> On Tue, Jan 22, 2013 at 2:37 PM, Sean Davis wrote:
>
>> Have you considered using virtualenv?
>>
>> On Tue, Jan 22, 2013 at 5:27 PM, Sayth Renshaw wrote:
>> > Is there any advice you could offer regarding making a portable flask
>> > environment for a usb drive.
>> >
>> > Should I use http://www.portablepython.com/ or pypy
>> > http://pypy.org/download.html as my base?
>> >
>> > What packages woul i need to install beside flask to make a good
>> complete
>> > environment. Would there be
>> > a good little editor to use as part of install?
>> >
>> > I want to do this to learn flask as I often get opportunity at work but
>> > canot alter work environment.
>> >
>> > Thanks
>> >
>> > Sayth
>>
>
>  Thanks will have a look at this when I get home

Sayth

Re: [flask] Re: Creating a portable flask

From:
Kates Gasis
Date:
2013-01-22 @ 23:40
I once did something similar. sourceforge.net/projects/themycubevault

Packages as desktop app that runs directly in usb. No autoplay, though.
On Jan 23, 2013 7:36 AM, "Sayth Renshaw" <flebber.crue@gmail.com> wrote:

>
>
>
>
> On Wednesday, January 23, 2013, Jack Pearkes wrote:
>
>> I use Vagrant for my Flask apps, and have a VagrantFile and simple
>> provisioning script to make it easy.
>>
>> Throw these files (https://gist.github.com/2066517) in the root of your
>> project and run:
>>
>> $ vagrant up
>>
>> You'll need to install your dependencies via pip once inside the VM. Any
>> native dependencies can be added to the provision.sh file.
>>
>> Jack
>>
>>
>> On Tue, Jan 22, 2013 at 2:37 PM, Sean Davis wrote:
>>
>>> Have you considered using virtualenv?
>>>
>>> On Tue, Jan 22, 2013 at 5:27 PM, Sayth Renshaw wrote:
>>> > Is there any advice you could offer regarding making a portable flask
>>> > environment for a usb drive.
>>> >
>>> > Should I use http://www.portablepython.com/ or pypy
>>> > http://pypy.org/download.html as my base?
>>> >
>>> > What packages woul i need to install beside flask to make a good
>>> complete
>>> > environment. Would there be
>>> > a good little editor to use as part of install?
>>> >
>>> > I want to do this to learn flask as I often get opportunity at work but
>>> > canot alter work environment.
>>> >
>>> > Thanks
>>> >
>>> > Sayth
>>>
>>
>>  Thanks will have a look at this when I get home
>
> Sayth
>

Re: [flask] Creating a portable flask

From:
Rafael Martins
Date:
2013-01-23 @ 04:31
On Tue, Jan 22, 2013 at 8:53 PM, Jack Pearkes <jackpearkes@gmail.com> wrote:
> I use Vagrant for my Flask apps, and have a VagrantFile and simple
> provisioning script to make it easy.
>
> Throw these files (https://gist.github.com/2066517) in the root of your
> project and run:
>
> $ vagrant up
>
> You'll need to install your dependencies via pip once inside the VM. Any
> native dependencies can be added to the provision.sh file.
>
> Jack

You shouldn't use valid ip addresses for your vagrant machines!
33.0.0.0/8 is a valid ipv4 block, owned by 'DoD Network Information
Center': http://whois.arin.net/rest/net/NET-33-0-0-0-1

You can't just pick random ip addresses, even using :hostonly! Use the
private address blocks:
http://en.wikipedia.org/wiki/IP_address#IPv4_private_addresses

Regards

--
Rafael Goncalves Martins
http://rafaelmartins.eng.br/

Re: [flask] Creating a portable flask

From:
Jack Pearkes
Date:
2013-01-23 @ 05:50
Rafael,

I chose to use 33.* because it was a default in Vagrant prior to Vagrant
being able to detect if the host only network in the virtual machine
clashed with your router's subnet. Pretty sure that was chosen because it
was unlikely the DoD would ever use the IP.

You're right, though. Now that it's supported in Vagrant I should probably
change my habits. :)

Jack




On Tue, Jan 22, 2013 at 8:31 PM, Rafael Martins <rafael@rafaelmartins.eng.br
> wrote:

> On Tue, Jan 22, 2013 at 8:53 PM, Jack Pearkes <jackpearkes@gmail.com>
> wrote:
> > I use Vagrant for my Flask apps, and have a VagrantFile and simple
> > provisioning script to make it easy.
> >
> > Throw these files (https://gist.github.com/2066517) in the root of your
> > project and run:
> >
> > $ vagrant up
> >
> > You'll need to install your dependencies via pip once inside the VM. Any
> > native dependencies can be added to the provision.sh file.
> >
> > Jack
>
> You shouldn't use valid ip addresses for your vagrant machines!
> 33.0.0.0/8 is a valid ipv4 block, owned by 'DoD Network Information
> Center': http://whois.arin.net/rest/net/NET-33-0-0-0-1
>
> You can't just pick random ip addresses, even using :hostonly! Use the
> private address blocks:
> http://en.wikipedia.org/wiki/IP_address#IPv4_private_addresses
>
> Regards
>
> --
> Rafael Goncalves Martins
> http://rafaelmartins.eng.br/
>

Re: [flask] Creating a portable flask

From:
Mateusz Łapsa-Malawski
Date:
2013-01-22 @ 22:37
What about virtual machine with Ubuntu installed? Virtualbox is free. You 
can nicely wrap it using vagrant.

https://www.virtualbox.org
http://www.vagrantup.com

Programming in Python is way more comfortable on Unix machine :)

--  
Mateusz Łapsa-Malawski


On Tuesday, January 22, 2013 at 10:27 PM, Sayth Renshaw wrote:

> Is there any advice you could offer regarding making a portable flask 
environment for a usb drive.
>  
> Should I use http://www.portablepython.com/ or pypy 
http://pypy.org/download.html as my base?  
>  
> What packages woul i need to install beside flask to make a good 
complete environment. Would there be  
> a good little editor to use as part of install?
>  
> I want to do this to learn flask as I often get opportunity at work but 
canot alter work environment.  
>  
> Thanks
>  
> Sayth