Saravanan666/pypi-org huggingface dataset:
Package: django-plexauth
***************django-plexauth***************.. image:: https://cloud.githubusercontent.com/assets/203583/7464347/62ecff22-f2ba-11e4-9146-bbd237b2fb93.png:alt: Screenshot:align: centerThis module provides a django authentication backend for authenticating against plex.tv.After properly setting up, you should be able to authenticate at /auth/login.==========Installing==========The quickest way to get installed is through PyPi. Simply run:.. code-block:: bash$ pip install django-plexauthInstall by placing the plexauth module in your python path.All requirements can be installed via pip:.. code-block:: bash$ pip install django django-bootstrap3 django-activelink requests============Requirements============* requests_ >= 2.7.0* django_ >= 1.8.0* django-bootstrap3_* django-activelink_ >= 0.4=============Configuration=============In the settings.py file for your project, ensure you have the following:.. code:: pythonINSTALLED_APPS = (...'bootstrap3','activelink','plexauth',)AUTHENTICATION_BACKENDS = ('plexauth.auth.PlexBackend',)AUTH_USER_MODEL = 'plexauth.PlexUser'PLEX_ADMIN_USERS = ('admin_usernames')PLEX_SERVER_NAME = 'your_server_nickname'In your urls.py file, add the following line.. code:: pythonurlpatterns = patterns('',...url(r'^auth/?', include('plexauth.urls')),).. _requests: https://github.com/kennethreitz/requests.. _django: https://github.com/django/django.. _django-bootstrap3: https://github.com/dyve/django-bootstrap3.. _django-activelink
Package: djangoplicity-caching-app-plugins
A fork of “django-app-plugins” which caches the results of the lookups, saving several db queries per page.Requirements:Django 1.2 or higher, tested up to Django 1.3.1An exaple of usage is in the blog posthttp://coderseye.com/2008/app-plugins-example.htmlA shortened part of this is copied here:In our base template, we just have to put this tag:{%plugin_point"shop_sidebar"%}And in our shop/__init__.py file, we set up the plugin point like so:defshop_sidebar(point,context,user,*args,**kwargs):'''A section on the sidebar of the base screen'''return{}register.plugin_point(takes_context=True,takes_user=True)(shop_sidebar)Lastly, we add a new template at templates/wishlist/plugins/shop_sidebar.html{%loadi18n%}{%ifuser.is_authenticated%}<pclass="wishlist"><ahref="{% url satchmo_wishlist_view %}">{%trans'Wishlist'%}</a></p>{%endif%}A complete functional example and test app fromhttp://coderseye.com/files/app-plugin-test.zipis unzipped to the directory app_plugins/test_app and little upgraded for compatibility with Django 1.3.One application, which registeres a plugin point by app_plugins. (app “site”)
One (or more) application which provide output to this plugin point without knowledge about app_plugins. (app “someapp”)cdapp_plugins/test_apppythonmanage.pysyncdbpythonmanage.pyrunserverBrowse tohttp://localhost:8000/All templates with names name_of_app/plugins/name_of_pluginpoint.html are combined together to the same plugin point .
Applications can be added or removed without changing anything except INSTALLED_APPS.HistoryThe original projecthttp://code.google.com/p/django-app-plugins/have been forked at changeset r19 on Jan 25, 2009 (http://code.google.com/p/django-app-plugins/source/detail?r=19)
Changes of the original project made after this date are mostly not reflected yet.
Package: djangoplicity-html2text
html2text is a Python script that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format).Usage:html2text.py [(filename|url) [encoding]]Options:--versionshow program’s version number and exit-h,--helpshow this help message and exit--ignore-linksdon’t include any formatting for links--ignore-imagesdon’t include any formatting for images-g,--google-docconvert an html-exported Google Document-d,--dash-unordered-listuse a dash rather than a star for unordered list items-bBODY_WIDTH,--body-width=BODY_WIDTHnumber of characters per output line, 0 for no wrap-iLIST_INDENT,--google-list-indent=LIST_INDENTnumber of pixels Google indents nested lists-s,--hide-strikethroughhide strike-through text. only relevent when -g is
specified as wellOr you can use it from within Python:importhtml2textprinthtml2text.html2text("<p>Hello, world.</p>")Or with some configuration options:importhtml2texth=html2text.HTML2Text()h.ignore_links=Trueprinth.handle("<p>Hello, <a href='http://earth.google.com/'>world</a>!")_Originally written by Aaron Swartz. This code is distributed under the GPLv3._## How to do a releaseUpdate the version inhtml2text.pyUpdate the version insetup.pyRunpython setup.py sdist upload## How to run unit testscdtest/pythonrun_tests.py
Package: djangoplicity-icalendar
The iCalendar package is a parser/generator of iCalendar files for use
with Python. It follows theRFC 2445 (iCalendar) specification.IntroductionI (Max M) have often needed to parse and generate iCalendar
files. Finally I got tired of writing ad-hoc tools.So this is my attempt at making an iCalendar package for Python. The
inspiration has come from the email package in the standard lib, which
I think is pretty simple, yet efficient and powerful.The package can both generate and parse iCalendar files, and can
easily be used as is.The aim is to make a package that is fully compliant to RFC 2445, well
designed, simple to use and well documented.News2008-07-11:iCalendar 2.0released (changes for 2.0)2006-11-26:iCalendar 1.2released (changes for 1.2)2006-11-23:iCalendar 1.1released (changes for 1.1)2006-08-03:iCalendar 1.0released (changes for 1.0)2005-11-08:iCalendar 0.11released (changes for 0.11)2005-04-28:iCalendar 0.10released (changes for 0.10)ExampleTo open and parse a file:>>> from icalendar import Calendar, Event
>>> cal = Calendar.from_string(open('test.ics','rb').read())
>>> cal
VCALENDAR({'VERSION': vText(u'2.0'), 'METHOD': vText(u'Request'), 'PRODID': vText(u'-//My product//mxm.dk/')})

