semvec/pypi-packages huggingface dataset:
djangocms-placeholder-attr 1.0.3
Allow you to call a plugin model attribute from a placeholder in django-cms
License: MIT

Django CMS Placeholder Attribute
================================

Description
===========

``djangocms-placeholder-attr`` allow you to call a plugin model
attribute from a placeholder in
`django-cms <https://github.com/divio/django-cms>`__

Depends
=======

-  `django-cms <https://github.com/divio/django-cms>`__

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

-  use pip ``pip install djangocms-placeholder-attr``
-  Put in your INSTALLED\_APPS:
   ``INSTALLED_APPS += ('djangocms-placeholder-attr', )``

Usage
=====

``cms_placeholder_attr`` provide two tags ``placeholder_attr`` and
``show_placeholder_attr`` which are similar to django-cms
``placeholder`` and ``show_placeholder`` tags, but plugin model
oriented.

-  ``placeholder_attr``

.. code:: django

    {% placeholder_attr 'placeholder_name' 'plugin_model_class_name' 'model_attribute_name' %}

-  ``show_placeholder_attr``

.. code:: django

    {% show_placeholder_attr 'placeholder_name' 'placeholder_id' 'plugin_model_class_name' 'model_attribute_name' %}

Be sure to have a placeholder named ``placeholder_name`` to use this
plugin.

if you have a foreign key attribute you can use the following syntax:
``my_fk_attribute.an_attribute_from_the_fk``
irclogger 0.0.2
Python IRC Logger Daemon
License: MIT
Keywords: Python IRC Logger Daemon

.. _Python Programming Language: http://www.python.org/
.. _circuits: http://pypi.python.org/pypi/circuits
.. _irclog2html: http://pypi.python.org/pypi/irclog2html


irclogger is a simple daemon written in the `Python Programming Language`_ utilizing the `circuits`_ framework for the sole purpose of logging a set of IRC
Channels to disk in the form that something like `irclog2html`_ can understand and parse.


Installation
------------

From PyPi using pip:

::
    
    $ pip install irclogger

from source:

::
    
    $ mkvirtualenv irclogger
    $ hg clone https://bitbucket.org/prologic/irclogger
    $ cd irclogger
    $ pip install -r requirements.txt


Usage
-----

To display help:

::
    
    $ irclogger --help

    Usage: irclogger [options] <host> [<port>]

    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -d, --daemon          Enable daemon mode
      -c CHANNELS, --channel=CHANNELS
                            Channel to join (multiple allowed)
      -n NICK, --nick=NICK  Nickname to use
      -o OUTPUT, --output=OUTPUT
                            Path to store log files
      -p PIDFILE, --pidfile=PIDFILE
                            Path to store PID file
      -v, --verbose         Enable verbose debugging mode

To log a single channel:

::
    
    $ irclogger -c "#mychannel" irc.freenode.net

.. note:: By default irclogger stores logs in the current working directory.
          Use ``-o/--output`` to change the location to store log files.

.. note:: Also note that the default nickname used is your current username
          on your system. i.e: ``$USER``. To change this use the ``-n/--nick``
          option.


.. _circuits 3.0: https://pypi.python.org/pypi/circuits/3.0


ChangeLog for irclogger
=======================


0.0.2 (*2014-10-04*)
--------------------

- Updated to use `circuits 3.0`_


0.0.1 (*2013-03-10*)
--------------------

- Initial Release
goldfinch 0.4
Use to make sure that filenames will always be valid- Now in Python 3 too
License: MIT
Keywords: filename

**About** 
 
goldfinch is simple package which removes invalid filename characters from a filename.  Pass in a string or unicode (with or without invalid characters) and get valid filename returned (as unicode).  

In general, goldfinch will remove invalid filename characters like <>:"/\|?* and characters above the 0-255 character set.  The default is is to attempt to convert to ascii characters using _unicodedata_.

**Install**

pip install goldfinch   
or  
easy_install -U goldfinch    

**Why use goldfinch**
  
The only real usecase for this package is when one creates filenames on the fly and there is no way of knowing what exactly will be passed as the filename.  I find it particularly useful when I scrape websites.  

So, instead of this happening: 
	>>> fileName = 'this is a filename with some invalid characters in it <>:"/\|?*'
	>>> file = open(fileName,"w")
	Traceback (most recent call last):
	File "<stdin>", line 1, in <module>
	IOError: [Errno 2] No such file or directory: 'this is a filename with some invalid characters in it <>:"/\\|?*'  

Do this:
	>>> from goldfinch import validFileName as vfn  
	>>> fileName = 'this is a filename with some invalid characters in it <>:"/\|?*' 
	>>> file = open(vfn(fileName),"w")  

**Examples**  
  
There are three (space, initCap, and ascii) options available when normalizing a filename.
  
The default is 'space="underscore", initCap=True, ascii=True'.
  
- For space the options are underscore, remove, and keep.  The default is underscore which will replace a space with an underscore (_).

- initCap is a True & False option.  True which is the default will convert the first character in a word to cap and leave all others lowercase.
  
- ascii is also a True & False option.  Once again True is the default which will convert something like this ÅåÄäÖ to this AaAaO. False will leave characters as-is.  

Use default setting:
	>>> fileName = 'THIS IS a filename with ÅåÄäÖ some characters that will not work like these: <>:"/\|?*'
	>>> vfn(fileName)
	'This_Is_A_Filename_With_Aaaao_Some_Characters_That_Will_Not_Work_Like_These'  

Default with unicode input: 
	>>> fileName = u'THIS IS a filename with ÅåÄäÖ some characters that will not work like these: <>:"/\|?*'
	>>> vfn(fileName)  
	'This_Is_A_Filename_With_Aaaao_Some_Characters_That_Will_Not_Work_Like_These'  

With initCap = False: 
	>>> vfn(fileName, initCap = False)  
	'THIS_IS_a_filename_with_AaAaO_some_characters_that_will_not_work_like_these_' 

With space = 'remove':  
	>>> vfn(fileName, space = 'remove')   
	'ThisIsAFilenameWithAaaaoSomeCharactersThatWillNotWorkLikeThese'