1+1chrphb-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_prepareUsage
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/chrphb/chrphb-friends.gitor from conda (not yet available)
$ conda install -c chrphb chrphb_friendsor from pypi
$ pip install chrphb_friendsDocumentation
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:
from chrphb_friends.core import Friendf1 = Friend('1','doo', 'john', 'john@doo.com', '00000000', 'linkedin', 'twitter')
f1from chrphb_friends.core import Repositoryrepo = Repository('friends_v1.db')
reporepo.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)