Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python API Wrapper for Uguu.se

Project description

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.

Project details


Release history Release notifications

This version
History Node

1.0.1

History Node

1.0.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
uguuAPI-1.0.1-py2.py3-none-any.whl (8.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Feb 23, 2016
uguuAPI-1.0.1.tar.gz (18.3 kB) Copy SHA256 hash SHA256 Source None Feb 23, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page