CLI printer for selected NPS lab manual programs.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nps_lab_codes-0.1.0.tar.gz.
File metadata
- Download URL: nps_lab_codes-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce28bf78b4d95010f0adadc231fa20022b529a5b69cf270657cdda710023ff3
|
|
| MD5 |
0efd3817189659c070da559d6b5899cb
|
|
| BLAKE2b-256 |
77fe5f02f879818cf638d918247bd3e8f8648978e84aa413f36b1fa07e625d23
|
File details
Details for the file nps_lab_codes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nps_lab_codes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8d3687676ce6d1ac96ca9f96f5a35b3d9b91875cb0737e3f240ff30a7c45345
|
|
| MD5 |
d023e87a54893dfe5e4eae215874ec06
|
|
| BLAKE2b-256 |
c181ece05d6db1344dfb772ceb0f91a484ea4452ee101a170126c1ef2b6ae198
|