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.9.0.tar.gz (6.3 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.9.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for thmapi-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1daea08dd2333426fc4bab02e7f06a5c12e91267e088e60931462a77423b2f27
MD5 dbbb0fb077241affa6f5a73380e11860
BLAKE2b-256 ce43f4b66fe4b3c1cd006847cdbc1added66bd9a9a8c5e2c71135fa35669470e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for thmapi-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b943b4a0756075ebd81a33a3c69ea22b54a5bee5638dca4a4926e8627e6248b
MD5 a9a082ada44a018722f44d86dcb7ce1e
BLAKE2b-256 ea1f5281d867009e880032002b93dc09c458f5e789d4c3d8190a507f3a1c434d

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