You can to use pip to install last source:
$ pip install git+git://github.com/joeljames/chat-message-parser.git
from message_parsers.parsers import Parser
>>> Parser("@chris you around?").to_json() #Parse mentions
'{"mentions": ["chris"]}'
>>> Parser("@chris you around?").to_json() #Parse mentions
'{"emoticons": ["megusta", "coffee"]}'
>>> Parser("Olympics are starting soon; http://www.nbcolympics.com").to_json() #Parse link and get the page title
'{"links": [{"title": "Welcome to Python.org", "url": "http://python.org"}]}'
- Setup Virtualenv
Install development requirements. It is highly recommended that you use a virtualenv, and activate the virtualenv before installing the requirements.
-
Clone Project
$ git clone https://github.com/joeljames/chat-message-parser.git
-
Install Dependency
$ pip install -r requirements.txt
-
Install Dependency
$ pip install -r requirements.txt
-
Run Unit Test:
$ make unit_test
-
Run Functional Test:
$ make functional_test
-
Run Unit and Functional Test Using Tox (Test the package in python 2.7 and 3.4):
$ tox