Skip to main content

THM public API wrapper

Project description

API Py

PyPI version
Python wrapper for TryHackMe public API
Officially sponsored and affiliated with TryHackMe

Installation

pip install thmapi

Usage

from thmapi import THM

creds = {
    'username': '<USERNAME>',
    'password': '<PASSWORD'
}

thm = THM(credentials=creds) # Logging in is optional

thm.get_stats() # {'publicRooms': 203, 'totalUsers': 88017, 'cloneableRooms': 967}

Contributing

You're welcome to create Issues/Pull Requests with features you'd want to see

License

MIT LICENSE

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

thmapi-0.10.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

thmapi-0.10.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file thmapi-0.10.2.tar.gz.

File metadata

  • Download URL: thmapi-0.10.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for thmapi-0.10.2.tar.gz
Algorithm Hash digest
SHA256 f193ec137fe26334537acb29793d8c509edd6fbf3f636b8eb1b1c41172ffef2d
MD5 711e50b70a7ff74602a24cdbb13d937f
BLAKE2b-256 ddf787de60043701e5aef086a0420e2fc785fc0b1654c9a68f2e21ee3f3c71aa

See more details on using hashes here.

File details

Details for the file thmapi-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: thmapi-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for thmapi-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80190485c50cf671ede1b71339c7951c4bb010d0850ba2dd6290d9b9591ac8af
MD5 c61dbcd411276f1d418faf7601f31705
BLAKE2b-256 5928298fff51364b9bc0b6fb167567c40a132cd9cc1ceeb0d61b004e7452968b

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