semvec/pypi-packages huggingface dataset:
json-serde 0.0.11
JSON de/serializers
Requires Python: >=3.4

# json-serde
[![PyPI Version](https://badge.fury.io/py/json-serde.png)](https://pypi.python.org/pypi/json-serde) [![CI](https://api.travis-ci.org/heartsucker/python-json-serde.svg?branch=develop)](https://api.travis-ci.org/heartsucker/python-json-serde.svg?branch=develop) [![Documentation Status](https://readthedocs.org/projects/python-json-serde/badge/?version=latest)](https://python-json-serde.readthedocs.io/en/latest/?badge=latest)

JSON de/serializer for Python, inspired by `attrs` and `SQLAlchemy`.

## Example

```python
import requests
from json_serde import JsonSerde, Integer, String, IsoDateTime


class User(JsonSerde):
    username = String()
    user_id = Integer(rename='userId')
    birthday = IsoDateTime(is_optional=True, default=None)


resp = requests.get('https://example.com/api/user')
resp.raise_for_status()

api_response = resp.json()
# {'username': 'emmag', 'userId': 1312, 'somethingElse': ['irrelevant']}

user = User.from_json(api_response)
assert user.username == 'emmag'
assert isinstance(user.user_id, int)
assert user.birthday is None
```

## License

This work is dual licensed under the MIT and Apache-2.0 licenses. See [LICENSE-MIT](./LICENSE-MIT)
and [LICENSE-APACHE](./LICENSE-APACHE) for details.
regparse 1.0.1
Read exported windows registry text files

## regparse

Read and parse exported windows registry text files

## Install

Install using pip:

```
pip install regparse
```

## Usage

Typical usage:
```
import regparse
r=regparse.RegParse()
c=r.readfile('Computer_HKLM.reg')
r.getkey('HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System','EnableLUA','n/a-dword:00000001')
```

Raw function to get the key:
```
r.getconfig('HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System','"EnableLUA"','n/a-dword:00000001')
```

Automatically parse value from the registry (note: default should be also parseable):
```
current = reg.getval('HKEY_LOCAL_MACHINE\\SYSTEM\\Select','Current','dword:00000001')
```