Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.548.895 Times

pytimeago r11

  Date Added: January 18, 2010  |  Visits: 597

pytimeago

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)



pytimeago is a human-oriented representation of time deltas, a Python library. First, I shall define what time delta is. Since Δ generally means “difference”, we take time delta to stand for difference between two events in time. Quite common, however, is to have the current time for the second event. In pytimeago we deal with time deltas from such a perspective. Quite possibly, you can make use of this library if your application displays some dynamically generated items to the user, and you are looking for a good way to present information on how long ago specific item was created/processed/whatever. Below is small code snippet demonstrating how simple it is to embed pytimeago: from pytimeago.english import english from time import time, sleep message = queue.getNextMessage() delta = time() - message.arrived_time print "Message arrived %s" % english(delta) Prints, e.g. Message arrived 15mins ago As you see, pytimeago is package, and has individual modules for every language supported. As of 2006-08-13 the only supported language is English. However, you can take a look at rather trivial implementation of English engine, write one for your language, and send it to to me (email at the bottom of page). Every language should come with a set of doctests (I prefer them to casual unit tests), just like the English version does. Dont be too verbose, but check essential cases.. This is a small Python library that transforms numerical difference between timestamps into human-readable strings like '3h ago' or 5 'months ago'.

Requirements: No special requirements
Platforms: Linux
Keyword: Deltas English Libraries Library Programming Python Library Pytimeago Representation Time
Users rating: 0/10

License: Freeware Size: 2.05 KB
USER REVIEWS
More Reviews or Write Review


PYTIMEAGO RELATED
Development Editors  -  SNMP library for Python 4.2.1
SNMP library for Python is a development tool that aims to develop native SNMP technology support for the Python programming environment. The SNMP library for Python comes with a complete SNMPv1/v2c and SNMPv3 engine support.
 
Code Management Tools  -  Python library for PS3 0.1.2
Python library for PS3 (Sony Playstation 3) game development under Linux. Includes: rendering to the PS3 frame buffer on a per pixel basis or with blittable objects (solid, masked or alpha blended), support for PS3 controllers and integration with...
43.01 KB  
Libraries  -  vobject 0.3.0
vobject is a Python library for processing iCalendar and vCard information. vobject library allows programs to manipulate standard Python objects like datetimes, and tzinfo classes for time zones without worrying too much about iCalendar...
35.84 KB  
Libraries  -  Python Call Graph 0.4.0
Python Call Graph (pycallgraph) is a Python library that creates call graphs for Python programs pycallgraph is quite new. It seems to work well and I will most likely improve it in the near future!. Gravit is a free gravity simulator.
4.1 KB  
Libraries  -  Xmpppy 0.4.0
Xmpppy is a Python library that is targeted to provide easy scripting with Jabber. Similar projects are Twisted Words and jabber.py. This library was not designed from scratch. It inherits some code from jabberpy and have very similar API in...
256 KB  
Libraries  -  pyXLWriter 0.4a3
pyXLWriter is a Python library for generating Excel spreadsheets. Its a port of John McNamaras Spreadsheet::WriteExcel Perl module. To install run python setup.py install in the root of the distribution. Whats New in This Release: - Simple...
153.6 KB  
Programming  -  Eagle 0.7
Eagle project is a python library to help GUI development. Eagle is an abstraction layer atop Graphical Toolkits to make GUI programming as easy as possible. Eagle reaches this by narrowing whats possible to do and providing high level...
921.6 KB  
Libraries  -  libdisassemble
libdisassemble is a Python library that will disassemble X86. A disassembler is a computer program which translates machine language into assembly language, performing the inverse operation to that of an assembler. A dissasembler differs from a...
23.55 KB  
Libraries  -  Simple XML Configuration Library 0.3.6
Simple XML Configuration Library an XML library for parsing a simple configuration file format. Simple XML Configuration Library is actively developed for *nix, Mac OS X and *BSD. The goal of the project is to provide a library that can be...
22.53 KB  
Libraries  -  pkipplib 0.07
pkipplib is a Python library which can prepare IPP requests with the help of a somewhat high level API. These requests can then be sent to an IPP printer or print server (e.g. CUPS). pkipplib library can also parse IPP answers received, and...
15.36 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB