Refactor the code to make it comply with PEP-8 standards:Convert all class definitions to CamelCase style.

(issue 37)
This commit is contained in:
Liu Zhicong
2023-08-23 11:19:16 -07:00
parent 23963adc6e
commit 5454009e7b
21 changed files with 601 additions and 603 deletions
+2 -1
View File
@@ -1 +1,2 @@
from .cid import content_id
from .cid import ContentId
from .ndn_client import NDN_Client
+2 -1
View File
@@ -1,8 +1,9 @@
class content_id:
class ContentId:
def __init__(self) -> None:
pass
@staticmethod
def create_from_str(cid_str:str):
pass
+4 -4
View File
@@ -1,13 +1,13 @@
from .cid import content_id
from .cid import ContentId
class ndn_get_task:
class NDN_GetTask:
def __init__(self) -> None:
pass
class ndn_client:
class NDN_Client:
def __init__(self):
pass
def get_file(cid:content_id,target_path:str,urls:{}=None,options:{}=None):
def get_file(self,cid:ContentId,target_path:str,urls:{}=None,options:{}=None):
pass