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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ac876ed79e02df75f359dc27b5d670ed14b234545a0b1b002e72a01ade4f8e
|
|
| MD5 |
cbd9c1ea7984d096a2f6c77088dc14ce
|
|
| BLAKE2b-256 |
ccdef970252b408fd2aa283227fe82bf6a2fec00a47dfcaa3765f94d7703ce48
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67085c720458080d11f9a9a8c775973bde43b4f756dd2822aee8cd75959d0fe5
|
|
| MD5 |
f0ce27c01464bf6088c0532d328be390
|
|
| BLAKE2b-256 |
2fe34bff3fa6e7598ebd10a94af3496fbcaeddd42346d8d3b3741c7d600b76a7
|