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

Uploaded Python 3

File details

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

File metadata

  • Download URL: thmapi-0.7.1.tar.gz
  • Upload date:
  • Size: 5.7 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.1.tar.gz
Algorithm Hash digest
SHA256 939716bb1fd0962bc0d1b11b09768cf3db2d372cf425cdc16f321b52605c0598
MD5 f8045d3f2895d3a8b7608ecb6874ff60
BLAKE2b-256 82b9294c311703086a238a6cde0437e71b1771348f4abf50f1a5d0c891558b44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.7.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db4d5ff6c1d06083f57c205a3abdc6c394b166f00837298ff9323a0eff6d13ff
MD5 38bbe79bfe7de1718b05ad09baaf3925
BLAKE2b-256 d1df2ed54f93183fa9f4943b8984fb75ed5bce7693965b172e6385cf9baf9b5e

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