Asynchronous Python Wrapper for the GoFile API

Overview

pygofile Hits

Asynchronous Python Wrapper for the GoFile API (Unofficial).

Installation :

pip3 install pygofile

Usage :

>> from pygofile import Gofile

>> gofile = Gofile(token='') #  is your GoFile token

# or

>> gofile = Gofile() # as a guest

# to upload
>> data = await gofile.upload(file='/path/to/file.ext')

>> print(data)
{'downloadPage': 'https://gofile.io/d/OF8ctM', 'code': 'OF8ctM', 'parentFolder': '7a5cd11e-6fa34dda-44-bab5-c57d74d28d', 'fileId': 'e72b3dab-9190-48a0-9abe-89e45d1c0', 'fileName': 'file.ext', 'md5': '0aff68c0c302e07a52f4a1fbc5a687b', 'directLink': 'https://srv-store5.gofile.io/download/e72b3ab-9abe-8901c45d1c0/file.ext', 'info': 'Direct links only work if your account is a donor account. Standard accounts will have their links redirected to the download page.'}

>> download_url = data['downloadPage']

>> await gofile.delete_content(content_id='e72b3dab-9190-48a0-9abe-89e45d1c0')

Credits:

You might also like...
Aws-lambda-requests-wrapper - Request/Response wrapper for AWS Lambda with API Gateway

AWS Lambda Requests Wrapper Request/Response wrapper for AWS Lambda with API Gat

 Python: Asynchronous client for the Tailscale API
Python: Asynchronous client for the Tailscale API

Python: Asynchronous client for the Tailscale API Asynchronous client for the Tailscale API. About This package allows you to control and monitor Tail

 Python: Asynchronous client for the Open-Meteo API.
Python: Asynchronous client for the Open-Meteo API.

Python: Asynchronous client for the Open-Meteo API. Asynchronous client for the Open-Meteo API. About Open-Meteo offers free weather forecast APIs for

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python API wrapper around Trello's API

A wrapper around the Trello API written in Python. Each Trello object is represented by a corresponding Python object. The attributes of these objects

Async ready API wrapper for Revolt API written in Python.

Mutiny Async ready API wrapper for Revolt API written in Python. Installation Python 3.9 or higher is required To install the library, you can just ru

A Python API wrapper for the Twitter API!

PyTweet PyTweet is an api wrapper made for twitter using twitter's api version 2! Installation Windows py3 -m pip install PyTweet Linux python -m pip

Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

Comments
  • Sourcery refactored main branch

    Sourcery refactored main branch

    Branch main refactored by Sourcery.

    If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

    See our documentation here.

    Run Sourcery locally

    Reduce the feedback loop during development by using the Sourcery editor plugin:

    Review changes via command line

    To manually merge these changes, make sure you're on the main branch, then run:

    git fetch origin sourcery/main
    git merge --ff-only FETCH_HEAD
    git reset HEAD^
    

    Help us improve this pull request!

    opened by sourcery-ai[bot] 1
  • asyncio.exceptions.TimeoutError

    asyncio.exceptions.TimeoutError

    Hey! This is the error when uploading large files.

    ERROR:asyncio:Task exception was never retrieved
    future: <Task finished name='Task-28' coro=<Dispatcher._process_polling_updates() done, defined at C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=TimeoutError()>
    Traceback (most recent call last):
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
        for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
        return await asyncio.gather(*tasks)
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
        response = await handler_obj.handler(*args, **partial_data)
      File "C:\Users\Administrator\Desktop\\venv\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 256, in process_update
        return await self.message_handlers.notify(update.message)
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
        response = await handler_obj.handler(*args, **partial_data)
      File "C:\Users\Administrator\Desktop\\main.py", line 1348, in getlogs
        data = await gofile.upload(file=f'{file_path}')
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\pygofile\gofile.py", line 144, in upload
        data = await session.post(url, data=data_)
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiohttp\client.py", line 559, in _request
        await resp.start(conn)
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiohttp\client_reqrep.py", line 913, in start
        self._continue = None
      File "C:\Users\Administrator\Desktop\Bot\venv\lib\site-packages\aiohttp\helpers.py", line 718, in __exit__
        raise asyncio.TimeoutError from None
    asyncio.exceptions.TimeoutError
    
    opened by k3fjeee 0
Owner
Gautam Kumar
~ loser
Gautam Kumar
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
A telegram media to gofile bot

GoFile-Bot A telegram media to gofile bot Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License -> https://github.com/Fay

Fayas Noushad 37 Nov 14, 2022
Asynchronous Python Wrapper for the Ufile API

Ufile.io Asynchronous Python Wrapper for the Ufile API (Unofficial).

Gautam Kumar 16 Aug 31, 2022
ro.py is a modern, asynchronous Python 3 wrapper for the Roblox API.

GitHub | Discord | PyPI | Documentation | Examples | License Overview Welcome to ro.py! ro.py is an asynchronous, object-oriented wrapper for the Robl

ro.py 81 Dec 26, 2022
Asynchronous Guilded API wrapper for Python

Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for the Guilded API. If you know discord.py, you know guilded.py. Documentation

shay 115 Dec 30, 2022
Asynchronous Python API Wrapper for phisherman.gg

Asynchronous Python API Wrapper for phisherman.gg

Qrista Labs 4 Apr 30, 2022
Fully asynchronous trace.moe API wrapper

AioMoe Fully asynchronous trace.moe API wrapper Installation You can install the stable version from PyPI: $ pip install aiomoe Or get it from github

null 2 Jun 26, 2022
Asynchronous wrapper для Gismeteo.ru.

aiopygismeteo Асинхронная обёртка для Gismeteo.ru. Синхронная версия здесь. Установка python -m pip install -U aiopygismeteo Документация https://aiop

Almaz 6 Dec 8, 2022
Asynchronous wrapper for wttr.in weather forecast.

aiopywttr Asynchronous wrapper for wttr.in weather forecast. Synchronous version here. Installation pip install aiopywttr Example This example prints

Almaz 4 Dec 24, 2022
🖥️ Python - P1 Monitor API Asynchronous Python Client

??️ Asynchronous Python client for the P1 Monitor

Klaas Schoute 9 Dec 12, 2022