semvec/pypi-packages huggingface dataset:
xmastree 0.0.5a
merry xmas
License: BSD
Keywords: xmastree

===============================
xmastree
===============================


merry xmas

**install**

    pip install xmastree

or

    python setup.py install

**usage**

python：

    In [1]: __import__('xmastree').XmasTree().show()
                                       *
                                      / \
                                      / \
                                     /   \
                                     /  @\
                                    /  @  \
                                    / !  $\
                                   /      ^\
                                   /#   !  \
                                  /^        \
                                  /         \
                                 /!  #     $ \
                                 /         $ \
                                /^            \
                                /         % ! \
                               /&@# ^@      !  \
                               /    #          \
                              /@  &  $ #%       \
                             /___________________\
                                      | |


shell：

    ashin@hasee:~
    > xmastree
                                       *
                                      / \
                                      / \
                                     /   \
                                     /   \
                                    /  !  \
                                    / %$  \
                                   / ^ &   \
                                   / @     \
                                  /   #^    \
                                  /  $!     \
                                 /       %   \
                                 /           \
                                /$            \
                                / #     %     \
                               /     &   !     \
                               /   %  #        \
                              / @&  %#      @   \
                             /___________________\
                                      | |

    ashin@hasee:~
    > xmastree -H 10 -C 140
                                                                     *
                                                                    / \
                                                                    / \
                                                                   /  $\
                                                                   /  %\
                                                                  /     \
                                                                  /%    \
                                                                 /     ! \
                                                                /_________\
                                                                    | |
measure-it 0.4.1
time and count measurement for iterators and other code
License: BSD

measure_it
==========

`measure_it <http://github.com/wearpants/measure_it>`__ provides timing and counting for iterators (and other code segments). It can be used to:

* monitor runtime behavior in production systems
* conduct performance benchmarks
* easily generate plots/graphs and statistics

Get it from the cheeseshop today:

  `pip install measure_it`

:author: Pete Fein <pete@wearpants.org>
:license: BSD
:versions: Python 2.7 & 3
:source: https://github.com/wearpants/measure_it
:homepage: https://measure_it.readthedocs.org/en/latest/
:video: https://www.youtube.com/watch?v=A_C4Z4RDDgI
django-everlasting-sessions 0.0.4
Django middleware that prevents user sessions from expiration.
License: BSD

django-everlasting-sessions
===========================

This Django middleware prevents user sessions from expiration.


Problem
=======

When using ``django.contrib.sessions.middleware.SessionMiddleware``, Django only saves the session cookie when a session is modified. On a typical site that only happens when a user logs in. In two weeks this session cookie expires and the user is prompted to login again, even if he's been actively using the site.


Solution
========

**django-everlasting-sessions** provides a middleware that will update session cookies once in a while (every day by default), provided there is some activity from the user.


Installation
============

::

	pip install django-everlasting-sessions


Usage
=====

Add the middleware to ``settings.py``:

.. code:: python

	MIDDLEWARE_CLASSES = [
		...
		'django.contrib.sessions.middleware.SessionMiddleware',
		'django_everlasting_sessions.UpdateSessionMiddleware',  # Must go after SessionMiddleware
		...
	]


The rest will happen automatically.


Options
=======

The following default is used which you can override in ``settings.py``:

.. code:: python

	SESSION_COOKIE_REFRESH = 86400  # Interval in seconds.