Easy API wrapper for https://api.snowflakedev.org/
Project description
Snowflake API (python)
Discord Support Guild - https://discord.gg/2SUybzb
Example Usage
from snowflakeapi.snowflakeapi import SnowClient
client = SnowClient("YOUR_API_KEY") # Your API Key can be found at https://api.snowflakedev.org/dashboard (sign in w/ discord)
print(client.chatbot("hello!"))
API Documentation
myInfo()
Used to fetch your API Profile Information
client.myInfo()
Response
{ user, pro, ratelimits, banned, requests, tokenCreatedTimestamp, createdTimestamp }
chatBot(message, name, gender, user)
Talk to a chatbot
name, gender and user params are optional
message = input("Your message/question:")
client.chatBot(message, "Chatty", "male", "You")
Response
{ message }
fakeDiscordToken()
Generate a fake discord token
client.fakeDiscordToken()
Response
{ token }
meme(subreddit)
Get a random meme, either from a specific subreddit or a random one
subreddit paramater is optional
subreddit = input("Subreddit: ")
client.meme(subreddit)
Response
{ isVideo, nsfw, createdAt, url, ratings: { upvote, downvote, comments }, subreddit, title, link }
roast()
Get a random roast!
client.roast()
Response
{ roast }
pokemon(pokemonName)
Fetch information about a specific pokemon!
pokemonName = input("Pokemon Name: ")
client.pokemon(pokemonName)
Response
{ name, id, baseExperience, height, weight, type, moves, stats, image }
morse(type, message)
Encode/Decode a message
# Endode
client.morse("encode", "Hello")
# Decode
client.morese("decode", ".... . .-.. .-.. ---")
Response
{ data }
registery
Fetch data about a module from deno, npm or pypi.
# Deno
client.registry("deno", "youtube-sr")
# NPM
client.registry("npm", "youtube-sr")
# PyPi
client.registry("pypi", "snowflakeapi")
Responses
// Deno
{ registry, icon, url, module: { name, url, description, version, stars, developer: { name, url }, github, createdAt } }
// NPM
{ registry, icon, url, runkit, module: { name, url, description, version, main, license, author, maintainers, dependencies, repository, banner } }
// PyPi
{ registry, icon, url, module: { name, description, url, version, author, updatedAt, documentation, homepage }
apiStats()
Get statisticle information about SnowflakeDev API
client.apiStats()
Response
{ total_requests, free_users, pro_users, total_users, banned_users, os, processor: { model, count }, memory: { heap_total, heap_used, rss, external, ab } }
githubstats(username)
Get information about a github profile.
client.githubstats("DevSynth")
Response
{ name, avatar, followers, repos, pullRequests, issues, npmDownloads }
reverse(message)
Reverse any text!
client.reverse("Hello, how are you?")
Response
{ message }
discordTokenInfo(token)
Get information about a discord token (TOKENS ARE NOT SAVED)
client.discordTokenInfo("TOKEN_HERE")
Response
{ type, token, id, username, discriminator, avatar, avatarURL, snowflakeInfo }
youtubeChannel(channel)
Get information about a youtube channel
client.youtubeChannel("Channel Name")
Response
{ channel: { name, url }, videos: [ { id, title, author, url, publishedAt, thumbnail }, ... ] }
ytSearch(searchQuery, limit, safesearch, type)
Get information about a youtube video
client.ytSearch("Hello", 1, True, "video")
Response
{ data: [...] }
base64(type, message)
Encode/Decode a message
# Encode
client.base64("encode", "Hello")
# Decode
client.base64("decode", "SGVsbG8K")
Response
{ data }
cat(), dog(), duck(), fox()
Get a random image of cats, dogs, ducks, or fox's.
client.cat()
client.dog()
client.fox()
client.duck()
Response
{ IMAGE_BUFFER }
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
Built Distribution
Hashes for snowflakeapi-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05ada96800a28568b2d38874bc49cc4eddf427b8c1be1e13d64a5058a01bfb5 |
|
MD5 | 912d417031ac836e13e896a4f85009fb |
|
BLAKE2b-256 | 2b2f4b4f4804a3dee81a78b6bc50d6ad812f0c58325c0ab0f96f13c4ee606527 |