>>> for component in cal.walk():
...     component.name
'VCALENDAR'
'VEVENT'
'VEVENT'To create a calendar and write it to disk:>>> cal = Calendar()
>>> from datetime import datetime
>>> from icalendar import UTC # timezone
>>> cal.add('prodid', '-//My calendar product//mxm.dk//')
>>> cal.add('version', '2.0')

>>> event = Event()
>>> event.add('summary', 'Python meeting about calendaring')
>>> event.add('dtstart', datetime(2005,4,4,8,0,0,tzinfo=UTC))
>>> event.add('dtend', datetime(2005,4,4,10,0,0,tzinfo=UTC))
>>> event.add('dtstamp', datetime(2005,4,4,0,10,0,tzinfo=UTC))
>>> event['uid'] = '20050115T101010/27346262376@mxm.dk'
>>> event.add('priority', 5)

>>> cal.add_component(event)

>>> f = open('example.ics', 'wb')
>>> f.write(cal.as_string())
>>> f.close()More documentationConsult thisexamplefor introductory doctests and explanations. Here
are twosmallerexamples.All modules and classes also have doctests that shows how they
work. There is also aninterfaces.pyfile which describes the API.Mailing listIf you have any comments or feedback on the module, please use the iCalendar
mailing list. You can subscribe to it here:http://codespeak.net/mailman/listinfo/icalendar-devWe would love to hear use cases, or get ideas for improvements.There is also a checkins mailing list, if you want to follow development:http://codespeak.net/mailman/listinfo/icalendar-checkinsDownloadiCalendar 2.0(2008-07-11)iCalendar 1.2(2006-11-26)iCalendar 1.1(2006-11-23)iCalendar 1.0(2006-08-03)iCalendar 0.11(2005-08-11)iCalendar 0.10(2005-04-28)You can also check out thedevelopment version of iCalendarfrom
subversion, using a command like:svn co http://codespeak.net/svn/iCalendar/trunk iCalendarDependenciesIt is dependent on the datetime package, so it requires Python >=
2.3. There are no other dependencies.LicenseLGPL. See LICENSE.txt for details.
Package: djangoplicity-mailman
django-mailman is a simple way to manage one or more mailman mailing lists which are not installed on your server.
It uses the webinterface to subscribe or unsubscribe a mailinglist member.
Additional you are able to request a list of all subscribed members for a specific mailing list.Requirementsdjango-mailmanis tested and works with mailman version 2.1.5.
It’s possible that mailman also works with the 2.1.x series, but I guess it wouldn’t work with the 3.x series which is under development at the momentdjango-mailmanrequires Django 1.4 or later.ConfigurationFirst of all, you must add this project to your list ofINSTALLED_APPSinsettings.py:INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ...
    'django_mailman',
    ...

)Runmanage.py syncdb.  This creates the appropriate tables in your database that are necessary for operation.Usagefrom django_mailman.models import ListCreate new ListCode:list_name = 'testlist'
list_pwd = 'pwd'
list_email = 'testlist@mydomain.com'
list_url = 'http://mailman.listdomain.com'
list_encoding = 'iso-8859-1' # must match the encoding of your mailman installation

