Skip to content

A small Python module for NoelShack API.

License

Notifications You must be signed in to change notification settings

noelprint/pynoelshack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PyNoelShack

A small Python module for NoelShack API.

Description

This module can be used as a library from any other Python script, or as a command-line tool.

Dependencies

Installation

To install this script as a command-line tool, do the following, assuming you got a personal bin directory:

cp pynoelshack.py ~/bin/pynoelshack
chmod +x ~/bin/pynoelshack

Examples

Python

from pynoelshack import NoelShack, NoelShackError

ns = NoelShack()

try:
    print(ns.upload('foo.png'))
except NoelShackError as e:
    print(str(e))

Command

python pynoelshack.py foo.png

Or, assuming you installed it in your PATH as pynoelshack:

pynoelshack foo.png

Feel free to alias it at your convenience.

About

A small Python module for NoelShack API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages