Python API wrapper for masterblaster.gg
Project description
Masterblaster.py
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
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for masterblaster_py-0.1.0rc7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea31ec8affb91f1743bf98983085bd38ffeffb066e7194c60b3471afdfa4ae1e |
|
MD5 | bf3875f8145e7d330cdf14d6e856ec56 |
|
BLAKE2b-256 | e7fceb6ec488fe8e847862a0258657fe5db0b930f0266402ab09591a9672b93c |
Close
Hashes for masterblaster_py-0.1.0rc7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b1ae5c9af29ee9ad8e71a8f0eb3c5d62e78304d0d44fce3f899f389cd6fccd |
|
MD5 | aa476220a6a871b2bb8f2fe5473afe3c |
|
BLAKE2b-256 | d1600cb04233beeb3fbda76938995d86a0aa6753f7faf75061dbdef6b6795834 |