Saravanan666/pypi-org huggingface dataset:
Package: django-markdown-utils
A reusable Django app with some useful markdown utilities.This should mainly serve as an alternative to thedjango.contrib.markupmodule which has been removed in Django 1.5.InstallationTo get the latest stable release from PyPipipinstalldjango-markdown-utilsTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-markdown-utils.git#egg=markdown_utilsTODO: Describe further installation steps (edit / remove the examples below):Addmarkdown_utilsto yourINSTALLED_APPSINSTALLED_APPS=(...,'markdown_utils',)Before your tags/filters are available in your templates, load them by using{% load markdown_utils_tags %}Templatetagsrender_markdownUsage:{% render_markdown some_text as markdown_text %}
{% render_markdown some_text is_safe=True as markdown_text %}
{{ markdown_text }}Renders some given Markdown text to it’s HTML representation.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-markdown-utilsmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsgitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch
Package: django-markdownx
Django MarkdownX is a comprehensiveMarkdownplugin built forDjango, the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.Documentationhttps://neutronx.github.io/django-markdownx/Key featuresRaw editing.Live preview.Drag & drop image uploads (automatically stored in the designated location in theMediadirectory).Customizable image insertion tag.Definition of maximum size for an image.Definition of acceptable image formats (PNG, JPEG, SVG).Image manipulations (compression, size reduction, cropping, upscaling).Pre- and post- text modification.Easy template customization, layout modification, and personalization.Multiple editors per page.Django Admin support.Preview(using Bootstrap for layout and styling – not included in package)
Package: django-markdowny
Django Markdownyis aDjangotemplate tagapplication to convertMarkdowninto HTML withPython-Markdown.Unlike other Django-Markdown filters, Markdowny supportsall of the optionsin Python-Markdown viasettings.PackageSourceDocumentationTestsInstall$pipinstalldjango-markdownyAdd tosettings.py.INSTALLED_APPS=[# ...'markdowny',]UsageUse as a template tag.{%loadmarkdowny_tags%}{%markdowny%}Hello, world!{%endmarkdowny%}Or as a template filter.{{'Hello, world!'|markdowny}}Result:<p>Hello, world!</p>
Package: django-markitup-widget
django-markitup-widgetis a Django form widget library for usingmarkItUp!on TextareaInstallsudo pip install django-markitup-widgetor:sudo pip install git+git://github.com/lambdalisue/django-markitup-widget.git#egg=django-markitup-widgetYou may need to copytemplates/markitupdirectory to yourTEMPLATE_DIRSHow to UseFirst, you need to specifiedMARKITUP_PATHonsettings.pyMARKITUP_PATHis the URI of markItUp! directory likeMARKITUP_PATH = r"javascript/markitup"Usemarkitup.widgets.MarkItUpTextareawidgets for target Textarea like below:from django import forms
from markitup.widgets import MarkItUpTextarea

markitup = MarkItUpTextarea(
        set='default',
        style='simple',
)
document = forms.TextField(widget=markitup)SettingsMARKITUP_PATHthe URI for markItUp! directory (required)MARKITUP_DEFAULT_SETthe default set name (DEFAULT: default)MARKITUP_DEFAULT_SKINthe default skin name (DEFAULT: simple)
Package: django-markup-deprecated
This package contains the originaldjango.contrib.markupfrom Django 1.4.1.It’s intended as backward-compatible quick fix for your project if you’re upgrading to
Django 1.6, which deprecates the app.For new projects, you may want to use something likeDjango Markup Fieldinstead.InstallationThis package is also available on PyPI.$ pip install django-markup-deprecatedUsageAdd'markup_deprecated'to yourINSTALLED_APPS.The template library is still calledmarkup, so you can still use{% load markup %}in your templates.Difference fromdjango.contrib.markupSettingsThis package adds an optionalDJANGO_MARKUP_IGNORE_WARNINGSsetting, that can be used to silence the warnings. Defaults toFalse.SupportThis package will updated only when (and if)django.contrib.markupwill ever
change in the Django 1.4.x series. It is only for backward-compatibility purposes
and there will be no support nor bugfixes.
Package: django-markupfield-helpers
django-markupfield-helpersis a set of Django helpers that make it easier to get up and running quickly withdjango-markupfield.Source code is available on GitHub atmfcovington/django-markupfield-helpers. Information aboutdjango-markupfieldis available onGitHub.InstallationConfigurationHelpersMarkupFieldMARKUP_FIELD_TYPESIssuesRevision HistoryInstallationPyPIpipinstalldjango-markupfield-helpersGitHub (development branch)pipinstallgit+http://github.com/mfcovington/django-markupfield-helpers.git@developConfigurationAddmarkupfield_helperstoINSTALLED_APPSinsettings.py:INSTALLED_APPS=(...'markupfield_helpers',)Add a link to the CSS file for syntax highlighting inbase.htmlor in a specific template.{%loadstaticfiles%}<linkrel="stylesheet"type="text/css"href="{% static 'markupfield_helpers/css/syntax-highlighting.css' %}">markupfield_helperscan be left out ofINSTALLED_APPSif the provided CSS for syntax highlighting is not needed.HelpersMarkupFieldTheMarkupFieldclass frommarkupfield_helperscan be used in place of the class of the same name frommarkupfield.Themarkupfield_helpersversion comes with four markup types defined:Markdown(Default): Markdown 2 with extras (code-friendly,cuddled-lists,fenced-code-blocks,footnotes, andtables)Markdown Basic: Markdown 2 without extrasPlain TextreStructuredTextHere is a basic example of how to use themarkupfield_helpersversion ofMarkupField:fromdjango.dbimportmodelsfrommarkupfield_helpers.helpersimportMarkupFieldclassArticle(models.Model):title=models.CharField(max_length=100)slug=models.SlugField(max_length=100)body=MarkupField()MARKUP_FIELD_TYPESAlternatively,MARKUP_FIELD_TYPEScan be imported frommarkupfield_helpers.helpersand used as-is or modified.
This is equivalent to the code above:fromdjango.dbimportmodelsfrommarkupfield.fieldsimportMarkupFieldfrommarkupfield_helpers.helpersimportMARKUP_FIELD_TYPESclassArticle(models.Model):title=models.CharField(max_length=100)slug=models.SlugField(max_length=100)body=MarkupField(default_markup_type='Markdown',markup_choices=MARKUP_FIELD_TYPES,)IssuesIf you experience any problems or would like to request a feature, pleasecreate an issueon GitHub.Version 0.1.1Revision History0.1.0 2018-12-01A set of Django helpers that make it easier to get up and running quickly withdjango-markupfield0.1.1 2018-12-01Fix manifest to include static CSS file
Package: django-markupmirror
django-markupmirroris a custom field and widget for editing markup text
in Django. It utilizes theCodeMirrorJS editor for a richer editing
experience.It uses parts ofJames Turk’sdjango-markupfieldand adds a nicer widget
with live-preview and an extension content-type forFeinCMS.Documentationon Read the Docs:http://django-markupmirror.readthedocs.org/Code and issueson bitbucket:https://bitbucket.org/fabianbuechler/django-markupmirrorReleaseson PyPi:http://pypi.python.org/pypi/django-markupmirrorQuickstartToinstalldjango-markupmirror, usepipand add'markupmirror'to
theINSTALLED_APPSin yourDjangoproject.In yoursettings.pyspecify at leastMARKUPMIRROR_DEFAULT_MARKUP_TYPEwhich is'plaintext'by default.For the markup HTML-preview, you’ll need to add markupmirror’s URLs in your
URLconf. In yoururls.pyadd:import markupmirror.urls

urlpatterns = patterns('',
    (r'^markupmirror/', include(markupmirror.urls.preview)),
)Add one or moremarkupmirror.fields.MarkupMirrorFields to your models
and definemarkup_typeordefault_markup_type:class ModelWithMarkup(models.Model):
    content = MarkupMirrorField(
        verbose_name="content", markup_type='markdown')If you want theFeinCMScontent-type modelMarkupMirrorContent, you’ll
also need to add'markupmirror.feincms'to yourINSTALLED_APPS.Also, you need to register the content-type model with FeinCMS’ Page module:from feincms.module.page.models import Page
from markupmirror.feincms.models import MarkupMirrorContent

Page.create_content_type(MarkupMirrorContent)By default, django-markupmirror comes with markup converters for plain text
(converts links and linebreaks) and HTML (does nothing). Converters forMarkdown,reStructuredTextandTextileare also available, but require
3rd-party libraries to be installed. However, you can register your own markup
converters.Changelog0.1c1 - 2012-08-25A few documentation fixes. Thanks Paolo Dina.0.1b2 - 2012-05-08Fixed problem with initializing the editor in FeinCMS when adding new
content blocks.0.1b1 - 2012-05-08Textarea to editor conversion and live preview now also works for standard
models, in collapsed fieldsets, added inlines and when switching tabs
in FeinCMS pages.0.1a2 - 2012-05-03Added jQuery plugin for CodeMirror initialization and preview updating.
Thanks to Gustav Pursche!Improved usage and installation docs.0.1a1 - 2012-04-27Initial release includingMarkupMirrorFieldfield,MarkupMirrorTextareaandAdminMarkupMirrorTextareaWidgetwidgets and
providing FeinCMS integration withMarkupMirrorContentPage content-type.
Supported markup types are plain text, HTML, Mardown, reStructuredText and
Textile.
Package: django-markup-mixin
A simple django reusable application to provide markup control over a field in a model. Right now this is pretty hacked together, but should become more robust over time. Either way, I’ve found it quite useful in many places already.On big benefit? You can provide both a markup field, and a rendered content field, meaning expensive per-template markup rendering operations can be relegated to only the simplest of text areas. Big content areas can be re-rendered on each model save.InstallationIn three easy steps!Place ‘markup-mixin’ in your installed apps.Add:from markup-mixin.models import MarkupMixinMake sure your model inherits the mixin:class YourModel(MarkupMixin):…Set the markup field options on your model:def MarkupOptions:source_field = <your markup content field>
rendered_field = <your rendered content field>That’s it. One major caveat, because of the hacky nature of this project,you must place MarkupMixin at the front of your model inheritance list!This should be fixed eventually, but right now it has something to do with how the model’s save() function is overridden.UsageWith the steps above taken, managing your marked up items is fairly straightforward:>>> obj = YourModel.objects.get(pk=1)
>>> obj.content
u'This is a markdown **formated** text area.'
>>> obj.rendered_content
u'<p>This is a markdown <strong>formated</formated> text area.</p>'FutureFigure out why it must come first in the inheritance list and perhaps even add support for multiple markup rendered fields.
Package: django-markwhat
Table of contentsSupported Python versionsInstallationConfigurationreStructuredTextMarkdownTestsNoteExtracted fromDjango 1.4 since markup deprecationA collection of template filters that implement common markup languages.provides template filters that implement the following markup
languages:textile– implementsTextile– requiresPyTextilemarkdown– implementsMarkdown– requiresPython-markdowncommonmark– implementsCommonMark– requiresCommonMark-pyreStructuredText– implementsreStructuredText– requiresdocutilsIn each case, the filter expects formatted markup as a string and
returns a string representing the marked-up text. For example, thetextilefilter converts text that is marked-up in Textile format
to HTML.Supported Python versionsdjango-crequestcurrently can be run on multiple python versions:Python 2 (2.7)Python 3 (3.5, 3.6)PyPyInstallationdjango-markwhatis available on pypi:http://pypi.python.org/pypi/django-markwhatSo easily install it bypip:pip install django-markwhatOr byeasy_install$ easy_install django-markwhatAnother way is by cloningdjango-markwhat’sgit repo::git clone git://github.com/Alir3z4/django-markwhat.gitThen install it by running:$ python setup.py installConfigurationTo activate these filters, add'django_markwhat'to yourINSTALLED_APPSsetting. Once you’ve done that, use{% load markup %}in a template, and you’ll have access to these filters.WarningThe output of markup filters is marked “safe” and will not be escaped when
rendered in a template. Always be careful to sanitize your inputs and make
sure you are not leaving yourself vulnerable to cross-site scripting or
other types of attacks.reStructuredTextWhen using thereStructuredTextmarkup filter you can define aRESTRUCTUREDTEXT_FILTER_SETTINGSin your django settings to
override the default writer settings. See thereStructuredText writer
settingsfor details on what these settings are.WarningreStructuredText has features that allow raw HTML to be included, and that
allow arbitrary files to be included. These can lead to XSS vulnerabilities
and leaking of private information. It is your responsibility to check the
features of this library and configure appropriately to avoid this. See theDeploying Docutils Securelydocumentation.MarkdownThe Python Markdown library supports options named “safe_mode” and
“enable_attributes”. Both relate to the security of the output. To enable both
options in tandem, the markdown filter supports the “safe” argument.{{ markdown_content_var|markdown:"safe" }}WarningVersions of the Python-Markdown library prior to 2.1 do not support the
optional disabling of attributes and by defaultTestsdjango-markwhatis tested on bothpython2andpython3, to run the tests:$ python run_tests.py
Package: django-markwhat-next
Table of contentsSupported Python versionsInstallationConfigurationreStructuredTextMarkdownTestsNoteExtracted fromDjango 1.4 since markup deprecationA collection of template filters that implement common markup languages.provides template filters that implement the following markup
languages:textile– implementsTextile– requiresPyTextilemarkdown– implementsMarkdown– requiresPython-markdowncommonmark– implementsCommonMark– requiresCommonMark-pyreStructuredText– implementsreStructuredText– requiresdocutilsIn each case, the filter expects formatted markup as a string and
returns a string representing the marked-up text. For example, thetextilefilter converts text that is marked-up in Textile format
to HTML.Supported Python versionsdjango-crequestcurrently can be run on multiple python versions:Python 3 (3.9, 3.10)PyPyInstallationdjango-markwhat-nextis available on pypi:https://pypi.org/project/django-markwhat/Install it bypip:pip install django-markwhat-nextAnother way is by cloningdjango-markwhat’sgit repo::git clone git://github.com/CryoTechnic/django-markwhat-next.gitThen install it by running:$ python setup.py installConfigurationTo activate these filters, add'django_markwhat_next'to yourINSTALLED_APPSsetting. Once you’ve done that, use{% load markup %}in a template, and you’ll have access to these filters.WarningThe output of markup filters is marked “safe” and will not be escaped when
rendered in a template. Always be careful to sanitize your inputs and make
sure you are not leaving yourself vulnerable to cross-site scripting or
other types of attacks.reStructuredTextWhen using thereStructuredTextmarkup filter you can define aRESTRUCTUREDTEXT_FILTER_SETTINGSin your django settings to
override the default writer settings. See thereStructuredText writer
settingsfor details on what these settings are.WarningreStructuredText has features that allow raw HTML to be included, and that
allow arbitrary files to be included. These can lead to XSS vulnerabilities
and leaking of private information. It is your responsibility to check the
features of this library and configure appropriately to avoid this. See theDeploying Docutils Securelydocumentation.MarkdownThe Python Markdown library supports options named “safe_mode” and
“enable_attributes”. Both relate to the security of the output. To enable both
options in tandem, the markdown filter supports the “safe” argument.{{ markdown_content_var|markdown:"safe" }}WarningVersions of the Python-Markdown library prior to 2.1 do not support the
optional disabling of attributes and by defaultTestsdjango-markwhatis tested on bothpython2andpython3, to run the tests:$ python run_tests.py
Package: django-markymark
django-markymarkprovides helpers and tools to integrate markdown into Django.FeaturesDjango form fields to integrate the bootstrap markdown editor (without the dependency on bootstrap)django-filerintegrationdjango-anylinkintegrationRequirementsdjango-markymark supports Python 3 only and requires at least Django 3.2Prepare for developmentA Python 3 interpreter is required in addition to Poetry.$poetryinstallNow you’re ready to start the example project to experiment with markymark.$poetryrunpythonexamples/manage.pyrunserverResourcesDocumentationBug TrackerCode
Package: django-ma-settings
Master Settings is a simple Django app to have simple typed settings in django app with type validation.Installation & SetupInstall using pip$>pipinstalldjango-ma-settingsadd ‘ma-settings’ into INSTALLED_APPSINSTALLED_APPS=(# ...'ma_settings',# ...)define MASTER_SETTINGS dict with your settings definitiontemplate:MASTER_SETTINGS={'(setting_name)':{'type':'(setting_type)','display_name':'(displayed name)',#optional'default':(defaultvalue),# optional'options':(choiceoptions),# optional'model':(foreignmodel),# optional, use only when foreign type is chosen}}example:MASTER_SETTINGS={'max_email_size_kb':{'type':'integer','display_name':'Max email size(kb)','default':400,},'text_color':{'type':'choices','display_name':'Text color','options':['White','Black','Red','Blue'],'default':'White',},'our_rate':{'type':'float','display_name':'Our rate','default':1.0,},'email_from':{'type':'string''display_name':'Email from',},'Default client':{'type':'foreign','model':'my_app.Client'}}define BASE_SETTINGS_TEMPLATE_NAMEBASE_SETTINGS_TEMPLATE_NAME="template_name.html"#  Template file must contain empty {% block settings %}in urls.py add include(‘ma_settings.urls’)url(r'^settings/',include('ma_settings.urls')),#  Use url name 'master_settings_home' to access settings page{%url'master_settings_home'%}Run commands to initialize settings$>pythonmanage.pysyncdb$>pythonmanage.pyinit_settingsUsingTo get setting usefromma_settingsimportmaster_settingsmaster_settings.get('setting_name',default='default')To set new value:master_settings.set('setting_name',[value|model_instance])To check if setting exists:master_settings.exists('setting_name')Updating settings definitionAfter updating settings definition in settings.py run this command to update settingspythonmanage.pyinit_settings
Package: django-maskpostgresdata
Django Mask Postgres DataAdds a management command to your Django project which allows you to create a (sort of) pg_dump
of your data with sensitive data masked.InstallationInstall with pip:pip install django-maskpostgresdataAnd addmaskpostgresdatato yourINSTALLED_APPS:INSTALLED_APPS = [
    ...
    'maskpostgresdata',
    ...
]UsageBy default,django-maskpostgresdatawill replace thepasswordcolumn for each row in the DjangoUsermodel with "password". Just runmanage.py dump_masked_dataand you'll get a pg_dump with the password field changed to "password" for all users.There are 2 ways to customise the behaviour ofdjango-maskpostgresdata.To override individual fields of a model with a given value, add a dictionary calledMASKER_FIELDSto your settings using the following format:MASKER_FIELDS = {
    "{ APP_NAME }": {"{ MODEL_NAME }": {"{ FIELD_NAME }": { VALUE },}},
}Alternatively, you can define exactly how the data is updated by subclassingBasePostgresDataMaskingCommandin a management command of your own. For example:from django.contrib.auth.hashers import make_password

from maskpostgresdata import BasePostgresDataMaskingCommand


class Command(BasePostgresDataMaskingCommand):

    def update_auth_user(self, queryset):
        queryset.update(password=make_password("a_different_password"))Just create a method calledupdate_{ db_table_name }taking aquerysetas the parameter. You can then performupdateoperations on this queryset.{ db_table_name }is of the format{app_label}_{model_name}by default, but could technically be different.You can then runmanage.py dump_masked_dataand it will dump your data tostdout.
Package: django-maskurl
Masking url’s on templates not to show exact path, hiding them all except get params.Installingpipinstalldjango-maskurlThen add <code>maskurl.middleware.UnMaskURLMiddleware</code> to the end of your <code>MIDDLEWARE_CLASSES</code>.MIDDLEWARE_CLASSES=('dikeyshop.syncer.middlewares.SyncerMiddleware','django.middleware.common.CommonMiddleware','django.middleware.http.ConditionalGetMiddleware','django.middleware.locale.LocaleMiddleware','django.middleware.doc.XViewMiddleware',...'maskurl.middleware.UnMaskURLMiddleware',)UsageTo mask a url on a template simply at the top, before all html codes <code>{% load maskurl %}</code> line must be placed, as following;{% load maskurl %}<title>...
...Then requested urls on that html file should be one of the following formats;- {% url 'main' %}
- {% url 'list' 4 %}
- {% url 'list' 'blah' %}
- {% url 'list' object.id %}
- {% url 'list' obj1.id obj2.id %}
- {% url 'list' obj1.name|title obj2.id|lower %}
- {{ reversed_url }}Those can be converted as following;- {% maskurl 'main' %}
- {% maskurl 'main' 4 %}
- {% maskurl 'main' 'blah' %}
- {% maskurl 'main' object.id %}
- {% maskurl 'main' obj1.id obj2.id %}
- {% maskurl 'main' obj1.id|title obj2.id|lower %}
- {% maskurl reversed_url %}get params can also be added after the closing curly bracket.
Package: django-maslow
Django Maslow – Providing the base layer for all Django apps on their journey to self actualisation.Detailed documentation is in the “docs” directory.Quick startAdd “maslow” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'maslow',
]Include the polls URLconf in your project urls.py like this:url(r'^maslow/', include('maslow.urls')),Runpython manage.py migrateto create the maslow models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/maslow/to see it in action.
Package: django-massmedia
Read the documentation athttp://readthedocs.org/docs/django-massmedia/en/latest/New in 0.8New settings formatAll settings are contained withinMASSMEDIA_SETTINGS,MASSMEDIA_STORAGE, andMASSMEDIA_UPLOAD_TO. Old settings will work, but will raise a deprecation warning.New settingsMASSMEDIA_SETTINGS["USE_TAGGING"]andMASSMEDIA_SERVICES["YOUTUBE"]Support for YouTube feeds as collectionsOptional Requirements:django-taggingOptional, but used for extracting Metadata:IPTCInfo
hachoir-core
hachoir-metadata
hachoir-parserTo start using the app, place it in your INSTALLED_APPS. You may want to edit the settings.py file in the massmedia directory and adjust a few things. If you want to gather metadata, you should install the hachoir lib available athttp://hachoir.org/. All in all, you will need the hachoir core,parser, and metadata packages installed.To customize the app, try editing some of the templates. Media items are templated with the show_media tag using templates based on the media’s mimetype.
Package: django-mass-post-office
Django Post Office is a simple app to create emailing lists of users and sending
emails to them from admin. It depends on django-post-office (without “mass”) so
please read it’s documentation on how to send scheduled emailsDependenciesdjango-post-office == 0.6.0InstallationPackage is available on PyPI, so install with pip or easy_install:pipinstalldjango-mass-post-officeAddpost_officeandmass_post_office to your INSTALLED_APPS in django's ``settings.py:INSTALLED_APPS=(# other apps"post_office","mass_post_office",)Runsyncdb:python manage.py syncdbSetpost_office.EmailBackendas yourEMAIL_BACKENDin django’ssettings.py:EMAIL_BACKEND = 'post_office.EmailBackend'