Very simple package for parsing .nsippt files to json. Use Python 3.4 and up.
Usage
pygments_style = 'sphinx'
import nsipptparser
import json
with open("sneaky.nsippt") as file:
data = nsipptparser.parse(file)
# Get the first length measurement of the first View
length = data["ViewPropertiesSet"]["View Properties"][0]["Actions Set"]["Length"][0]["length value"]
print("The length is ", length)
# Get the base64 thumbnail of the first View
thumbnail = data["ViewPropertiesSet"]["View Properties"][0]["Thumbnail"]
print("The thumbnail is ", thumbnail)
# Save to json file
with open('data.json', 'w') as f:
json.dump(data, f, indent=4)
Note: All values are parsed as strings, so you will have to parse the strings further yourself.
Installation
pip install nsipptparser
Requirements
Compatibility
Licence
MIT
Metadata
Release files for nsipptparser 0.1.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 | |
|---|---|---|---|
| nsipptparser-0.1.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nsipptparser-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / nsipptparser-0.1.1.tar.gz
| Download URL | nsipptparser-0.1.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
710fdc092544591b6f8f0dfad4cdc5277b4c8b9a69b8177805900d72d8e8a3d3
|
|
BLAKE2b-256 checksum How to use checksums |
8f63d65a89ebbc8419f2b856b21d680290a7eb5807674e756e5e0604a080a22a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3
|
Release files / nsipptparser-0.1.1-py3-none-any.whl
| Download URL | nsipptparser-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec44034e528eef3d323810c5f3112151ec3b8b25b0a4277cab5300f68cfffde8
|
|
BLAKE2b-256 checksum How to use checksums |
5858cdf44da477605314a0ad7a34d81b48cb1a357d1953b52fa633fc3a2661fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3
|