Giter Club home page Giter Club logo

tixte.py's Introduction

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.

tixte.py's People

Contributors

trevorflahardy avatar mccoderpy avatar

Stargazers

Natya Vidhan Biswas avatar Quirky Devil avatar Mohamed Ashraf avatar  avatar TheHackerCoding avatar  avatar  avatar

Watchers

 avatar Mohamed Ashraf avatar

Forkers

mccoderpy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.