Skip to content

Documentation

ISviterI edited this page Apr 11, 2026 · 2 revisions

ModuleHub documentation (1.0.1)

ModuleHub - A library to install/publish your modules (modules are python scripts)

Installation

pip install modulehub

API Reference

Variables:

database_url

Url to get database

Functions:

.get_database()

Returns database from pastebin

  • Used by other functions
  • Does not recommended to use this by yourself

.convert_to_mstring()

Converts all arguments in mstring

  • Arguments: name:str,desc:str,code:str,version:str="1.0.0",discord_un:str="No discord",documentation_link:str="No documentation"
  • Used by other functions
  • Does not recommended to use this by yourself

.show()

Shows modules argument using print and prints something like that:

Modules:
fiftyfifty: Type `.more('fiftyfifty')` to get more info
  • Arguments: modules:list
  • Used by .search()

.search()

Searchs all modules that starts with name argument and shows them using .show(), returns results

  • Arguments: name:str

.more()

Prints more info about module using, returns string

  • Arguments: name:str

.find()

Returns module directly from database

  • Arguments: name:str
  • Used by other functions

.install()

Installs/writes .py file from database

  • Arguments: name:str

.publish()

Sends your module's info to the check in discord server, probably will get added to database in a few days, if not... join discord server and tell devs about your module

  • Arguments: name:str,desc:str,filename:str,version:str=None,discord_un:str=None,documentation_link:str=None

FAQ

  • Why is requests used? - To get database from pastebin and upload your modules to the check in discord
  • What is mstring? - mstring is module string that stores in database
  • How to install module? - Use .install()
  • How to publish module? - Use .publish()
  • Why is my module not getting added? - Your module may get skipped by developers or it had issues, ask developers on discord server why it's not getting added