snowflakeapi package

snowflake module

class snowflakeapi.snowflakeapi.SnowClient(api_key)

Bases: object

async my_info() dict

Returns the api user’s info

Returns

Dictionary containing user info

Return type

dict

async chat_bot(message: str, name='Bot', gender='male', user='You') dict

AI Chatbot

Parameters
  • message (str) – Message you want the bot to see

  • name (str, optional) – Name of the Bot. Defaults to “Bot”.

  • gender (str, optional) – Gender of the bot. Defaults to “male”.

  • user (str, optional) – Name of the user. Defaults to “You”.

Returns

Dictionary containing bot’s response

Return type

dict

async fake_discord_token() dict

Fake discord bot token generator

Returns

Dictionary containing fake discord bot token

Return type

dict

async meme(sub_reddit: Optional[str] = None) dict

Random meme from a subreddit.

Parameters

sub_reddit (str, optional) – Subreddit from which you want to fetch the meme. Defaults to None.

Returns

Dictionary containing meme link

Return type

dict

async roast() dict

Returns random roast.

Returns

Dictionary containing a random roast

Return type

dict

async pokemon(pokemon_name: str) dict

Returns Pokemon info.

Parameters

pokemon_name (str) – Name of the pokemon

Returns

Dictionary containing pokemon’s info

Return type

dict

async morse_encode(message: str) dict

Encode normal text into morse code

Parameters

message (str) – Text you want to encode into morse

Returns

Dictionary containing encoded text

Return type

dict

async morse_decode(message: str) dict

Decode morse code into normal text

Parameters

message (str) – Morse code you want to decode into normal text

Returns

Dictionary containing decoded text

Return type

dict

async pypi(module_name: str) dict

Python registry api

Parameters

module_name (str) – Name of the pypi module

Returns

Dictionary containing info about the pypi module

Return type

dict

async deno(module_name: str) dict

Deno registry api

Parameters

module_name (str) – Name of the deno module

Returns

Dictionary containing info about deno module

Return type

dict

async npm(module_name: str) dict

NPM registry api

Parameters

module_name (str) – Name of the npm module

Returns

Dictionary containing info about npm module

Return type

dict

async api_stats() dict

Get api server stats.

Returns

Dictionary containing api server stats

Return type

dict

async githubstats(username: str) dict

Returns github user stats

Parameters

username (str) – Github username

Returns

Dictionary containing info about the GitHub user

Return type

dict

async reverse(message: str) dict

Reverse a message

Parameters

message (str) – Text you want to be reversed

Returns

Dictionary containing reversed text

Return type

dict

async discord_token(token: str) dict

Discord Token Information

Parameters

token (str) – Discord Token you want info about

Returns

Dictionary containing info about the token

Return type

dict

async youtube_channel(channel_name: str) dict

Returns basic info about a YouTube channel

Parameters

channel_name (str) – YouTube channel you want info about

Returns

Dictionary containing info about the YouTube channel

Return type

dict

async ytsearch(search_query: str, limit: int = 20, safesearch: bool = True, search_type: Optional[str] = None) dict

YouTube search

Parameters
  • search_query (str) – Search Query

  • limit (int, optional) – Number of Searches. Defaults to 20.

  • safesearch (bool, optional) – Boolean value for toggling SafeSearch. Defaults to True.

  • search_type (str, optional) – Specify whether search type is video or not. Defaults to None.

Returns

Dictionary containing info about Search Query from YouTube

Return type

dict

async base64_encode(text: str) dict

Encode normal text into base64 string

Parameters

text (str) – Text you want to be encoded into Base64

Returns

Dictionary containing Encoded Text

Return type

dict

async base64_decode(text: str) dict

Decode base64 characters into normal text

Parameters

text (str) – Base64 you want to be decoded

Returns

Dictionary containing decoded Base64

Return type

dict

async cat() _io.BytesIO

Returns random cat image.

Returns

Returns a BytesIO object containing image of a cat

Return type

BytesIO

async dog() _io.BytesIO

Returns random dog image.

Returns

Returns a BytesIO object containing image of a dog

Return type

BytesIO

async duck() _io.BytesIO

Returns random duck image.

Returns

Returns a BytesIO object containing image of a duck

Return type

BytesIO

async fox() _io.BytesIO

Returns random fox image.

Returns

Returns a BytesIO object containing image of a fox

Return type

BytesIO

Module contents