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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d7a8f1a8531a79cd22d4df86bbf47da877aa7d2a175afe33f4587b256dc513
|
|
| MD5 |
19c0725961764b556f6cf8a9fbc42ed4
|
|
| BLAKE2b-256 |
730aabd9082c31513a362feb6d2ec8c5a4c857d5bde7f6fdd43d027c88e8a4ec
|
File details
Details for the file masterblaster_py-0.1.0rc9-py3-none-any.whl.
File metadata
- Download URL: masterblaster_py-0.1.0rc9-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c43e51d359916d0214db7ef34fffd700a5a0ed069b30176b1369223537d683f0
|
|
| MD5 |
0e9068f3557d71136b15fee79c52edfb
|
|
| BLAKE2b-256 |
258ef65bdda076fdb9fcb09107bb50925ad724fd17f58ebbce619aadcf45e808
|