espeed/bulbs — pull request #23 by Minjung (2012-01-26 21:15:09+00:00)
Title: Use urlparse

Use urlparse and extract connection data and username:password. Setting username and password parameters overrides parsed values.

This is nice to use with os.environ["NEO4J_REST_URL"] which is set on Heroku instances for you.
I'm using this, which uses the default "local" neo4j instance or the Heroku addon if its set:

```python
if ('NEO4J_REST_URL' in os.environ):
neo4jUrl = os.environ["NEO4J_REST_URL"]
else:
neo4jUrl = NEO4J_URI

class Model(object):
def __init__(self):
self.config = Config(neo4jUrl)
...
```

Waiting for 0.3 :P
Alejandro.