skip to navigation
skip to content

gs.core 2.1.1

Useful utility functions.

Introduction

This product contains some useful functions. They were originally written as part of the GroupServer project, but they are totally independent of GroupServer.

curr_time:
Get the current time, in UTC, as a datetime.datetime.
to_ascii:
Convert a string to ASCII, with a reasonable chance of success.
to_unicode_or_bust:
Convert a string instance to a Unicode instance, with reasonable chance of success.
comma_comma_and:
Turn a list of strings into a single strings, with commas.
to_id:
Create a random identifier, using a string as a seed.
convert_int2b62:
Convert an integer to a base-62 encoded string.
mailto:
Generate a correctly-quoted mailto: URI.
 
File Type Py Version Uploaded on Size
gs.core-2.1.1.zip (md5) Python Egg any 2014-05-06 21KB