Some simple utilities.
Project description
HEYY - some simple utilities
Usage
import heyy
# Temporarily change the working directory
# to complete some IO operation (e.g. save data to files)
@heyy.with_folder('my_folder')
def some_io_operation():
pass
# convert dict to object
import requests
res = requests.get('<url>')
data = res.json()
dict_obj = heyy.json2obj(data)
# reflect attrs and values of an object
obj = dict_obj
heyy.reflect(obj, skip_callable=True) # default False
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
heyy-0.1.1.tar.gz
(4.4 kB
view hashes)