Giter VIP home page Giter VIP logo

phone-book's Introduction

phone-book

API Documentation / Journal can be found in ./docs/index.html

A simple Python module that's designed to take a set of personal data and store it in various formats. It has a command-line tool that can be run from the root of this directory

Requires: Python 2.7
Currently supports serialisation in:
  • JSON
  • CSV

System to support additonal file formats is easily extendable.

Usage

Help

$ python phonebook -h

Note that you can query a list of the supported file types through the help command

Add record (Name, Address, Phone Number)

$ python phonebook pbook.json -a "Michael Mason" "109 Gregory Drive" "+61400702089"

Remove record

Delete record using it's number ID

$ python phonebook pbook.json -rm 1

List records

$ python phonebook pbook.json -ls

Filter records

$ python phonebook pbook.json -f name=*Mason
$ python phonebook pbook.json -f address="??? Gregory Drive"
$ python phonebook pbook.json -f number=+[1-6]1400*

Publish records

Takes existing records and formats them into a fancy-lookin', human readable and filterable HTML table

$ python phonebook pbook.json -p

Convert records

$ python phonebook pbook.json -c pbook.csv

Query supported file types

$ python phonebook pbook.json -q

phone-book's People

Contributors

micklemacklemore avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.