Skip to main content

Data sanitation engine for Knew Karma

Project description

Karma Kaze (カルマの風)

Data sanitation engine for Knew Karma.

Code Style

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


richard-mwewa

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

karmakaze-1.3.0.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

karmakaze-1.3.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

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