brunotavares.net: ScrapBook

Notes. tech and a few thoughs

Entries Tagged ‘python’:

Quick http server for static files ( for development )

If you have python installed, change to your static file directory and $ cd /files/html/ $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 … This will start an http server on port 8000 that serves all files in the current directory. All the debug is written to console including incomming requests and the [...]

Tags:

Leave a Comment

svn and python

I still use svn for some projects, some of them are python. Python pre-compiles the python files, so, the first time i run one of this projects i end up with a bunch of .pyc files that i don’t want to add to the repository. Since svn doesn’t know this files the svn status generates [...]

Tags:

Leave a Comment

Isolated Python environments.

I’ve a lot of code that depends on different versions of the same library, its quite hard to maintain the different versions installed in their specific dirs along with all their dependencies without tainting anything else. To be able to run all of this code in one machine i’ve to make a lot of manipulation [...]

Tags:

Leave a Comment