Java Networking Practicals (javacs)
A Python package that stores Java networking practical programs (TCP/UDP sockets, chat, broadcast, RPC and RMI) and prints their source code on demand, from Python or the terminal.
Install it once with pip, then view any program on any machine without copying files around.
Programs Included
| Name | Description |
|---|---|
calclient / calserver |
RPC-style calculator over UDP (DatagramSocket) |
chatclient / chatserver |
TCP chat between client and server |
dateclient / dateserver |
RMI date/time server and client |
eoclient / eoserver |
UDP program that checks whether a number is even or odd |
primeclient / primeserver |
TCP program that checks whether a number is prime |
socketclient / socketserver |
Broadcast server and client |
date |
Extra program |
Step 1: Install
pip install javacs
To update to the latest version:
pip install --upgrade javacs
Requires Python 3.6 or newer.
Step 2: View the programs
Option A: From the terminal
Show all programs:
javacs
Show a single program:
javacs chatserver
javacs primeclient
Option B: From Python
import javacs
javacs.show_codes() # Show all programs
javacs.show_codes("chatserver") # Show one program
Option C: In Google Colab or Jupyter
!pip install javacs
import javacs
javacs.show_codes("eoserver")
Publishing a new version (for maintainers)
- Make any additions or updates in the
javacs/folder. - Increment
versioninsetup.py. - Clean old builds:
rm -rf dist build *.egg-info
- Build:
python3 -m build
- Check and upload to PyPI:
python3 -m twine check dist/* python3 -m twine upload dist/*
License
MIT. See LICENSE.
Metadata
Release files for javacs 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| javacs-2.0.2.tar.gz | 7.4 kB | Without provenance | Details for javacs-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| javacs-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for javacs-2.0.2-py3-none-any.whl |
Total release size: 18.2 kB
Release files / javacs-2.0.2.tar.gz
| Download URL | javacs-2.0.2.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
549342abe744fe8a5e3485f4e03e84582866b4e0f98144fc76126c1b2dcd912c
|
|
BLAKE2b-256 checksum How to use checksums |
a106e63a21231d8edee325c801d6292fdf3b8c406aa04bca49be00e7978dec7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / javacs-2.0.2-py3-none-any.whl
| Download URL | javacs-2.0.2-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaaae9fe242e1677b0bda58909a7dae4d120717f1d66b87d26ffc799a1de4ead
|
|
BLAKE2b-256 checksum How to use checksums |
7e2adb1d26cdcf775e0c7a5a02e776c8584004fc349eace9ac455b747ac204af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for javacs 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.