Skip to content

nohr-ai/masterblaster.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
github-actions
Sep 15, 2023
2ad5378 · Sep 15, 2023

History

20 Commits
Sep 15, 2023
Sep 15, 2023
Sep 15, 2023
Sep 14, 2023
Sep 11, 2023
Sep 12, 2023
Sep 15, 2023
Sep 11, 2023
Sep 11, 2023
Sep 11, 2023
Sep 15, 2023
Sep 14, 2023
Sep 15, 2023
Sep 11, 2023

Repository files navigation

Masterblaster.py

Latest

Beta

Documentation Status

Python API wrapper for masterblaster.gg

Installation

$ python -m pip install masterblaster.py

Usage

Masterblaster.py is a python API wrapper for the masterblaster.gg API. It allows you to easily access the data from the API and use it in your own projects. I.e.:

import asyncio
import masterblaster


async def main():
    async with masterblaster.MasterBlaster("MY-TOKEN-HERE","MY-ORGANIZATION-HERE") as m:
        for member in await m.get_members():
            print(member)

    # Alternative
    m = await masterblaster.MasterBlaster.create("MY-TOKEN-HERE","MY-ORGANIZATION-HERE")
    for member in await m.get_members():
        print(member)
    await m.teardown()

    # Or Perhaps
    m = masterblaster.MasterBlaster("MY-TOKEN-HERE","MY-ORGANIZATION-HERE")
    ...
    ...
    async with m:
        for member in await m.get_members():
            print(member)


if __name__ == "__main__":
    asyncio.run(main())

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

masterblaster.py was created by Øyvind Nohr. It is licensed under the terms of the MIT license.

Credits

Links

Documentation

About

Python wrapper for masterblaster.gg

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages