Metadata-Version: 2.4
Name: nps-lab-codes
Version: 0.1.0
Summary: CLI printer for selected NPS lab manual programs.
Author: ABHAY S S
License-Expression: MIT
Keywords: nps,lab,network-programming,cli
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Topic :: Education
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# NPS Lab Codes

Small Python CLI package that prints selected programs from the NPS lab manual:

- `1` - client/server file transfer using sockets
- `2` - distance vector routing / Bellman Ford
- `3a` - checksum error detection
- `3b` - Hamming code error correction
- `7` - remote command execution using sockets

## Install locally

```powershell
cd nps_lab_codes
pip install .
```

## Usage

```powershell
nps-code list
nps-code 1
nps-code 3a
nps-code 3b
nps-code 7
```

You can also save a program into a file:

```powershell
nps-code 2 > dvr.c
```

## Publish to PyPI

1. Create or sign in to your PyPI account: <https://pypi.org/account/register/>
2. Create an API token from: <https://pypi.org/manage/account/token/>
3. Build and check the package:

```powershell
python -m build
python -m twine check dist/*
```

4. Upload to PyPI:

```powershell
python -m twine upload dist/*
```

When Twine asks for credentials:

```text
username: __token__
password: pypi-...
```

After upload, install from anywhere with:

```powershell
pip install nps-lab-codes
```

## Publish to TestPyPI first

Use this if you want a trial upload before real PyPI:

```powershell
python -m twine upload --repository testpypi dist/*
```

Install from TestPyPI with:

```powershell
pip install --index-url https://test.pypi.org/simple/ nps-lab-codes
```

## Install from GitHub instead

Push this folder to GitHub, then install it from any machine with:

```powershell
pip install git+https://github.com/YOUR_USERNAME/nps-lab-codes.git
```
