Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
uguuAPI-1.0.1-py2.py3-none-any.whl (8.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Feb 23, 2016
uguuAPI-1.0.1.tar.gz (18.3 kB) Copy SHA256 Checksum SHA256 Source Feb 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting