Data sanitation engine for Knew Karma
Project description
Karma Kaze (カルマの風)
Data sanitation engine for Knew Karma.
import karmakaze
import requests
username = "AutoModerator"
response = requests.get(f"https://www.reddit.com/user/{username}/about.json").json()
sanitise = karmakaze.Sanitise() # Provides static methods for sanitising raw response data
parse = karmakaze.Parse() # Provides methods for parsing the sanitised data
sanitised_data = sanitise.subreddit_or_user(response=response)
parsed_data = parse.user(data=sanitised_data)
print(sanitised_data)
print(parsed_data)
License
MIT License © Richard Mwewa
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
karmakaze-2.0.0.tar.gz
(18.9 kB
view hashes)
Built Distribution
karmakaze-2.0.0-py3-none-any.whl
(19.1 kB
view hashes)
Close
Hashes for karmakaze-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee148b39fdbffcd4784717c9720f0474d3c3e157dda2995058ba2cd3f26111e |
|
MD5 | 4f65f8ed135d4b02436db5a7ed61d99f |
|
BLAKE2b-256 | 9969a4f55e147eb463734f1457c28edaa4260d17f5d77b4afb3258fb14024ab3 |