Skip to main content

Easy API wrapper for https://api.snowflakedev.org/

Project description

Snowflake API (python)

Example Usage

    from snowflakeapi import SnowClient
    client = SnowClient("YOUR_API_KEY") # This can be found at https://api.snowflakedev.org/dashboard

    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

snowflakeapi-1.0.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

snowflakeapi-1.0.0-py3-none-any.whl (4.3 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