Skip to main content

Functions and classes for many purposes, that I use all the time in multiple programs.

The fact that these are just bits and pieces does not prevent them from having bugs, so they are under version control at http://code.google.com/p/bag

Hopefully there’s something for you here!

Currently, the library requires Python 2.6.x.

Library contents

  • csv – The infamous csv Python module does not support unicode; problem solved.

  • file_id_manager – Use this to hash your files, store the hashes, and know when you already have some file.

  • google_translator – Use the Google translation webservice to translate text.

  • html – Encode and decode HTML and XML entities.

  • more_codecs – Got text in some weird encoding that Python doesn’t know? OK, use iconv to decode it.

  • percentage_done – Don’t leave your user wondering if your program is hanging; print the percentage of work done every few seconds.

  • sa – Convenient SQLALchemy initialization, and some types for working with SQLite.

  • text – Functions for working with unicode strings.

Release history Release notifications | RSS feed

5.0.1

2 files

5.0.0

2 files

4.0.0

2 files

3.1.0

2 files

3.0.0

2 files

2.1.0

2 files

2.0.0

2 files

1.3.0

2 files

1.2

2 files

1.1.0

2 files

1.0.0

2 files

0.9.0

2 files

0.8.0

1 file

0.7.0

1 file

0.6.1

1 file

0.6.0

1 file

0.5.0

1 file

0.4.5

1 file

0.4.4

1 file

0.4.3

1 file

0.4.2

1 file

0.4.1

1 file

0.4.0

1 file

0.3.12

1 file

0.3.11

1 file

0.3.10

1 file

0.3.9

1 file

0.3.8

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

0.3

0.2.0

0.1.2

0.1.1

This release

0.1.0 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page