Unofficial Reader of Extended File Descriptors
Project description
xfd
Unofficial Reader of Extended File Descriptors
install
pip install xfd
usage
import xfd
with open("data.xfd") as f:
text = f.read()
xfd.read(text)
{
"Identification Section": {
"select-name": "PIZZAORDERS",
"table-name": "PIZZAORDERS",
"file-organization": "Indexed",
"maximum-record-size": 248,
"minimum-record-size": 248,
"number-of-keys": 8,
"sign-compatability": 0,
"maximum-numeric-digits": 18,
"period-character": ".",
"comma-character": ",",
"alphabet": "ASCII"
},
"Field Section": {
"summary": {
"elementary-items": 10,
"elementary-items-with-occurs": 10,
"total-items": 13,
"total-items-with-occurs": 13
},
"fields": [
{
"field-offset": 0,
"field-bytes": 112,
"field-type": 16,
"field-type-description": "Alphanumeric",
"field-length": 112,
"field-scale": 0,
"field-user-flags": 0,
"field-user-type": "no user type",
"field-condition": 999,
"field-condition-description": "field is technically a group item, which is a collection of multiple fields",
"field-level": 1,
"field-name": "PIZZA-REC"
},
{
"field-offset": 0,
"field-bytes": 2,
"field-type": 16,
"field-type-description": "Alphanumeric",
"field-length": 2,
"field-scale": 0,
"field-user-flags": 0,
"field-user-type": "no user type",
"field-condition": 0,
"field-condition-description": "field is in all the records",
"field-level": 5,
"field-name": "PIZZA-TYPE"
},
# ...
]
}
}
references
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
xfd-0.0.0.tar.gz
(7.2 kB
view details)
File details
Details for the file xfd-0.0.0.tar.gz.
File metadata
- Download URL: xfd-0.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e12b191bd7d53dac559aacc0bb2fb29228ffbf0dc157d8ef08bbcebe99cc1933
|
|
| MD5 |
c39a57dad77a995a47d48d93e0537d36
|
|
| BLAKE2b-256 |
08919f3b534f16b1e87bfd71399a6e809fac5dffc0df5db827c37bc71ba00e69
|