Examples

CLI

Serving a file,

$ airshare noobmaster file.ext

Serving multiple files or directories,

$ airshare noobmaster file1.ext file2.ext dir1 ../dir2

Serving text,

$ airshare noobmaster -t "Some text here."

Serving clipboard text,

$ airshare -cs noobmaster

Serving files whose paths have been copied to the clipboard,

$ airshare -fp noobmaster

Uploading files,

$ airshare -u noobmaster file1.ext dir2 file2.ext

Uploading files whose paths have been copied to the clipboard,

$ airshare -u -fp noobmaster

Receiving a file or text,

$ airshare noobmaster

Receiving file uploads,

$ airshare -u noobmaster

Receiving a file or text and copying content to clipboard,

$ airshare -cr noobmaster

Module

import airshare

# Host a sending server (as a process, non-blocking code)
process = airshare.sender.send_server_process(code="noobmaster", text="Hi!")
# You can later terminate this process using `process.terminate()`

# Receive from an Airshare server
text = airshare.receiver.receive(code="noobmaster")

# Refer to the module documentation for more details