Skip to main content

Python class hydration from json, yaml, dicts, and lists.

Project description

PyHydrate

Installation

Install using pip

pip install pyhydrate
# or, if you would like to upgrade the library
pip install -U pyhydrate

A Simple Example

import pyhydrate as pyhy

_payload = {
    'queryStringParameters': {
        'someStringValue': 'string value 1',
        'aLogicalValue': True,
        'myValue': 12345.6
    },
    'requestContext': {
        'http': {
            'method': 'GET'
        }
    }
}

y = pyhy.PyHydrate(_payload)
x = y.request_context.http()
print(x)

z = y.request_context.http.method()
print(z)

idk = y.request_context.http.method.x()
print(idk)

Contributing

For guidance on setting up a development environment and how to make a contribution to pyhydrate, see .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhydrate-1.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

pyhydrate-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pyhydrate-1.0.0.tar.gz.

File metadata

  • Download URL: pyhydrate-1.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyhydrate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8127fd4151069dbf940bd249bdf57236eb63e50fc079d56134f28a712860ab3b
MD5 c2999b6efde1accbf08c12a3fb51c8d7
BLAKE2b-256 ef0fb5573b0aae42f29c2e648bc843a9b6dc1b04afa28651cda38fa202132b25

See more details on using hashes here.

Provenance

File details

Details for the file pyhydrate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyhydrate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyhydrate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70d3cb3a42543d5f18135a96d8ffe6c6acdb9e2d7553a64361bb25585d38d608
MD5 3b7152de6c385a0ec3a7a8f7e46083fa
BLAKE2b-256 d850e0a8a59200766bc7bdd2d47d8550ade8d53113010ec6585c8f5e48bb964c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page