|
__init__(self,
username,
pubkey,
privkey,
host=DEFAULT_HOST,
password='',
auth=True)
username is the username of the speakeasy user pubkey is the user's
public key as a string privkey is the user's private key as a string
host is the host that speakeasy is running on (default is localhost)
password is the password for the private key (default to blank / no
password) auth determines whether to connect and authenticate
immediately (default to true) |
source code
|
|
|
|
|
upload(self,
fname,
rname=None)
Encrypt and upload the file given by fname to the server. |
source code
|
|
|
download(self,
fname,
lname=None)
Download and decrypt the file given by fname from the server. |
source code
|
|
|
|
|
get_info(self,
fname)
Get more detailed information about the file called fname from the
server. |
source code
|
|
|
share(self,
fname,
recipient)
Share a file called fname stored on the server with the recipient |
source code
|
|
|
versions(self,
fname)
Get the dates of previous modifications to the file. |
source code
|
|
|
delete(self,
fname)
Delete a file from the server. |
source code
|
|
|
|
|
|
|
add_pubkey(self)
Add a public key to the server. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|