Skip to main content

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


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

gofilepy_api-0.1.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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