summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index 5f743e2..9df3217 100644
--- a/README.rst
+++ b/README.rst
@@ -1,7 +1,7 @@
.NET Viewstate Decoder
======================
-A small Python library for decoding .NET viewstate. Can be used in various scraping scenarios.
+A small Python 3 library for decoding .NET viewstate. Can be used in various scraping scenarios.
Usage
-----
@@ -10,7 +10,7 @@ The Viewstate decoder accepts Base64 encoded .NET viewstate data and returns the
There are two main ways to use this package. First, it can be used as an imported library with the following typical use case:
-::
+.. code-block:: python
from viewstate import ViewState
vs = ViewState(base64EncodedViewState)
@@ -18,13 +18,13 @@ There are two main ways to use this package. First, it can be used as an importe
It is also possible to feed the raw bytes directly:
-::
+.. code-block:: python
vs = ViewState(raw=b'\xff\x01....')
Alternatively, the library can be used via command line by directly executing the module:
-::
+.. code-block:: shell
$ cat data.base64 | python -m viewstate