Teams Puppet
Manages microsoft accounts to retrieve teams JSON web tokens for automating tasks that are not supported by the graph API.
import teams_puppet
import requests
puppet = teams_puppet.Puppet("email", "password")
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"authorization": "Bearer " + puppet.get_token("teams"),
"X-ClientType": "MicrosoftTeamsAngular",
"X-HostAppRing": "general"
}
response = requests.get("https://teams.microsoft.com/api/example", headers=headers)
The token is fetched on puppet initialization. If the token expires, a new one will be fetched automatically.
The puppet can either fetch the teams token that uses the Skype backend scope or the token used to access loki.delve.office.com.
puppet = teams_puppet.Puppet("email", "password")
skype_token = puppet.get_token("teams")
loki_token = puppet.get_token("loki")
Installation
Available on PyPi pypi.org/project/teams-puppet/
pip install teams-puppet
Metadata
Release files for teams-puppet 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teams_puppet-0.2.0.tar.gz | 4.5 kB | Without provenance | Details for teams_puppet-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teams_puppet-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for teams_puppet-0.2.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / teams_puppet-0.2.0.tar.gz
| Download URL | teams_puppet-0.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad323474f8e2e455d80283f6d2394d2aea3b0523e1f68db2f73b32fe5538a0f3
|
|
BLAKE2b-256 checksum How to use checksums |
75b4fe3350324f8ce86b59bcb60f23605f2b5eb5966cf525ba00749df65dd17a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.4 Windows/10
|
Release files / teams_puppet-0.2.0-py3-none-any.whl
| Download URL | teams_puppet-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0141acf0a017d636654adf8e4930c716f1186aa2abdafb6bf7e9c23c5eafc76e
|
|
BLAKE2b-256 checksum How to use checksums |
9ba5e06640a5ac043a1f4772deec398f645f21fe9e53831c923d9eb3aeb5841a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.4 Windows/10
|
Security for teams-puppet 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.