Skip to main content

THM public API wrapper

Project description

thmapi

PyPI version
Python wrapper for TryHackMe API

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.7.0.tar.gz (5.6 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.7.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thmapi-0.7.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for thmapi-0.7.0.tar.gz
Algorithm Hash digest
SHA256 487a622a420bb1f8302ed23deae38f1726a7bf7d57266bf2c09f3325376bf1e0
MD5 a16e19df99680271f5b7bda08827ccda
BLAKE2b-256 412985a5162e099baf399f113698cf56e28868435f3d2215e8cdaa21a4ae546a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for thmapi-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dabb788125159de1cf7f32bbc122990f0866eb3880a1fba711aaa140b45f975b
MD5 973f0c6431214ca85683cd5bcfd0c6f3
BLAKE2b-256 aae7cedfaa62cde84e7fbdab94823f9bcabcefd225c6c04efc2dabed8b4c3e69

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