Skip to main content

Repository Code to Manage My Friends

Project description

chrphb-friends

This file will become your README and also the index of your documentation.

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

$ 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
2
from chrphb_friends.core import Friend
f1 = Friend('1','doo', 'john', 'john@doo.com', '00000000', 'linkedin', 'twitter')
f1
Friend(id='1', family_name='doo', first_name='john', email='john@doo.com', phone='00000000', linkedin='linkedin', twitter='twitter')
from chrphb_friends.core import Repository
repo = Repository('friends_v1.db')
repo
Repository SQLLite at friends_v1.db
repo.add('doo', 'john', 'john@doo.com', '0000000000', 'linkedin', 'twitter')

Now, let’s retrieve my friends:

repo.friends()
[Friend(id='e4977cf1-cc3c-4425-83c1-e25b98891896', family_name='doo', first_name='john', email='john@doo.com', phone='0000000000', linkedin='linkedin', twitter='twitter'),
 Friend(id='868dff57-6db3-43e6-a10f-d89353a833b2', family_name='doo', first_name='john', email='john@doo.com', phone='0000000000', linkedin='linkedin', twitter='twitter')]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrphb_friends-0.0.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrphb_friends-0.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file chrphb_friends-0.0.1.tar.gz.

File metadata

  • Download URL: chrphb_friends-0.0.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for chrphb_friends-0.0.1.tar.gz
Algorithm Hash digest
SHA256 abff61e82ccd38b3af3dfaed9a709cb83533c8cc390c4b824e95a9e0016fe022
MD5 5d093b8e902d4c4aca6c74bfce817940
BLAKE2b-256 da722afe7fe878f95bc0063f2566a6da3ab5fd7ae588d63a4e1a519c1c85845b

See more details on using hashes here.

File details

Details for the file chrphb_friends-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: chrphb_friends-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for chrphb_friends-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 239dab99245c3ef99dca6a42c8b6a5e08094cd7338f158677bad2fc42851c824
MD5 18e8634f8e11a6277d35a3dfb8d147bf
BLAKE2b-256 13aec3a25f1456604f088dfd800d12d2b219fb2f7d06a81672dacb9a25226b49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page