File tree Expand file tree Collapse file tree 5 files changed +17
-179
lines changed Expand file tree Collapse file tree 5 files changed +17
-179
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ Simply running Skyhook with no arguments gives the user a list of available comm
29
29
```
30
30
31
31
# Requirements
32
- The only requirement for running Skyhook is the ipfs-api module for Python 3, which can be installed by running:
32
+ The only requirement for running Skyhook are the ipfs-api and skyhookfilecrypt modules for Python 3, which can be installed by running:
33
33
34
34
```
35
- pip3 install ipfs-api
35
+ pip3 install ipfs-api skyhookfilecrypt
36
36
```
37
37
38
38
or
39
39
40
40
```
41
- pip3 install --user ipfs-api
41
+ pip3 install --user ipfs-api skyhookfilecrypt
42
42
```
43
43
44
44
# Roadmap
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -119,7 +119,4 @@ def deleteItem(fileHash):
119
119
connection .commit ()
120
120
return (0 )
121
121
except :
122
- return (2 )
123
-
124
- def cleanUp (filePath ):
125
- os .remove (filePath )
122
+ return (2 )
Original file line number Diff line number Diff line change @@ -117,3 +117,4 @@ if __name__ == "__main__":
117
117
target = str (sys .argv [2 ])
118
118
119
119
main (command , target )
120
+
Original file line number Diff line number Diff line change 1
1
try :
2
2
import ipfsApi
3
3
except :
4
- print ("Module ipfs-api not installed" )
4
+ print ("[!] Module ipfs-api not installed" )
5
5
exit ()
6
6
7
- import random , string
7
+ try :
8
+ from skyhookfilecrypt import *
9
+ except :
10
+ print ("[!] Module skyhookfilecrypt not installed" )
11
+ exit ()
12
+
13
+ import random , string , os
8
14
from datetime import datetime
9
- from crypto import *
10
- from db import *
11
15
from config import *
16
+ from db import *
12
17
13
18
peer = ipfsApi .Client (host , port )
14
19
20
+ def cleanUp (filePath ):
21
+ os .remove (filePath )
22
+
15
23
def getRandomString ():
16
24
return ("" .join (random .choice (string .ascii_letters + string .digits ) for i in range (32 )))
17
25
You can’t perform that action at this time.
0 commit comments