This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

pyglib provides a clean, consistent setup for writing commandline scripts and applications in Python. It makes use of python-gflags and python-glog, and adds an app startup helper that deals with initialization boilerplate so you don’t have to think about it.

Example usage:

#!/usr/bin/env python

from pyglib import app, gflags, log

gflags.DEFINE_integer('bananas', 7, 'Number of bananas.')

FLAGS = gflags.FLAGS

def main(args):'There are %s bananas.', FLAGS.bananas)
    log.debug('This will only show up if you run with --verbosity=10')

if __name__ == __main__:

The above module is usable as a commandline app, complete with argument parsing and validation. It automatically has a few flags like --help and --verbosity that come from gflags and glog. Any positional arguments left over after parsing flags are passed along to the main() function.

This example module can also be imported as a library for use in another app. When used that way, any script that imports this one will inherit the --bananas flag defined here.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyglib-0.1.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Jul 16, 2015

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