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.0rc9.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

masterblaster_py-0.1.0rc9-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file masterblaster_py-0.1.0rc9.tar.gz.

File metadata

  • Download URL: masterblaster_py-0.1.0rc9.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for masterblaster_py-0.1.0rc9.tar.gz
Algorithm Hash digest
SHA256 15d7a8f1a8531a79cd22d4df86bbf47da877aa7d2a175afe33f4587b256dc513
MD5 19c0725961764b556f6cf8a9fbc42ed4
BLAKE2b-256 730aabd9082c31513a362feb6d2ec8c5a4c857d5bde7f6fdd43d027c88e8a4ec

See more details on using hashes here.

File details

Details for the file masterblaster_py-0.1.0rc9-py3-none-any.whl.

File metadata

File hashes

Hashes for masterblaster_py-0.1.0rc9-py3-none-any.whl
Algorithm Hash digest
SHA256 c43e51d359916d0214db7ef34fffd700a5a0ed069b30176b1369223537d683f0
MD5 0e9068f3557d71136b15fee79c52edfb
BLAKE2b-256 258ef65bdda076fdb9fcb09107bb50925ad724fd17f58ebbce619aadcf45e808

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page