list = List(name=list_name, password=list_pwd, email=list_email,
    main_url=list_url, encoding=list_encoding)Subscribe new memberlist.subscribe(‘membername@maildomain.com’, ‘first-name’, ‘last-name’)Unsubscribe memberlist.unsubscribe(‘membername@maildomain.com’)Show a list of all subscribed memberslist.get_all_members()This method will return a list of all members in the following format:
[[u’first-name last-name’,u’membername@maildomain.com’]]Admin Moderation UrlIf you would like to provide some functionality to log into your mailman moderation area you could request the complete url from your list.list.get_admin_moderation_url()
Package: djangoplicity-python-avm-library
Python AVM Library is a library for working with Astronomy Visualization Metadata (AVM) in the XMP format.Python AVM Library is a wrapper around the Python XMP Toolkit, providing simple access to AVM-specific fields.Python AVM Library has been developed by:ESA/Hubble - European Space AgencyESO - European Southern ObservatoryInstallationRequirementsPython 2.5+Exempi 2.1Linux or OS X (see notes below for Windows)Python XMP ToolkitThe short version of installation is:python setup.py installNote, in case you haven’t installed Exempi you will get anExempiLoadErrorexception once you try to loadlibxmp.ExempiPython XMP Toolkit requires Exempi 2.1 which can be downloaded fromhttp://libopenraw.freedesktop.org/wiki/Exempi. To install Exempi, unpack the
distribution and run:./configure
make
sudo make installMac OS XNote Exempi requires boost (http://www.boost.org/) to compile, so on OS X you
probably need to run configure with one of the following options.:./configure --with-darwinports
./configure --with-fink


  Note, currently Exempi 2.1 does not compile on OS X, due to bugs
      in a number of Makefiles. A patched version of Exempi 2.1 that compiles
      under OS X can be download at
      http://python-xmp-toolkit.googlecode.com/files/exempi-2.1.0-patched.tar.gz.WindowsThe library has not been tested on Windows, and nor has any serious effort
been made to test it. Hence, developers wanting to use the library on Windows
are encouraged to try it out and let us know if it works.The library ought to work on Windows, if Exempi can be compiled as a DLL using
e.g. Cygwin.Additional documentation is included in the docs/ directory in both HTML and PDF versions.
Package: djangoplicity-python-xmp-toolkit
Python XMP Toolkit is a library for working with XMP metadata, as well as
reading/writing XMP metadata stored in many different file formats.Python XMP Toolkit is wrapping Exempi (using ctypes), a C/C++ XMP library
based on Adobe XMP Toolkit, ensuring that future updates to the XMP standard
are easily incorporated into the library with a minimum amount of work.Python XMP Toolkit has been developed by:ESA/Hubble - European Space AgencyESO - European Southern ObservatoryCRS4 - Centre for Advanced Studies, Research and Development in SardiniaInstallationRequirementsPython 2.5+Exempi 2.1.1Linux or OS X (see notes below for Windows)Python XMP ToolkitThe short version of installation is:python setup.py installNote, in case you haven’t installed Exempi you will get anExempiLoadErrorexception once you try to loadlibxmp.ExempiPython XMP Toolkit requires Exempi 2.1 which can be downloaded fromhttp://libopenraw.freedesktop.org/wiki/Exempi. To install Exempi, unpack the
distribution and run:./configure
make
sudo make installMac OS XNote Exempi requires boost (http://www.boost.org/) to compile, so on OS X you
probably need to run configure with one of the following options.:./configure --with-darwinports
./configure --with-finkWarningNote, only Exempi 2.1.1 compiles on OS X and Exempi 2.1.1 also fixes an issue over 2.1
that could lead to complete crash of the Python interpreter.WindowsThe library has not been tested on Windows, and nor has any serious effort
been made to test it. Hence, developers wanting to use the library on Windows
are encouraged to try it out and let us know if it works.The library ought to work on Windows, if Exempi can be compiled as a DLL using
e.g. Cygwin.Additional documentation is included in the docs/ directory in both HTML and
PDF versions.
Package: djangoplicity-threaded-multihost
djangoplicity-threaded multihost provides support utilities to enable easy multi-site awareness in Django apps.Installing Djangoplicity-Threaded-MultihostWith threaded_multihost on your PYTHONPATH, just add the Threadlocal middleware to your MIDDLEWARE_CLASSES entry in your “settings.py” file.For example:MIDDLEWARE_CLASSES = (
   "django.middleware.gzip.GZipMiddleware",
   "django.middleware.common.CommonMiddleware",
   "django.contrib.sessions.middleware.SessionMiddleware",
   "django.middleware.locale.LocaleMiddleware",
   "django.contrib.auth.middleware.AuthenticationMiddleware",
   "django.middleware.doc.XViewMiddleware",
   "threaded_multihost.middleware.ThreadLocalMiddleware",
   "satchmo_store.shop.SSLMiddleware.SSLRedirect",
   "django.contrib.redirects.middleware.RedirectFallbackMiddleware",
   "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
)TestingTest suite can be done by running ./manage.py test in the “tests” directory.Contributing to djangoplicity-threaded-multihostWe are pleased to accept contributions and bugfixes for django-threaded-multihost.To make a contribution:First fork the project from bitbucket.Build and test your addon or update.  Youmustprovide tests for us to accept your contribution, and these testsshouldbe unit tests rather than doctests.  However, doctests in models are acceptible.  If you are fixing a bug, it is a good rule of thumb to provide a test which provides a regression-test against that bug.If this is a simple patch, go todjango-threaded-multihost on githuband enter a bug with the patch.If this is a larger patch or a new feature, make a branch and propose its merger:Make a fork on bitbucket for your additionMake your changes to the forkIssue a pull request when it is ready for inclusion into tip.Threaded Multihost Authors and ContributorsCore developers[Bruce Kroezebrucek@solidsitesolutions.com]ContributorsHerbert Poulhttp://sct.sphene.net, for inspiration, ideas, and the original Threadlocals we have heavily modified.Dirk Datzert <dirk@datzert.de> for contributing the initial test suite
and the UserField/CreatorField/EditorField in fields.py
Package: djangoplicity-trml2pdf
Namedjangoplicity-trml2pdf - convert a Report Markup Langage (RML) file to a PDFSynopsistrml2pdf--helptrml2pdf<input.rml>ouput.pdfDescriptionTiny RML2PDF is a tool to easily create PDF document without programming. It
can be used as a Python library or as a standalone binary. It converts a RML,
an XML dialect that lets you define the precise appearance of a printed
document, to a PDF. You can use your existing tools to generate an input file
that exactly describes the layout of a printed document, and RML2PDF converts
it into PDF. RML is a much more powerfull and flexible alternative to XSL:FO.The executable read a RML file to the standard input and output a PDF file to
the standard output.Command-line options--help:commandlineoptionsExamplesCreate a PDF file:trml2pdf<input.rmlUse it as a python module:importtrml2pdfprinttrml2pdf.parseString(file('file.rml','r').read())NotesTiny RML2PDF is a component of the Open Report project. It can be used with the
Tiny Reporting Server to have a complete solution to render PDF file on the
fly.This package is based on the latest Debian package & includes a basic setup.py for
installation ease.AuthorFabien Pinckaers (http://tiny.be)
Package: django-plist
django-plist is a Django application that trivializes the serialization of
Django model objects into the XML format used by Property List files on the
Cocoa platform (iPhone/Mac OS X).InstallingPlease refer toINSTALL.markdownfor installation instructions. Notice the
last section on configuring Django and ensure that you have the correct
settings inINSTALLED_APPSandTEMPLATE_LOADER.UsingUsage instructions can be found indocs/overview.markdownwhich is also
available online.Changelog0.6 - 2010-05-20Do not serialize private model fields. Fixes bug introduced with multi
database support in Django 1.2.PropertyListSerializationFailedError now sends a meaningful message to
Exception.__init__ to make stacktraces useful when debugging.0.5 - 2010-01-19Added as_plist keyword argument to render_array shortcut to control
serialization of objects without altering Model classes, see updated
documentation in docs/overview.markdown.Tests: Added test suites for shortcut functions and generic viewsTests: Added Cocoa integration tests in cocoa_tests/. These require a
functional GCC/Cocoa suite to run.Bug: Dictionary keys are now properly escaped as #PCDATABug: render_dictionary() rendered None as a string. None is now
rendered as an empty dictionary.Bug: datetime.datetime objects should not output fractions of seconds.Bug: datetime.date objects should render with T00:00:00, Cocoa fails to
read the property list otherwise.Bug: datetime.time objects now render as string, Cocoa apps barf on the
<date>HH:MM:SS</date> elements.0.4 - 2009-10-29Added missing files to Manifest.in which caused build errors when installing
with setup.pyXML data is now properly escaped in <string>0.3 - 2009-10-28Raises an error when rendering fails, i.e. when the object is not a model,
does not have a as_plist() method or is not a basic type.
Package: django_plop
Django-plop is a middleware for profiling your views withPLOP, the Python Low Overhead
Profiler.UsageInstall it with pip (or easy_install, if that’s how you roll):pip install django-plopIn your project settings:MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ('django-plop.middleware.PlopMiddleware',)

PLOP_DIR = os.path.join(PROJECT_ROOT, 'plop') # will be created, defaults to /tmp/plopThen start your server withpython manage.py--noreload(the--noreloadis very important.) Hit a few pages, and then start the plop viewer like so:python -m plop.viewer --datadir=plopAnd navigate tolocalhost:8888to view the
profile results.Note--noreloadis used in development to allow the signalling features PLOP
uses. This means it sadly won’t work with some alternate runserver
implementations such asdjango-devserver. It will, however, work in prefork
environments like Gunicorn.Production UsagePLOP itself isused in production by Dropboxwith 2% CPU overhead (or
so). However, this middleware will write logs to the disk, which may not
be acceptable for your use case (especially on Heroku and other PaaSes)Non-goalsDjango-plop won’t install tornado for you (you need it to use the plop
visualizer.) This is because you can use it in production, and you may not want
to have tornado kicking around in your production environment. If you you want
to have it installed for you, install with the “viewer” extras:pip install django-plop[viewer]
Package: django-pluggable-apps
This is a fork of DjangoPluggableApp which seems to be abandoneddjango-pluggable-apps is a package to allow:django users to install and configure third-party django applicationsdeveloppers to create an distribute django apps.django-pluggable-apps isnotintrusive. This mean that:end users can use applications without a DjangoPluggableApp entry_point in
their projectsan application based on the provided template can be used by end users
without DjangoPluggableApp installed.InstallationWith easy_install:$ easy_install -U django-pluggable-appsWith pip:$ pip install django-pluggable-appsForded from:Seehttp://packages.python.org/DjangoPluggableApp/for the full documentationNews0.3Add project templateSupport pluggable medias0.2Never import urls module0.1Initial public release
Package: django-pluggable-contact
Pluggable Django app for contact forms with database-based inbox and support for
topic-based sorting and sending to multiple recipients based on topic. Fully
i18n-enabled and supports South migrations. It supports HTML emails and
automatic conversion of HTML email to plain-text.This code is still in early development, so there are things that don’t work as
expected (if at all). Do not expect it to be production-ready until v0.1.Overviewdjango-pluggable-contact should be fairly flexible. It is designed to be able
to handle anything from a very simple contact form to scenarios where you may
want to send different messages to different recipients.Although it uses the Message models to store messages in the database, it is
optional. You can send out a message even if the object is not saved. Topics are
also optional. If you don’t want the complexity of topics, you can disable them
completely and they won’t show up in the admin or the contact form.While more features will be added to this app as time goes, the overhead of
additional features will be kept to minimum or eliminated by using appropriate
settings for enabling them and having them disabled by default. On the other
hand, this app will always be just a contacts app.TODOBetter docsUnit testsAdd support for configuring multiple email accountsInstallationTODOAdd thecontactapp toINSTALLED_APPSand call the syncdb management
command or migrate using South.Map the URLs like so:url(r'^contact/', include('contact.urls'))You can also include the URL in i18n_patterns as the URLs are fully
translatable.Basic usageAt very least, you want to override the provided basic templates. Please look
at thecontact/templatesdirectory.SettingsTODO
Package: django-pluggable-filebrowser
Media-Management with theme support.The Django Pluggable FileBrowser is an extension to theDjangoadministration interface in order to:browse directories on your server and upload/delete/edit/rename files.include images/documents to your models/database using theFileBrowseField.select images/documents with TinyMCE.RequirementsDjango Pluggable FileBrowser 3.5 requiresDjango (1.4/1.5/1.6) (http://www.djangoproject.com)Pillow (https://github.com/python-imaging/Pillow)Differences from upstreamDjango Pluggable Filebrowser is a fork ofDjango Filebrowserwith the aim to make the Admin interfaces and Upload frontends choosable and easy changable.
Currently only Django stock admin interface and Grappelli (2.4, 2.5) are supported out of the box. But adding own interfaces is straightforward.Further plans include support for pluggable upload frontends and django-xadmin support.The project can be used as a drop in replacement for Django Filebrowser.InstallationStable:pip install django-pluggable-filebrowserDevelopment:pip install -egit+git@github.com:jinzo/django-pluggable-filebrowser.git#egg=django-pluggable-filebrowserDocumentationBuild it from the sources.TranslationYou can help with translating upstream project at:https://www.transifex.com/projects/p/django-filebrowser/ReleasesFileBrowser 3.5.7 (Development Version, not yet released, see Branch Stable/3.5.x)FileBrowser 3.5.6 (April 16th, 2014): Compatible with Django 1.4/1.5/1.6Older versions are availabe at GitHub, but are not supported anymore.