Skip to main content

A simple wrapper for the Torn API

Project description

Simple Torn Wrapper

A simple basis wrapper for the torn API. Handles sending and converting the response into a Python dictionary.

An example of the usage:

from simple_torn_wrapper import TornWrapper
wrapper = TornWrapper(api_key='API_KEY')  # Find your API key in Torn
selections = ['selection1','selection2']  # Examples of selections are listed in the Torn API.
section = 'user'  # Other sections can be found in Torn API
data = wrapper.request(section, id, selections)

These can be chosen from the API as referenced on: https://www.torn.com/api.html#. Section is one of the 6 main categories and selections should be a list of strings.

Any issues or help required:

Discord @ https://discord.gg/myTajWNU6q

or by issue @ https://github.com/SolitudalDeveloper/SimpleTorn/issues

or by email @ innominatusofficial@gmail.com

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

simple-torn-wrapper-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_torn_wrapper-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file simple-torn-wrapper-0.0.3.tar.gz.

File metadata

  • Download URL: simple-torn-wrapper-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for simple-torn-wrapper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c9ac876ed79e02df75f359dc27b5d670ed14b234545a0b1b002e72a01ade4f8e
MD5 cbd9c1ea7984d096a2f6c77088dc14ce
BLAKE2b-256 ccdef970252b408fd2aa283227fe82bf6a2fec00a47dfcaa3765f94d7703ce48

See more details on using hashes here.

File details

Details for the file simple_torn_wrapper-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: simple_torn_wrapper-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for simple_torn_wrapper-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 67085c720458080d11f9a9a8c775973bde43b4f756dd2822aee8cd75959d0fe5
MD5 f0ce27c01464bf6088c0532d328be390
BLAKE2b-256 2fe34bff3fa6e7598ebd10a94af3496fbcaeddd42346d8d3b3741c7d600b76a7

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