A Python library for reading data from NIPS 360 FFS data files
Project description
PyNIPS
PyNIPS is a Python library for reading data from NIPS 360 FFS data files.
The National Military Command System Information Processing System 360 Formatted File System (NIPS 360 FFS) was a database management system used by the United States of America Military, primarily during the Vietnam War. NIPS 360 FFS runs on the IBM System/360 mainframe computers and is based on the IBM Formatted File System (FFS).
Installation
pip install pynips
See also the Getting and Installing PyNIPS in the online documentation.
Usage
See also the online documentation.
As Python library
import nips
# load the NIPS file
data_set = nips.DataSet('HES.HAMLA.67.NIPS')
for record in data_set.fixed_set:
print(record)
for record in data_set.periodic_sets[0]:
print(record)
The NIPSEXT command-line utility
A stand-alone command-line utility is provided for:
$ nipsext -h
usage: nipsext [-h] [-d] [-v] {info,rec,logical,sqlite,repl} ...
NIPS EXtraction Tool
options:
-h, --help show this help message and exit
-d, --debug Print debugging statements
-v, --verbose Print verbose information
commands:
{info,rec,logical,sqlite,repl}
info Output information about the NIPS file.
rec Output records in the recfiles file format. This is a format usable by the GNU Recutils tools.
logical Read and display logical records in a NIPS data file. Useful for debugging physical format.
sqlite Export records from NIPS file to an SQLite database.
repl Load the NIPS file and start an interactive REPL.
Danger's over, Banana Breakfast is saved.
Development
Building Documentation
Documentation for PyNIPS is built using Sphinx.
Install Sphinx (pip install sphinx
) and run:
make -C docs/ html
to build a HTML rendering of the documentation in docs/_build_html
.
Publishing to PyPi
Make sure version is set propertly in pyproject.toml
and nips/__init__.py
.
pip install hatch
hatch build
hatch publish
TODOs
- Handle continuation records
- Handle GeoCoordinate data mode
License
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
File details
Details for the file pynips-0.1.1.tar.gz
.
File metadata
- Download URL: pynips-0.1.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2be8205149230bc2144b1780c8a24446e778a7df8d8592f4140fdcb345c72d |
|
MD5 | ed0304d3d71b0b82d3b8394617c271f6 |
|
BLAKE2b-256 | 4a67a35c3a5a06a68a7a228060bf17b4026b780b93ed985c9c7aee9494223e95 |
File details
Details for the file pynips-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pynips-0.1.1-py3-none-any.whl
- Upload date:
- Size: 43.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00614f62b37313468ca1dfca17f95dae90357eac840d10e4f9f47e48ef01ff37 |
|
MD5 | c1caf55632ccfa77846b0440576566d9 |
|
BLAKE2b-256 | c357d5266010453d7084c55a390ee7adca80291f70b0e9bf67a18b20ade053e0 |