-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIPFS_LNS.py
More file actions
35 lines (25 loc) · 1.34 KB
/
IPFS_LNS.py
File metadata and controls
35 lines (25 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from ipfs_lns import (
Node,
save_contacts,
lookup_contact,
add_contact,
get_contact,
remove_contact
)
from termcolor import colored
print(colored("IPFS_LNS: DEPRECATED: The IPFS_LNS module has been renamed to ipfs_lns to accord with PEP 8 naming conventions.", "yellow"))
def SaveContacts():
print(colored("IPFS_LNS: DEPRECATED: This function (SaveContacts) has been renamed to save_contacts to accord with PEP 8 naming conventions.", "yellow"))
return save_contacts()
def LookupContact(name):
print(colored("IPFS_LNS: DEPRECATED: This function (LookupContact) has been renamed to lookup_contact to accord with PEP 8 naming conventions.", "yellow"))
return lookup_contact(name)
def AddContact(id, name):
print(colored("IPFS_LNS: DEPRECATED: This function (AddContact) has been renamed to add_contact to accord with PEP 8 naming conventions.", "yellow"))
return add_contact(id, name)
def GetContact(id):
print(colored("IPFS_LNS: DEPRECATED: This function (GetContact) has been renamed to get_contact to accord with PEP 8 naming conventions.", "yellow"))
return get_contact(id)
def RemoveContact(id, name):
print(colored("IPFS_LNS: DEPRECATED: This function (RemoveContact) has been renamed to remove_contact to accord with PEP 8 naming conventions.", "yellow"))
return remove_contact(id, name)