A small Python 3 library for decoding .NET viewstate. Can be used in various scraping scenarios.
Usage
The Viewstate decoder accepts Base64 encoded .NET viewstate data and returns the decoded output in the form of plain Python objects.
There are two main ways to use this package. First, it can be used as an imported library with the following typical use case:
from viewstate import ViewState
vs = ViewState(base64EncodedViewState)
decoded_state = vs.decode()
It is also possible to feed the raw bytes directly:
vs = ViewState(raw=b'\xff\x01....')
Alternatively, the library can be used via command line by directly executing the module:
$ cat data.base64 | python -m viewstate
Which will pretty-print the decoded data structure.
Development
Unit test are run via pytest
References
License
MIT
Metadata
Release files for viewstate 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| viewstate-0.1.2.tar.gz | 3.6 kB | Details |
Release files / viewstate-0.1.2.tar.gz
| Download URL | viewstate-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6818fb123c7807b3c0a6b116b96037fe764acecc01c5af3832e8496c397928a0
|
|
BLAKE2b-256 checksum How to use checksums |
60e448150e345ca715b8603361352343264daa9cdaeec694a94ea2c1773ae67c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |