semvec/pypi-packages huggingface dataset:
codebackup 1.0b1
A simple tool to backup your Github and Bitbucket repositories
License: MIT
Keywords: github bitbucket backup mercurial git

codebackup
==========

A simple command line tool to backup all of your Github and Bitbucket
repositories to the specified directory.

Installing
----------

Use one of the following commands (the later works in ActivePython)::

    $ sudo pip install codebackup
    
    $ pypm install codebackup

Usage
-----

::

    $ codebackup --github-user=srid --bitbucket-user=srid ~/Dropbox/codebackup

Credits
-------

- `github-simple-backup`_, original inspiration
- `Distribute`_
- `Buildout`_
- `modern-package-template`_

.. _`github-simple-backup`: http://github.com/jbalogh/github-simple-backup
.. _Buildout: http://www.buildout.org/
.. _Distribute: http://pypi.python.org/pypi/distribute
.. _`modern-package-template`: http://pypi.python.org/pypi/modern-package-template


.. This is your project NEWS file which will contain the release notes.
.. Example: http://www.python.org/download/releases/2.6/NEWS.txt
.. The content of this file, along with README.rst, will appear in your
.. project's PyPI page.

News
====

1.0b1
-----

*Release date: 11-Apr-2010*

* Initial release
obfuscate 0.2.2
Obfuscate text with classic encryption algorithms
License: MIT
Keywords: obfuscate,encryption,cipher,text

Obfuscation and classical encryption algorithms
-----------------------------------------------

Obfuscate and unobfuscate text using classical encryption algorithms.

Includes:

- rot13, rot5, rot18, rot47
- atbash
- Caesar cipher
- Keyword
- Affine
- Playfair, Playfair6, Playfair16
- frob (xor)
- Vigenere
- RailFence
- plus others.

Requires Python 2.5 or 2.6.
INI 0.1
Simple json/pickle like ini-file parsing.
License: MIT

INI provides simple and easy parsing and creating of flat and nested ini files.
        
        It's as simple as ``ini.load("your.ini")`` or
        ``ini.dump(open("your.ini", "wb"), {"foo": {"spam": "eggs"}})``.
        
        INI is completely tested and documented, if you run into any problems contact
        the maintainer or `create a new issue on bitbucket
        <http://bitbucket.org/DasIch/ini/issues/new/>`_.
sql_interp 0.1.0
Interpolate Python variables into SQL statements.
License: MIT
Keywords: sql interpolation database

==========
sql_interp
==========

Safely and easily interpolate Python variables into SQL based upon context.  Most
of your interaction with this package will be through the ``SQLInterp`` class::

    >>> from sql_interp import SQLInterp

    >>> person = {'last_name': 'Doe'}
    >>> criteria = {'first_name': ['Jane', 'John']}

    # Create an instance of SQLInterp and use the interp method to get the SQL and bind
    # variables ready to pass to your database cursor.
    >>> sqli = SQLInterp()
    >>> sqli.interp("UPDATE people SET", person, "WHERE", criteria)
    ('UPDATE people SET last_name = ? WHERE first_name IN (?, ?)', ('Doe', 'Jane', 'John'))

Caution
========

sql_interp works by assuming that any non-string variables passed to ``interp`` need
to be treated as bind variables.  This means that any arguments passed that are strings
will be treated as raw SQL.  If you are not careful, this could lead to a SQL injection
attack.  To avoid this, if there is any chance at all that a variable is a string, you
must tell sql_interp that it is not raw SQL.  You can do this with the ``esc`` method of
the ``SQLInterp`` object.

Here is an example::

    >>> sqli = SQLInterp()
    >>> first_name = 'John'

    # The following is wrong!  This could lead to a SQL injection attack.
    >>> sqli.interp("SELECT * FROM table WHERE first_name =", first_name)
    ('SELECT * FROM table WHERE first_name = John', ())

    # This is the correct way.
    >>> sqli.interp("SELECT * FROM table WHERE first_name =", sqli.esc(first_name))
    ('SELECT * FROM table WHERE first_name = ?', ('John',))

This does not apply if the string is a value in a list or dictionary as in the other
examples in this documentation.

Examples
========

The ``SQLInterp`` object can handle interpolating many different types::

    >>> age = 25
    >>> first_names = ['Jenny', 'John', 'Jeremy']
    >>> sqli.interp("UPDATE people SET age =", age, "WHERE first_names IN", first_names)
    ('UPDATE people SET age = ? WHERE first_names IN (?, ?, ?)', (25, 'Jenny', 'John', 'Jeremy'))

Interpolation is context sensitive, so the same type will be interpreted into SQL
correctly for its usage::

    >>> punk_rockers = {'hair': 'pink', 'tattoos': 'three'}
    >>> accessories = {'piercings': 6, 'pants': 'vinyl'}
    >>> sqli.interp("UPDATE people SET", accessories, "WHERE", punk_rockers)
    ('UPDATE people SET pants = ?, piercings = ? WHERE hair = ? AND tattoos = ?', ('vinyl', 6, 'pink', 'three'))

Acknowledgments
===============

This project is an indirect port of Perl's `SQL::Interp <http://search.cpan.org/dist/SQL-Interp/>`_.