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

python -m pySendCast send [file or messages...]
  sends without PIN.
python -m pySendCast send <-p|--pin> [file or messages...]
  sends with newly generated PIN
python -m pySendCast send <-up|--userpin> <user PIN> [file or messages...]
  sends with user specified PIN

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
python -m pySendCast recv
  receives without PIN
python -m pySendCast recv <user PIN>
  receives with user specified PIN
python -m pySendCast recv <n|new|g|gen>
  receives with newly generated PIN

How to use with usecases

  1. General usecase : send two files without PIN. The First non-PIN receiver on network takes the file
  • Sender
$ python -m pySendCast send a.txt b.txt
  • Receiver
$ python -m pySendCast recv
  • Sender
$ python -m pySendCast send a.txt b.txt
192.168.0.11
sending a.txt
sending b.txt
$ _
  • Receiver
$ python -m pySendCast recv
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)
$ _

In this case, receiver can be running before the sender sends

  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
$ python -m pySendCast send -p a.txt b.txt
generated PIN : 3061
  • Receiver
$ python -m pySendCast recv 3061
  • Sender
$ python -m pySendCast send -p a.txt b.txt
generated PIN : 3061
192.168.0.11
sending a.txt
sending b.txt
$ _
  • Receiver
$ python -m pySendCast recv 3061
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)
$ _

In this case, receiver cannot be running before the sender sends

  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
$ python -m pySendCast send -up 9999 a.txt b.txt
user PIN : 9999
  • Receiver
$ python -m pySendCast recv 9999
  • Sender
$ python -m pySendCast send -up 9999 a.txt b.txt
user PIN : 9999
192.168.0.11
sending a.txt
sending b.txt
$ _
  • Receiver
$ python -m pySendCast recv 9999
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)
$ _

In this case, receiver can be running before the sender sends

  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
$ python -m pySendCast recv n
generated PIN : 2342
  • Sender
$ python -m pySendCast send -up 2342 a.txt b.txt
user PIN : 2342
192.168.0.11
sending a.txt
sending b.txt
$ _
  • Receiver
$ python -m pySendCast recv n
generated PIN : 2342
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)
$ _

In this case, receiver can be running before the sender sends

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.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pySendCast-0.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pySendCast-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.7

File hashes

Hashes for pySendCast-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1f0d1afa5a7ad58a92fac55061812fdf8880a56d82d38032462a154353c3f4ef
MD5 b66eb5b19ad7379452b6d8f6b1be5712
BLAKE2b-256 a5297d3a95464c2ec59a45cb5dd5540f26547205a3b2b47839b360ee01456501

See more details on using hashes here.

File details

Details for the file pySendCast-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pySendCast-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.7

File hashes

Hashes for pySendCast-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cf24db30c7cdc23c546e81dc7af653d94fb181c50061beec685a1090a9a453
MD5 1232fca14a4455470693267321c8548c
BLAKE2b-256 8db92dbeeaf8580612f3c9b128e82eae69d335c2d80ed3b1e8f09b9d2fd573dc

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