Skip to main content

Ufile.io Hits

Asynchronous Python Wrapper for the Ufile API (Unofficial).

Installation :

pip3 install ufile.io

Usage :

>> from ufile import Ufile

>> ufile = Ufile(api_key='<YOUR API KEY>') # <YOUR API KEY> is your ufile api key

# or

>> ufile = Ufile() # as a guest

# to upload
>> data = await ufile.upload_file(file='/path/to/text.bin')
>> print(data)
{'id': 9111424, 'url': 'https://ufile.io/2j9mqrug', 'destination': 'https://ufile.io/2j9mqrug', 'name': 'test.bin', 'filename': '2j9mqrug-1g3er.bin', 'slug': '2j9mqrug', 'size': '10.0 MB', 'type': 'other', 'expiry': '&infin;', 'location': '6'}

>> file_url = data['url']

>> direct_url = await ufile.download_file(url='https://ufile.io/2j9mqrug')
>> print(direct_url)
https://cdn-eu-hz-1.ufile.io/get/2j9mqxug?token=MDY2NzA4NDU4MzE0MGQwYmJmNWY2MjAyMjU5ZDI0ZDI2NGI3OWVhMTEwOGNiYzZkMzA0YjY0M2FiMTY1YWM2NzJmMjAwYzI2MjFjM2U4NGUwZGE2YmYzNTc1MmU0NzljN2JhZTQ3NDZmNmZjNjM2NTk0NTkwY2YwMGQ1OTliYTJxcmtxOTNKbXdRS3N3L1Y2aWZ6ZTNza2gwU1BQS2huayt2ckNwaFV2K2V6L01wR1ZaREtNalFmeG93T0Q4elBIcHFXOVZVemhRWDd5UUR4UmF4d0VlK2lXQ0ZkMllUYjNuT0RWQ0xtMlU1elBYjF1WG9Xbjg5Qll0Mm90ZVdheUlVeUVJMWkrRWcwUUxSUkVHK1lKaEdlV1RyeVhvcGZjYUR0MTM1ZjBvMVBrOXRhSW53WTdtMjFZTTk1dmpObXZHT3ZaZFc0Ukl2U2VDeDdRPT0=

>> await ufile.delete_file(file_id=9111424)

Credits: ⚡

Release files for ufile.io 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ufile.io 1.0.2
File Size Uploaded
ufile.io-1.0.2.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ufile.io 1.0.2
File Interpreter ABI Platform
ufile.io-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / ufile.io-1.0.2.tar.gz

Download URL ufile.io-1.0.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2ccf732cd96542e8a6fcdf01c695aa9ac46377f1b780b1733f1015697e5f11d
BLAKE2b-256 checksum
How to use checksums
e3d40cfcb3d590d6e7445069a3b7d67d5e65353383b7cea7f235faa1b2f9eb79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / ufile.io-1.0.2-py3-none-any.whl

Download URL ufile.io-1.0.2-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4936a3629177763c35c7ab76d5ec06e20c3bd9393a3f1c7780bf55ed29a5b8c2
BLAKE2b-256 checksum
How to use checksums
cc2ef9197051c15823800ec3ca2bbadeb08ea9a05bcbbbcdf33251b96652cd0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page