skip to navigation
skip to content

uguuAPI 1.0.1

Python API Wrapper for Uguu.se

Python API Wrapper for Uguu.se. Uguu is a free temporary file hosting service.

  • Free software: BSD license

Installation

pip install uguuAPI

To get the bleeding edge version, see the repository at Github

Requirements

Usage

CLI

To upload a file simply run:

uguu path\to\file\here.txt                #uploads the file and returns the url. Don't forget the file extension!

To give the file a custom name:

uguu -n custom-name-with-extension.txt path\to\file\here.txt

To give the file a random name:

uguu -r path\to\file\here.txt

Python Module

To upload a file simply run:

from uguuAPI import uploadfile

url = uploadfile("path\to\file\here.txt") #uploads the file and returns the url. Don't forget the file extension!
print url                                 #https://a.uguu.se/randomstring_filename.txt

To give the file a custom name:

from uguuAPI import uploadfile

url = uploadfile("path\to\file\here.txt", name="custom-name-with-extension.txt")
print url                                 #https://a.uguu.se/randomstring_customname.txt

To give the file a random name:

from uguuAPI import uploadfile

url = uploadfile("path\to\file\here.txt", randomname=True)
print url                                 #https://a.uguu.se/randomstring.txt

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

  • Windows:

    set PYTEST_ADDOPTS=--cov-append
    tox
    
  • Other:

    PYTEST_ADDOPTS=--cov-append tox
    

Changelog

1.0.1 (2016-02-23)

  • Fixed random name option being used by default..

1.0.0 (2016-02-22)

  • Initial stable release.

0.1.0 (2016-02-20)

  • First release on PyPI.
 
File Type Py Version Uploaded on Size
uguuAPI-1.0.1-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2016-02-23 7KB
uguuAPI-1.0.1.tar.gz (md5) Source 2016-02-23 17KB