# python-pfb-sdk Python scripts used to modify PFB files ## PFB Editing Scripts
### Add Field Adds a new field to the specified node for the specified pfb file as of right now this is only limited to string and int with enum supported later This writes to a new file new.pfb
usage: addField.py [-h] PFB_file parentField field fieldType fieldDefault
Add a new field to PFB schema
- positional arguments:
PFB_file pfb file to add record to. Default = test.pfb parentField parent of field wanting to add to schema field field to add to the schema fieldType type for new field fieldDefault default value for new field
- optional arguments:
- -h, --help
show this help message and exit
Example usage
- command line usage:
python reader.py test.pfb
- python usage:
import reader reader.read(“test.pfb”)
### Remove Field removes a field from pfb file to a new file (rm.pfb)
usage: removeField.py [-h] PFB_file parentField field
Remove a field from PFB schema and output to new file “rm.pfb”
- positional arguments:
PFB_file pfb file to remove field from. Default = test.pfb parentField parent of field wanting to remove from schema field field to remove to the schema
- optional arguments:
- -h, --help
show this help message and exit
Example usage
- command line usage:
python removeField.py test.pfb demographic gender
- python usage:
import removeField removeField.remove(“test.pfb”, “simple_germline_variation”, “data_category”)
### Add Record Adds new record(s) to the pfb file from a json file
usage: addRecord.py [-h] PFB_file JSON_file
Add a record to PFB file from a minified JSON file
- positional arguments:
PFB_file pfb file to add record to. Default = test.pfb JSON_file JSON file to add into the pfb file. Default = test.json
- optional arguments:
- -h, --help
show this help message and exit
Exapmle Usage
- command line usage:
python addRecord.py test.pfb test.json
- python usage
import addRecord addRecord.add(“test.pfb”, “test.json”)
### Reader Used to read the records from pfb file records]
usage: reader.py [-h] PFB_file
Read a PFB file in json format
- positional arguments:
PFB_file pfb file to add record to. Default = test.pfb
- optional arguments:
- -h, --help
show this help message and exit
Example Usage
- command line usage:
python reader.py test.pfb
- python usage:
import reader reader.read(“test.pfb”)
### Make Blank Record Make a blank json record for specific pfb schema to blank.json files
usage: makeBlankRecord.py [-h] PFB_file node
Create a blank record from a pfb schema
- positional arguments:
PFB_file pfb file to read schema from node Node to add record to
- optional arguments:
- -h, --help
show this help message and exit
Example Usage
- command line usage:
python makeBlankRecord.py test.pfb demographic
- python usage:
import makeBlankRecord makeBlankRecord.makeRecord(“test.pfb”, “simple_germline_variation”)
Metadata
Release files for python-pfb-sdk 0.0.1
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 |
|---|---|---|---|---|
| python_pfb_sdk-0.0.1.tar.gz | 6.7 kB | Without provenance | Details for python_pfb_sdk-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_pfb_sdk-0.0.1-py2-none-any.whl | Python 2 | none | any | Details for python_pfb_sdk-0.0.1-py2-none-any.whl |
Total release size: 36.8 kB
Release files / python_pfb_sdk-0.0.1.tar.gz
| Download URL | python_pfb_sdk-0.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ed2448091e70d8f5e290ef8a593b670fc24e3bb2d6384f67d147155c97f52ad
|
|
BLAKE2b-256 checksum How to use checksums |
e20cf39a05964a5f9e1f46c930c61eee904a447c9e90a51e2c55785b718ec0b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/2.7.16
|
Release files / python_pfb_sdk-0.0.1-py2-none-any.whl
| Download URL | python_pfb_sdk-0.0.1-py2-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
75cbba82986ffb078094245322369aa55a53505298df2b5a77589e4ca1b39815
|
|
BLAKE2b-256 checksum How to use checksums |
580fff72926f071639211684b299a660194870331e9f633935fa3f9edff4c8bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/2.7.16
|
Security for python-pfb-sdk 0.0.1
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.