Skip to main content

Python API wrapper for masterblaster.gg

Project description

Masterblaster.py

Actions Status CodeCov PyPI Docs DocsBeta

Python API wrapper for masterblaster.gg

Installation

$ python -m pip install masterblaster.py

Usage

Masterblaster.py is a python 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") as m:
        for org in await m.get_all_orgs():
            for member in await org.get_members():
                print(member)


    # Alternative
    m = await masterblaster.MasterBlaster.create("MY-TOKEN-HERE")
    org = await m.get_org("MY-ORG-ID"):
    for member in await org.get_members():
        print(member)

    # Or Perhaps
    m = masterblaster.MasterBlaster("MY-TOKEN-HERE")
    ...
    ...
    async with m:
        org = await m.get_org_by_name("MY_ORG-NAME")
        for member in await org.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.

Contributors

Contributors

Links

Documentation

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

masterblaster_py-0.1.0rc6.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

masterblaster_py-0.1.0rc6-py3-none-any.whl (12.0 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