We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents7b56d41 +1e3ec0b commita22c253Copy full SHA for a22c253
.gitignore
@@ -112,7 +112,6 @@ venv.bak/
112
**/.DS_Store
113
.vscode/
114
.leveldb/
115
-.pytest_cache/
116
repo.db
117
NDN_Repo.egg-info/
118
docs/src/configuration.rst
@@ -111,4 +111,5 @@ To run ndn-python-repo with systemd on Linux, perform the following steps:
111
#. Examine logs::
- $ sudo journalctl -u ndn-python-repo.service
+ $ sudo journalctl -u ndn-python-repo.service
+
docs/src/misc_pkgs/client_side.rst
@@ -10,7 +10,7 @@ There are four parts:
10
11
#. **PutfileClient**: insert files into the repo.
12
#. **GetfileClient**: get files from the repo.
13
-#. **DeleteClient**:detele data packets from the repo.
+#. **DeleteClient**:delete data packets from the repo.
14
#. **CommandChecker**: check process status from the repo.
15
16
The example programs in:mod:`examples/` illustrate how to use these packages.
docs/src/misc_pkgs/pub_sub.rst
@@ -21,7 +21,7 @@ Process
21
22
Under the hood the ``PubSub`` module transmits a series of Interest and Data packets:
23
24
-1. The subscriber calls ``subscribe(topic, cb)``. This makes thesubcriber listen on
+1. The subscriber calls ``subscribe(topic, cb)``. This makes thesubscriber listen on
25
``"/<topic>/notify"``.
26
27
2. The publisher invokes ``publish(topic, msg)``. This method sends an Interest with name
docs/src/specification/security.rst
@@ -20,7 +20,7 @@ Required Settings
20
..warning::
Unfortunately current implementation does not follow these requirements by default.
- This may cause some potentialvulnerbilities. Will be fixed in future versions.
+ This may cause some potentialvulnerabilities. Will be fixed in future versions.
Recommended Settings
@@ -31,7 +31,7 @@ Recommended Settings
31
32
- Since there is no replay attack, the Repo does not have to remember the list of ``SignatureNonce``.
33
34
-- If the Repo is provided as a network service, thecertifcate obtained from the network provider should be used.
+- If the Repo is provided as a network service, thecertificate obtained from the network provider should be used.
35
In this case, the prefix registration command and repo's publication data are signed using the same key.
36
37
- For example, if one employs a Repo as a public service of NDN testbed,
examples/command_checker.py
@@ -6,11 +6,9 @@
6
"""
7
8
importargparse
9
-importasyncioasaio
importlogging
fromndn.appimportNDNApp
fromndn.encodingimportName
-fromndn.securityimportKeychainDigest
fromndn_python_repo.clientsimportCommandChecker
examples/delfile.py
fromndn_python_repo.clientsimportDeleteClient
@@ -61,7 +59,7 @@ def main():
61
59
# process default values
62
60
start_block_id=int(args.start_block_id)ifargs.start_block_idelseNone
63
end_block_id=int(args.end_block_id)ifargs.end_block_idelseNone
64
-ifargs.register_prefix==None:
+ifargs.register_prefixisNone:
65
args.register_prefix=args.name_at_repo
66
args.register_prefix=Name.from_str(args.register_prefix)
67
examples/getfile.py
fromndn_python_repo.clientsimportGetfileClient
examples/leavesync.py
@@ -1,11 +1,9 @@
1
-#!/usr/bin/env python3
2
3
4
5
fromndn.securityimportKeychainDigest
fromndn_python_repo.clientsimportSyncClient
-importuuid
asyncdefrun_leave_sync_client(app:NDNApp,**kwargs):
client=SyncClient(app=app,prefix=kwargs['client_prefix'],repo_name=kwargs['repo_name'])
examples/publisher.py
@@ -22,7 +22,7 @@ async def run_publisher(app: NDNApp, publisher_prefix: NonStrictName):
msg=f'pubsub message generated at{str(datetime.datetime.now())}'.encode()
awaitpb.publish(topic,msg)
-# wait for msg to be fetched bysubsciber
+# wait for msg to be fetched bysubscriber
awaitaio.sleep(10)
app.shutdown()
28