Skip to main content

Useful utility functions.

Project description

Author:

Michael JasonSmith

Contact:
Michael JasonSmith <mpj17@onlinegroups.net>
Date:
2015-10-15
Organization:
GroupServer.org

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.

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gs.core-2.1.1.zip (21.6 kB view details)

Uploaded Source

File details

Details for the file gs.core-2.1.1.zip.

File metadata

  • Download URL: gs.core-2.1.1.zip
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gs.core-2.1.1.zip
Algorithm Hash digest
SHA256 80cf7e2aa25e4b44dcd2f6cc2b67a0c94e3289dfa76434339d72ac9ae299c82b
MD5 1d18afe34bb2d7ce6187ce9ea909e916
BLAKE2b-256 f0e68616c9e395ac4fb7f303431adbc08410d84a548c0959c73c1932d026ac7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page