Skip to main content

THM public API wrapper

Project description

thmapi

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.9.2.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.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thmapi-0.9.2.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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for thmapi-0.9.2.tar.gz
Algorithm Hash digest
SHA256 a89cc453dea2ac553d717b7c3f2e50bfe878c359112061db87901c50caab25c5
MD5 5b95496243df6e86f6ce56a455c1e682
BLAKE2b-256 64509103150e29ab7ab6380debceba499448230f3f4fb7e7268328d376b28017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8208a3f787f1c3493811588a9c3a73f0590fd8cfe98d5bf1c62875f1bba46d67
MD5 8af873923148dac48e773df2219592b5
BLAKE2b-256 6cf19d802a6894152ec5bb1b7bdd354d232eaa664f5322e05b6d33e0e0032e89

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