Skip to main content

The async wrapper for the Tixte API.

Project description

Documentation Status PyPI version

Banner_Thin

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:

  1. Going to the Tixte dashboard
  2. Pressing Control + Shift + I to open the developer console
  3. Entering the following command:
localStorage.getItem("sessionToken")
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tixte.py-1.0.3.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

tixte.py-1.0.3-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file tixte.py-1.0.3.tar.gz.

File metadata

  • Download URL: tixte.py-1.0.3.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tixte.py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ac3e73c701b0e2f3d2122e700bf7d37309a4a17029d869e3cae4402f51911701
MD5 899b64e53c67b37587a181debaa6a201
BLAKE2b-256 711a5ad8bab6f0bf99694e13e45be9b5aca50151a3087466078659c7fe24cd2e

See more details on using hashes here.

File details

Details for the file tixte.py-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: tixte.py-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for tixte.py-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0beded1213dc55b91b335f59025c22db5e648752d3fff59cfcb34396ec03cae8
MD5 8cec5d4a6e11695cfffc9905053550e0
BLAKE2b-256 843675c749222806afaf34aca2891ee5744fc1ccbdd34a8104482e686c69f4fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page