A simple wrapper for the Torn API
Project description
Simple Torn Wrapper
A simple basis wrapper for the torn API. Handles sending and decoding the request.
To use
from Wrapper import TornWrapper
wrapper = TornWrapper(api_key='API_KEY')
data = wrapper.request(section, id, selections)
where section is either: torn, user, faction, properties, company, market. ID should be a string/int and selections should be a python list of strings.
e.g ['stocks','levels']. These can be chosen from the API as referenced on: https://www.torn.com/api.html#. The data will be in dictionary form.
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.2.tar.gz.
File metadata
- Download URL: simple-torn-wrapper-0.0.2.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 |
ef5896cbf7462c2c959c30903beec88b44d1669ea55a415f6ddba78ae6ca7788
|
|
| MD5 |
f065547dc6f474a9f91b731c32608f88
|
|
| BLAKE2b-256 |
74c358e7db964b79f15b13ce19f89796555e30f7f33c35faa21eecffd78164cb
|
File details
Details for the file simple_torn_wrapper-0.0.2-py3-none-any.whl.
File metadata
- Download URL: simple_torn_wrapper-0.0.2-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 |
fc6c9fe6f7d2c85ace8c9aa9d7ffc0c456dec6b23679001c11ed5188d458d5db
|
|
| MD5 |
484638653024e48ee0f5d6e46cb2c436
|
|
| BLAKE2b-256 |
aca1424502f0539efbfa0ca8df9c4f35942cb0c0fba9181d1a0904d0aba38766
|