Skip to content

A Python library that makes uploading files to file upload sites easy--all within your Python program.

License

Notifications You must be signed in to change notification settings

D7EAD/libupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

libupload

A Python library to upload files--easily.


libupload is a Python library that allows users to seamlessly upload files to remote upload sites within their programs without having to deal with all the HTTP(S) nonsense.

As of now, there are only three APIs in libupload--AnonFile, BayFiles, and File.io. Their identifiers can be found below:
  API_ANONFILE = 0x0
  API_BAYFILES = 0x1
  API_FILE_IO = 0x2



Files can be uploaded very easily within programs. You can find an example below:

def main():
  u = Uploader()
  pathToFile = "path here"
  u.sendFiles(API_ANONFILE, pathToFile)
main()



The URL to access your uploaded files will be stored in the object's url member and can be accessed like so:

def main():
  u = Uploader()
  pathToFile = "path here"
  u.sendFiles(API_ANONFILE, pathToFile)
  print(u.url)
main()
Output:
  https://anonfiles.com/NaV9dwaCap9



You can also access members response and status for the entire JSON response or JSON status code.

About

A Python library that makes uploading files to file upload sites easy--all within your Python program.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages