Skip to content

Repository containing modules for parsing T-Mobile phone bills, cleaning and organizing the data, and visualizing connections via d3.js

License

Notifications You must be signed in to change notification settings

kurtrm/phone_network_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Communication Network Graph

April 23, 2018 To do: Learned about measures of centrality:

  • degree centrality
  • betweenness_centrality

Also need to add breadth first traversal and perhaps others.

See the visualization here.

Note: I moved on to a different project before correcting the jitter in the D3 animation. I'll revisit this in the future.


Description

Build Status Coverage Status

Version: 1.0

Module that parses T-Mobile phone bills, cleans the data, and creates a visualization using d3.js.

  • Provides a parser that uses PyPDF2 to extract data from T-Mobile phone bills and puts them into a dictionary.
  • A crude implementation of a labeled property graph data structure.
  • A rudimentary visualization of the network graph using d3.js, as well as jupyter notebooks used for data cleaning and manipulation.

Authors


Dependencies


  • PyPDF2
  • Pandas
  • Numpy

Getting Started


Prerequisites
Installation

First, clone the project repo from Github. Then, change directories into the cloned repository. To accomplish this, execute these commands:

$ git clone https://github.com/kurtrm/phone_network_graph.git

$ cd phone_network_graph

Now now that you have cloned your repo and changed directories into the project, create a virtual environment named "ENV", and install the project requirements into your VE.

$ python3 -m venv ENV

$ source ENV/bin/activate

$ pip install -e .

$ pip install -e .[testing]

Test Suite


Running Tests

This application uses pytest as a testing suite. To run tests, run:

$ pytest

To view test coverage, run:

$ pytest --cov

Test Files

The testing files for this project are:

File Name Description
./tests/test_labeled_property_graph.py Test labeled property graph comprehensively.
./tests/test_parser.py Test parser to ensure we are getting expected values. Many tests target assumptions, not necessarily code.
./tests/test_refactored_lpg.py Test refactored labeled property graph.

Development Tools


  • python - programming language

License


This project is licensed under MIT License - see the LICENSE.md file for details.

Acknowledgements


  • Coffee

This README was generated using writeme.

About

Repository containing modules for parsing T-Mobile phone bills, cleaning and organizing the data, and visualizing connections via d3.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published