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.10.0.tar.gz (8.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.10.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thmapi-0.10.0.tar.gz
  • Upload date:
  • Size: 8.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.10.0.tar.gz
Algorithm Hash digest
SHA256 670a9a32f146cd7e754f76421b08d17b38fff6d48ecaf7105e02d3ec0fae3968
MD5 2886e3bdd7d5eb242813e4ecf0ce3b89
BLAKE2b-256 b72d229629e41982de6b4012209c8067a1488052ee9f2eb9f926273bef13e350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thmapi-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a035ab6a32b245dc490ec2d798d8599a3722732b1a72e861686a45e8989f16f
MD5 b2b6562b557206b65d7d0844b132600e
BLAKE2b-256 93f9359d33339a9f6035c1c65c20c6199421cfd936b7910df554333c3cf2e9be

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