NPS Lab Codes
Small Python CLI package that prints selected programs from the NPS lab manual:
1- client/server file transfer using sockets2- distance vector routing / Bellman Ford3a- checksum error detection3b- Hamming code error correction7- remote command execution using sockets
Install locally
cd nps_lab_codes
pip install .
Usage
nps-code list
nps-code 1
nps-code 3a
nps-code 3b
nps-code 7
You can also save a program into a file:
nps-code 2 > dvr.c
Publish to PyPI
- Create or sign in to your PyPI account: https://pypi.org/account/register/
- Create an API token from: https://pypi.org/manage/account/token/
- Build and check the package:
python -m build
python -m twine check dist/*
- Upload to PyPI:
python -m twine upload dist/*
When Twine asks for credentials:
username: __token__
password: pypi-...
After upload, install from anywhere with:
pip install nps-lab-codes
Publish to TestPyPI first
Use this if you want a trial upload before real PyPI:
python -m twine upload --repository testpypi dist/*
Install from TestPyPI with:
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:
pip install git+https://github.com/YOUR_USERNAME/nps-lab-codes.git
Metadata
Release files for nps-lab-codes 0.1.0
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 |
|---|---|---|---|---|
| nps_lab_codes-0.1.0.tar.gz | 5.3 kB | Without provenance | Details for nps_lab_codes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nps_lab_codes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nps_lab_codes-0.1.0-py3-none-any.whl |
Total release size: 11.1 kB
Release files / nps_lab_codes-0.1.0.tar.gz
| Download URL | nps_lab_codes-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ce28bf78b4d95010f0adadc231fa20022b529a5b69cf270657cdda710023ff3
|
|
BLAKE2b-256 checksum How to use checksums |
77fe5f02f879818cf638d918247bd3e8f8648978e84aa413f36b1fa07e625d23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / nps_lab_codes-0.1.0-py3-none-any.whl
| Download URL | nps_lab_codes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8d3687676ce6d1ac96ca9f96f5a35b3d9b91875cb0737e3f240ff30a7c45345
|
|
BLAKE2b-256 checksum How to use checksums |
c181ece05d6db1344dfb772ceb0f91a484ea4452ee101a170126c1ef2b6ae198
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for nps-lab-codes 0.1.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.