The async wrapper for the Tixte API.
Project description
import asyncio
import tixte
async def main():
client = tixte.Client('your-master-token', 'your-domain')
file = tixte.File('this_image.png')
async with client:
upload = await client.upload(file) # Upload file
print(f'Uploaded file {upload.url} - {upload.filename}')
asyncio.run(main())
Installing
Recommended Python 3.8.0 or higher
To install the library you can do the following
# Linux / MacOS
python -m pip install tixte.py
# Windows
py -m pip install tixte.py
Installing Master Branch
python -m pip install git+https://github.com/NextChai/tixte.py
Obtaining Your Master Token
A master token is a token given by Tixte to allow applications to access and make requests to the API. It can be obtained by:
- Going to the Tixte dashboard
- Pressing
Control + Shift + I
to open the developer console - Entering the following command:
localStorage.getItem("sessionToken")
- The response outputted into the console is your master token.
Documentation
Documentation is available here.
Please note the layout and style for the documentation and all of the source that goes along with it is directly from Rapptz/discord.py.
All credit for the source of the documentation goes to Rapptz and his group is contributors. In my experience with sphinx, there is nothing close to how well put together this style of documentation is, it's a pleasure to work with it.
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
File details
Details for the file tixte.py-1.0.2.tar.gz
.
File metadata
- Download URL: tixte.py-1.0.2.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ca8cdc0bede3f9fb642362b98919745093572464e7357906e769c0d1d64a21 |
|
MD5 | c8b1b49f40bd35446bfee62a0e3f3971 |
|
BLAKE2b-256 | aaaeb8fb6b24883ae31deb1255b32b80e9587ba9430d2eedd1461d2778f51e56 |
File details
Details for the file tixte.py-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: tixte.py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a568df9c19f2172deeabdefef9786c19a51e08cde9c397401ba3fc90816dc1c9 |
|
MD5 | 084cf2022419ac881a378f8ae2c4a136 |
|
BLAKE2b-256 | e0b459266a7fba4dd3924bb21b8a97c1903c47ed13b11cf0182ea8e22c49f769 |