chrphb-friends

Repository Code to Manage My Friends

This library will enable to manage a list of friends, relatives, contacts.

Developer Guide

If you are new to using nbdev here are some useful pointers to get you started.

Install chrphb_friends in Development mode

# make sure chrphb_friends package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to chrphb_friends
$ nbdev_prepare

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/chrphb/chrphb-friends.git

or from conda (not yet available)

$ conda install -c chrphb chrphb_friends

or from pypi

$ pip install chrphb_friends

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

How to use

Fill me in please! Don’t forget code examples:

1+1
from chrphb_friends.core import Friend
f1 = Friend('1','doo', 'john', 'john@doo.com', '00000000', 'linkedin', 'twitter')
f1
from chrphb_friends.core import Repository
repo = Repository('friends_v1.db')
repo
repo.add('doo', 'john', 'john@doo.com', '0000000000', 'linkedin', 'twitter')

Now, let’s retrieve my friends:

repo.friends()
repo.add_obj(f1)

Let’s remove the previous object.

repo.remove_obj(f1)