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.1

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.1
File Size Uploaded Provenance Actions
javacs-2.0.1.tar.gz 7.5 kB Without provenance Details for javacs-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 18.3 kB

Release files / javacs-2.0.1.tar.gz

Download URL javacs-2.0.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4f52ddf028e00bc0e12871632c450089ddcd85881c1e7ce7586bd8e7caaeb183
BLAKE2b-256 checksum
How to use checksums
1d70e7f5257d81bff29e03e7f979b5b1fab2fa09867d82c7dbfb1b91cd5e1237
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.1-py3-none-any.whl

Download URL javacs-2.0.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8c5d46538760cb7f03600589bf26a05c6ceb7ef981d5e03e52d1ac97e17f922
BLAKE2b-256 checksum
How to use checksums
058f81d154f7159d9caeadd56328c99b8542cdfc6f8d3e3f59471a26784d362c
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.1

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