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.3.tar.gz (5.9 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.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thmapi-0.7.3.tar.gz
  • Upload date:
  • Size: 5.9 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.3.tar.gz
Algorithm Hash digest
SHA256 262ae73d4bfdc37a51a096c18f03f1f2b527c91f246c22230c98e54c1bd8855f
MD5 f535cfff4ca9b84a20b62170962b5a15
BLAKE2b-256 076d37e99aa042f606600dd8be59412cb1f1ab9421f3d7d659fa2e855b0e3fec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e97cdd0975a453c9865885e5471a8d912da1b9cd7cd89d8eb64bd8447a542c95
MD5 527249eb0beb203c23f31f27c1e5f7ad
BLAKE2b-256 7009965cb720ba5ed0f4f2f547a9e1e82c36d60447a1de881afb5e938646dfa3

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