Skip to main content

A pure Python cross-platform program to send and receive data over local area network(LAN) with on-the-fly gzip streaming and broadcasting

Project description

pySendCast

A pure Python cross-platform program to send and receive data over local area network(LAN) with on-the-fly gzip streaming and broadcasting

How to install

pip install pySendCast

How to use

sendcast send [file or messages...]
  sends without PIN.
sendcast send <-p|--pin> [file or messages...]
  sends with newly generated PIN
sendcast send <-up|--userpin> <user PIN> [file or messages...]
  sends with user specified PIN
sendcast send <-r|--recv|--receiver> <recv address> [file or messages...]
  sends to IP or address directly

file or message can be any of

  • nothing : check up each other's ip address
  • file path : send and receive files with glob searching (ex. *.py)
  • url : receiver opens default web browser with it
  • message : simple text messages
sendcast recv
  receives without PIN
sendcast recv <user PIN>
  receives with user specified PIN
sendcast recv <n|new|g|gen>
  receives with newly generated PIN

How to use with usecases

  1. checkup IP
  • Sender : 192.168.0.10
$ sendcast send
192.168.0.11
  • Receiver : 192.168.0.11
$ sendcast recv
192.168.0.10
  1. Send message
  • Sender
$ sendcast send hello
192.168.0.11
  • Receiver
$ sendcast recv
192.168.0.10
hello
  1. General usecase : send two files without PIN. The First non-PIN receiver on network takes the file
  • Sender
$ sendcast send a.txt b.txt
192.168.0.11
sending a.txt
sending b.txt
  • Receiver
$ sendcast recv
192.168.0.10
extracting a.txt (23 bytes)
extracting a.txt done (23 bytes, 0.0000413 seconds, 0.557163 MB/s)
extracting b.txt (27 bytes)
extracting b.txt done (27 bytes, 0.0000405 seconds, 0.666000 MB/s)
  1. generated PIN usecase : send with newly generated PIN. receiver must know PIN to receive the file (be aware that its stream itself is not securely encrypted.)
  • Sender
$ sendcast send -p a.txt b.txt
generated PIN : 3061
192.168.0.11
sending a.txt
sending b.txt
  • Receiver
$ sendcast recv 3061
192.168.0.10
extracting a.txt (23 bytes)
extracting a.txt done (23 bytes, 0.0000413 seconds, 0.557163 MB/s)
extracting b.txt (27 bytes)
extracting b.txt done (27 bytes, 0.0000405 seconds, 0.666000 MB/s)
  1. user PIN usecase : send with user PIN. receiver must know PIN to receive the file (be aware that its stream itself is not securely encrypted.)
  • Sender
$ sendcast send -up 9999 a.txt b.txt
user PIN : 9999
192.168.0.11
sending a.txt
sending b.txt
  • Receiver
$ sendcast recv 9999
192.168.0.10
extracting a.txt (23 bytes)
extracting a.txt done (23 bytes, 0.0000413 seconds, 0.557163 MB/s)
extracting b.txt (27 bytes)
extracting b.txt done (27 bytes, 0.0000405 seconds, 0.666000 MB/s)
  1. receiver generated PIN usecase : send with receiver created user PIN. sender must know PIN to send the file (be aware that its stream itself is not securely encrypted.)
  • Receiver
$ sendcast recv n
generated PIN : 2342
192.168.0.10
extracting a.txt (23 bytes)
extracting a.txt done (23 bytes, 0.0000413 seconds, 0.557163 MB/s)
extracting b.txt (27 bytes)
extracting b.txt done (27 bytes, 0.0000405 seconds, 0.666000 MB/s)
  • Sender
$ sendcast send -up 2342 a.txt b.txt
user PIN : 2342
192.168.0.11
sending a.txt
sending b.txt

special usecase

  • send/recv from Android

Security note

The receiver takes any gzip tar stream from port number 18902. Becuase this stream is not encrypted, it can be captured with network tools or can be easily targeted for hacking. Any responses from security issues are not taken by developer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pySendCast-0.1.3.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file pySendCast-0.1.3.tar.gz.

File metadata

  • Download URL: pySendCast-0.1.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for pySendCast-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b6baa02b0090d142af38512e128dd5251550f9a8624c0753cada6b29c7a4569b
MD5 5c6b7d841badc06a6032a543fcd49f3d
BLAKE2b-256 a96282ff524ac3b6cef66d1e2907698ea0783db5ca9a94f1bae4b5e2ddab6647

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page