Skip to content

joeljames/chat-message-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

You can to use pip to install last source:

$ pip install git+git://github.com/joeljames/chat-message-parser.git

Usage

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"}]}'

Set Up Development Environment

  1. Setup Virtualenv

Install development requirements. It is highly recommended that you use a virtualenv, and activate the virtualenv before installing the requirements.

  1. Clone Project

    $ git clone https://github.com/joeljames/chat-message-parser.git
  2. Install Dependency

    $ pip install -r requirements.txt

Test & Coverage

  1. Install Dependency

    $ pip install -r requirements.txt
  2. Run Unit Test:

    $ make unit_test
  3. Run Functional Test:

    $ make functional_test
  4. Run Unit and Functional Test Using Tox (Test the package in python 2.7 and 3.4):

    $ tox

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published