diff options
| author | Yuval Adam <_@yuv.al> | 2018-02-27 00:21:01 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-02-27 00:22:05 +0200 |
| commit | 2b0cb002346b25879406167927c841bb6abc3621 (patch) | |
| tree | 55402f081be6f0cdc100ae36d46796ee51900b71 | |
| parent | 653af3af7bd4da4114a7d73ddac55deff5bcedc9 (diff) | |
Bump to v0.1.0v0.1.0
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | README.rst | 8 | ||||
| -rw-r--r-- | setup.cfg | 4 | ||||
| -rw-r--r-- | setup.py | 6 |
4 files changed, 12 insertions, 8 deletions
@@ -1,3 +1,5 @@ __pycache__ *.pyc .pytest_cache +build/ +dist/ @@ -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 @@ -1,5 +1,5 @@ [bdist_wheel] -universal = 1 +universal=1 [metadata] -license_file = LICENSE
\ No newline at end of file +license_file=LICENSE
\ No newline at end of file @@ -1,11 +1,13 @@ +from pathlib import Path + from setuptools import setup, find_packages -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: +with open(str(Path(__file__).resolve().parents[0] / 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='viewstate', - version='0.0.1', + version='0.1.0', description='.NET viewstate decoder', long_description=long_description, homepage='https://github.com/yuvadm/viewstate', |
