Pendulum is a Python package to ease datetime's manipulation. It provides classes that are drop-in replacements for the native ones (they inherit from them). Special care has been taken to ensure timezones are handled correctly, and are based on the underlying tzinfo implementation. For example, all comparisons are done in UTC or in the timezone of the datetime being used. There are several different methods available to create a new DateTime instance. datetime() sets the time to 00:00:00 if it's not specified, and the timezone (the tz keyword argument) to UTC. Otherwise it can be a Timezone instance or simply a string timezone value. Pendulum gives access to more attributes and properties than the default datetime class. The __str__ magic method is defined to allow DateTime instances to be printed as a pretty date string when used in a string context. Simple comparison is offered up via the basic operators.