Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
German Gomez-Herrero committed Aug 28, 2014
1 parent 96f38a9 commit e189df5
Show file tree
Hide file tree
Showing 15 changed files with 1,254 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .ropeproject/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# The default ``config.py``


def set_prefs(prefs):
"""This function is called before opening the project"""

# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_files()`.
# Note that ``?`` and ``*`` match all characters but slashes.
# '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
# 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
# '.svn': matches 'pkg/.svn' and all of its children
# 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
# 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
'.hg', '.svn', '_svn', '.git']

# Specifies which files should be considered python files. It is
# useful when you have scripts inside your project. Only files
# ending with ``.py`` are considered to be python files by
# default.
#prefs['python_files'] = ['*.py']

# Custom source folders: By default rope searches the project
# for finding source folders (folders that should be searched
# for finding modules). You can add paths to that list. Note
# that rope guesses project source folders correctly most of the
# time; use this if you have any problems.
# The folders should be relative to project root and use '/' for
# separating folders regardless of the platform rope is running on.
# 'src/my_source_folder' for instance.
#prefs.add('source_folders', 'src')

# You can extend python path for looking up modules
#prefs.add('python_path', '~/python/')

# Should rope save object information or not.
prefs['save_objectdb'] = True
prefs['compress_objectdb'] = False

# If `True`, rope analyzes each module when it is being saved.
prefs['automatic_soa'] = True
# The depth of calls to follow in static object analysis
prefs['soa_followed_calls'] = 0

# If `False` when running modules or unit tests "dynamic object
# analysis" is turned off. This makes them much faster.
prefs['perform_doa'] = True

# Rope can check the validity of its object DB when running.
prefs['validate_objectdb'] = True

# How many undos to hold?
prefs['max_history_items'] = 32

# Shows whether to save history across sessions.
prefs['save_history'] = True
prefs['compress_history'] = False

# Set the number spaces used for indenting. According to
# :PEP:`8`, it is best to use 4 spaces. Since most of rope's
# unit-tests use 4 spaces it is more reliable, too.
prefs['indent_size'] = 4

# Builtin and c-extension modules that are allowed to be imported
# and inspected by rope.
prefs['extension_modules'] = []

# Add all standard c-extensions to extension_modules list.
prefs['import_dynload_stdmods'] = True

# If `True` modules with syntax errors are considered to be empty.
# The default value is `False`; When `False` syntax errors raise
# `rope.base.exceptions.ModuleSyntaxError` exception.
prefs['ignore_syntax_errors'] = False

# If `True`, rope ignores unresolvable imports. Otherwise, they
# appear in the importing namespace.
prefs['ignore_bad_imports'] = False


def project_opened(project):
"""This function is called after opening the project"""
# Do whatever you like here!
1 change: 1 addition & 0 deletions .ropeproject/globalnames
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�}qU progressbar]s.
1 change: 1 addition & 0 deletions .ropeproject/history
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�]q(]q]qe.
1 change: 1 addition & 0 deletions .ropeproject/objectdb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�}q.
70 changes: 70 additions & 0 deletions ChangeLog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
2012-12-22:
- Added the AdaptiveETA widget contributed Oscar Benjamin on
http://code.google.com/p/python-progressbar/issues/detail?id=22.

2011-05-15:
- Removed parse errors for Python2.4 (no, people *should not* be using it
but it is only 3 years old and it does not have that many differences)

- split up progressbar.py into logical units while maintaining backwards
compatability

- Removed MANIFEST.in because it is no longer needed and it was causing
distribute to show warnings


2011-05-14:
- Changes to directory structure so pip can install from Google Code
- Python 3.x related fixes (all examples work on Python 3.1.3)
- Added counters, timers, and action bars for iterators with unknown length

2010-08-29:
- Refactored some code and made it possible to use a ProgressBar as
an iterator (actually as an iterator that is a proxy to another iterator).
This simplifies showing a progress bar in a number of cases.

2010-08-15:
- Did some minor changes to make it compatible with python 3.

2009-05-31:
- Included check for calling start before update.

2009-03-21:
- Improved FileTransferSpeed widget, which now supports an unit parameter,
defaulting to 'B' for bytes. It will also show B/s, MB/s, etc instead of
B/s, M/s, etc.

2009-02-24:
- Updated licensing.
- Moved examples to separated file.
- Improved _need_update() method, which is now as fast as it can be. IOW,
no wasted cycles when an update is not needed.

2008-12-22:
- Added SimpleProgress widget contributed by Sando Tosi
<matrixhasu at gmail.com>.

2006-05-07:
- Fixed bug with terminal width in Windows.
- Released version 2.2.

2005-12-04:
- Autodetection of terminal width.
- Added start method.
- Released version 2.1.

2005-12-04:
- Everything is a widget now!
- Released version 2.0.

2005-12-03:
- Rewrite using widgets.
- Released version 1.0.

2005-06-02:
- Rewrite.
- Released version 0.5.

2004-06-15:
- First version.
- Released version 0.1.
52 changes: 52 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
You can redistribute and/or modify this library under the terms of the
GNU LGPL license or BSD license (or both).

---

progressbar - Text progress bar library for python.
Copyright (C) 2005 Nilton Volpato

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

---

progressbar - Text progress bar library for python
Copyright (c) 2008 Nilton Volpato

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

a. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
b. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
c. Neither the name of the author nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.txt LICENSE.txt
include examples.py
19 changes: 19 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Text progress bar library for Python.

A text progress bar is typically used to display the progress of a long
running operation, providing a visual cue that processing is underway.

The ProgressBar class manages the current progress, and the format of the line
is given by a number of widgets. A widget is an object that may display
differently depending on the state of the progress bar. There are three types
of widgets:
- a string, which always shows itself

- a ProgressBarWidget, which may return a different value every time its
update method is called

- a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
expands to fill the remaining width of the line.

The progressbar module is very easy to use, yet very powerful. It will also
automatically enable features like auto-resizing when the system supports it.
Loading

0 comments on commit e189df5

Please sign in to comment.