Skip to main content

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)

  1. Make any additions or updates in the javacs/ folder.
  2. Increment version in setup.py.
  3. Clean old builds:
    rm -rf dist build *.egg-info
    
  4. Build:
    python3 -m build
    
  5. 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.0

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

Source distribution (sdist)

Source distribution for javacs 2.0.0
File Size Uploaded Provenance Actions
javacs-2.0.0.tar.gz 7.8 kB Without provenance Details for javacs-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for javacs 2.0.0
File Interpreter ABI Platform Actions
javacs-2.0.0-py3-none-any.whl Python 3 none any Details for javacs-2.0.0-py3-none-any.whl

Total release size: 18.8 kB

Release files / javacs-2.0.0.tar.gz

Download URL javacs-2.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
36b0d1d4269d60be297c5e5ad7a991c9ab3c6742d4aca2eeded796cfaa6b66df
BLAKE2b-256 checksum
How to use checksums
1b290a634882095f4c28ca91bcac8aac00a206b7102cf38b7ffd2f7993448f5f
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.0-py3-none-any.whl

Download URL javacs-2.0.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2ab574af4ba1eddc77e2cf7b0e231455a6bead64e7bbc0e290ab4e3c4517733
BLAKE2b-256 checksum
How to use checksums
41380a11e466374bd832727a15ec345667172b6418252906c91801b26a61b11a
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.0

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.

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