Skip to main content

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

Important note

On firewall environments like Windows, set TCP port 18902 allowed. This port is used to transfer gzip stream. On Windows, it should be also checked that the network you are sending files over is set to be a private network.

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.

Metadata

Release files for pySendCast 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pySendCast 0.1.6
File Size Uploaded
pysendcast-0.1.6.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pySendCast 0.1.6
File Interpreter ABI Platform
pysendcast-0.1.6-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.0 kB

Release files / pysendcast-0.1.6.tar.gz

Download URL pysendcast-0.1.6.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bae81de7656a04a6e5f687cbe0078ad4c7974ec777e06dba8edecb6fb12a7181
BLAKE2b-256 checksum
How to use checksums
919a12b0464cf706faff14437fc8517396135f68b4a90105e5c376a1bb454cce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.2

Release files / pysendcast-0.1.6-py2.py3-none-any.whl

Download URL pysendcast-0.1.6-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
964d1bb904e3826d926b5190cca3a57662b3f2ffddb63c6d9a2f29613535a936
BLAKE2b-256 checksum
How to use checksums
8b18875a2081a621cd54e197b73dfb47bb716dfc850ee9eb31a322e34efc48a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.2

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

2 release files

0.0.5

2 release files

0.0.4

3 release files

0.0.3

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page