A python wrapper for Gofile REST API
Project description
Gofilepy - Python wrapper for Gofile API
Installation
Install Gofilepy with pip (NOT ACTIVE YET)
pip install gofilepy
Usage/Examples
from gofilepy import GofileClient
client = GofileClient(token="") #Get token from gofile.io. Only premium accounts have access
#Free users can this function
file = client.upload(file=open("./test.txt", "rb"))
print(file.name)
print(file.page_link) #View and download file at this link
#BFunctions shown below are premium users only
account = client.get_account()
print(account.email)
print(account.tier)
root_folder_id = account.root_id
root = client.get(root_folder_id)
child = client.create_folder("NEW_FOLDER", parent_id=root.content_id)
child.set_option("password", "secret_password") #Set password to "secret_password". More options available https://gofile.io/api
Links
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for gofilepy_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ad4fa6778952a34602cfebbc080bd87290dbd323c57de7c671a2bbbb1eebf9 |
|
MD5 | 3fc00c086f608eea7548020d389caffb |
|
BLAKE2b-256 | 435b2e591f125018bd37a8c0d01ab99cd8d07f6ecd0ef00d9a35d00d3b9349c0 |