Saravanan666/pypi-org huggingface dataset:
Package: django-staticinline
📖 Full documentation:https://django-staticinline.readthedocs.io🐱 Github Repository:https://github.com/bartTC/django-staticinlinedjango-staticinlineWorks similar to Django’sstatictemplatetag, but this one includes
the file directly in the template, rather than a link to it.You can additionally post-process the file content using custom ‘encoder’.Compatibility Matrix:Py/Dj3.83.93.103.112.2 (LTS)✓✓✓✓3.2 (LTS)✓✓✓✓4.0✓✓✓✓4.1✓✓✓✓4.2 (LTS)✓✓✓✓QuickstartPut the StaticInlineAppConfig along your apps.INSTALLED_APPS=[# ...'staticinline.apps.StaticInlineAppConfig',]Load the template tag and pass a filename as you’d do with astatictemplate tag. You can also post-process the file content. In the example
below we encode the content of themykey.pemfile with base64. Several
encoders are already built-in, see theEncoder docs.{%loadstaticinline%}<style type="text/css">{%staticinline"myfile.css"%}</style>
My base64 encoded Key:{%staticinline"mykey.pem"encode="base64"cache=True%}Enjoy the result:<styletype="text/css">body{color:red;}</style>My base64 encoded Key: LS0tIFN1cGVyIFByaXZhdGUgS2V5IC0tLQo=Changelogv1.4Django 3.2 to 4.2 compatibility and tests.Python 3.8 to 3.11 compatibility and tests.v1.3 (2018-08-15)Addedcacheandcache_timeouttemplatetag arguments to store rendered
values in cache.Addeddata_responseAppConfig method to globally override the template
tag response.v1.2 (2018-08-14)Added support for Django 2.1 and Python 3.7.Added proper documentation.Addedsri(Subresource Integrity) encoder to generate a sha256 for a
given file.v1.1 (2018-08-09)Added support for custom data encoders to modify file content on the fly.Addeddataandbase64encoders, both convert data into base64.v1.0 (2018-04-29)🌟 Initial release.
Package: django-static-ionicons
django-static-ioniconsDjango application contain ionicons static filesInstallpip install django-static-ioniconsSettingsINSTALLED_APPS = [
    ...
    "django_static_ionicons",
    ...
]Usageapp/templates/demo.html{% load staticfiles %}

<link rel="stylesheet" type="text/css" href="{% static "ionicons/css/ionicons.css" %}">Releasesv2.0.1 2017/12/21First release.v2.0.1.1 2018/03/27Repackage.v2.0.1.2 2020/02/26Add demo page.v2.0.1.3 2020/09/02No depends on django.Turn to the package as a pure static wrapper package.v2.0.1.4 2023/09/15Doc update.
Package: django-static-jquery
JQuery2.1.4RequirementsDjango1.4 or laterInstallation$ pip install django-static-jquery==2.1.4SetupJust add'django.contrib.staticfiles'and'django_static_jquery'to INSTALLED_APPS in
your settings.py:INSTALLED_APPS = (
    # ...

    'django.contrib.staticfiles',
    'django_static_jquery',

    # ...
)Refer to Djangostatic filesdocumentation to configure and deploy static files.UsageYou can refer to jquery in your template with:{% load staticfiles %}
{% static 'static_jquery/js/jquery.js' %}Admin template customization:{% load staticfiles %}

{% extends "admin/base_site.html" %}

{% block extrahead %}
    <script type="text/javascript" src="{% static 'static_jquery/js/jquery.js' %}" />
{% endblock %}Static files:static_jquery/js/jquery.js - JQuery - v2.1.4
static_jquery/js/jquery.min.js - JQuery (min) - v2.1.4
static_jquery/js/jquery.min.map - JQuery (map) - v2.1.4

static_jquery/js/jquery-migrate.js - jQuery Migrate - v1.2.1
static_jquery/js/jquery-migrate.min.js - jQuery Migrate (min) - v1.2.1
Package: django-static-jquery3
django-static-jquery3Django application contains jquery and jquery-plugins' static files.Mostly we use jquery plugins, for django ships with jquery already.We put many jquery plugins in this package, so that we will not use jquery's version from now on.Remove django from requirements.txt. We still keep django's file structure, but we will NOT need anything about django.jQuery LicenseAll resource files of jquery are unzip from jquery-xxx.zip which download fromhttps://github.com/jquery/jquery/without any changes.All resource files of jquery obey jQuery License, see details athttps://github.com/jquery/jquery/blob/main/LICENSE.txt.We don't guarantee the latest jQuery version.jQuery Plugins LicensesPlugins may NOT a part of jquery.Plugins obey their own licenses.Installpipinstalldjango-static-jquery3Installed Pluginsjquery/plugins/jquery.cookie.jsjquery/plugins/jquery.utils.jsjquery/plugins/jquery.jstree/jstree.jsUsagepro/settings.pyINSTALLED_APPS=[..."django_static_jquery3",...]app/template/app/index.html{% load static %}<scriptsrc="{% static "jquery/jquery.js"%}"></script><scriptsrc="{% static "jquery/plugins/jquery.cookie.js"%}"></script>About releasesThe first number is our release number.The other three numbers are the same with jquery's release version.Releasesv5.3.7.1 2023/09/12Upgrade jquery to v3.7.1.v5.1.0 2020/09/22Add jquery.jstree plugin.v5.0.0 2020/09/01Rename jquery3 folder to jquery.Mostly we use jquery plugins, for django ships with jquery already.We put many jquery plugins in this package, so that we will not use jquery's version from now on.Remove django from requirements. We still keep django's file structure, but we will need anything about django.v3.4.1.1 2020/04/23Add jquery plugin: jquery.cookie.Fix document.v3.4.1.0 2020/04/10Upgrade jquery to 3.4.1.v3.3.1.1 2018/03/27Upgrade jquery to 3.3.1.v3.2.1 2017/12/23First release with jquery 3.2.1.
Package: django-static-jquery-ui
django-static-jquery-uiDjango application contains all jquery static files.Installpipinstalldjango-static-jquery-uiSettingsINSTALLED_APPS = [
    ...
    'django_static_jquery_ui',
    ...
]UsageExample 1Include jquery-ui resources in template file.{% load static %}<linkrel="stylesheet"href="{% static "jquery-ui/jquery-ui.min.css"%}"/><scriptsrc="{% static "jquery-ui/external/jquery/jquery.js"%}"></script><scriptsrc="{% static "jquery-ui/jquery-ui.min.js"%}"></script>Example 2Use "ui-lightness" theme and enable i18n for datepicker.{% load static %}<linkrel="stylesheet"href="{% static "jquery-ui/jquery-ui.min.css"%}"/><linkrel="stylesheet"href="{% static "jquery-ui/ui-lightness/theme.css"%}"/><scriptsrc="{% static "jquery-ui/external/jquery/jquery.js"%}"></script><scriptsrc="{% static "jquery-ui/jquery-ui.min.js"%}"></script><scriptsrc="{% static "jquery-ui/i18n/datepicker-zh-Hans.js"%}"></script>Example 3Includ jquery-ui resources in model admin site.classTestModelAdmin(admin.ModelAdmin):classMedia:css={"all":["jquery-ui/jquery-ui.min.css","jquery-ui/ui-lightness/theme.css",]}js=["jquery-ui/external/jquery/jquery.min.js","jquery-ui/jquery-ui.min.js","jquery-ui/i18n/datepicker-zh-Hans.js",]Note:You can use site's default jquery.js instead of jquery.js shipped in jquery-ui.About Release VersionsThe first three version number matches with jQuery UI's version number.The fourth version number is own release number.Release1.13.2.1 2023/09/12Upgrade jquery-ui to v1.13.2.1.12.1.1 2020/03/17Rename application name from jquery_ui to django_static_jquery_ui.Note:Rename is NOT backward compatible, please change the app name in INSTALLED_APPS inside settings.py.1.12.1.0 2019/12/06First release.Include all files of jquery-ui 1.12.1 and offical themes, all files are download fromhttps://jqueryui.com/download/all/.Include i18n language files for datepicker widget which are download from the demo site.
Package: django-static-libs
Installpip installdjango-static-libsSettingAdd app toISTALLED_APPSinsettings.py:INSTALLED_APPS = (
    ...
    'static_libs',
    )Usagetemplate.html:<html>
    <head>
        <link type="text/css" href="{{ STATIC_URL }}libs/bootstrap/3.0/css/bootstrap.min.css" rel="stylesheet">
    </head>

    <body>
     ...
    </body>
</html>LibsTwitter Bootstrap 3.0jQuery 1.10.2jquery-ui 1.10.3jquery.form 3.40jquery.cookie 1.3.1
Package: django-static-lor
LoR as “Local or Remote” is a useful tool for manage static files between
testing and production.InstallInstall the package on your system:pip install django-static-lorMake the following things in yoursettings.py:Addlorapp at the beginning of yourINSTALLED_APPSAddLOR_USE_LOCAL_URLSfor define if you want local or remote URLs
(Better is simplyLOR_USE_LOCAL_URLS = DEBUGAddLOR_STATIC_DIRfor define where is the app’s static directoryAddLOR_STATIC_DIRinSTATICFILES_DIRSif you want to serve it whenDEBUG == FalseAdd you matches inLOR_FILES_URLSYour settings will look like something like this:INSTALLED_APPS = (
      'lor',
      ...
)
LOR_USE_LOCAL_URLS = False
LOR_STATIC_DIR = '/my/lor/static/dir/'
STATICFILES_DIRS = (
    ...
    LOR_STATIC_DIR,
)

LOR_FILES_URLS = {
    'jquery': ('js/jquery.js',
        'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js')
}Done!UsageIn templates{% load lor %}
My jQuery URL: {% lor_url 'jquery' %}Collect remote files./manage.py wgetThis will download all files inLOR_FILES_URLSand put them inLOR_USE_LOCAL_URLS.
Package: django-static-markdown-blog
Django static Markdown blogThe purpose of this application is to provide an Internet blog based on local files. Those files can be Markdown formatted to add some style to your notes. This app has to be integrated into an existing django website.Quick startAdd "django_static_markdown_blog" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [  
    ...  
    'django_static_markdown_blog',
]In the settings file, add two variablesBLOG_FOLDER = '/tmp/markdown-files/'
BLOG_INDEX_FILE = 'main.md'Include the django_static_markdown_blog URLconf in your project urls.py like this:path('blog/', include(('django_static_markdown_blog.urls', 'blog'))),It is useless to migrate database because it is based on local filesStart the development server and visithttp://127.0.0.1:8000/blogto check if everything is ok.How to useTo use the software, you must have defined the variableBLOG_FOLDERwhich indicates the name of the directory where the Markdown files are located, as well as the variableBLOG_INDEX_FILEwhich corresponds to the main file of each directory (it is possible to create an unlimited tree structure).Write your first pageYour first file is the one at the root of theBLOG_FOLDERdirectory and must be named as theBLOG_INDEX_FILEvariable. This is the entry point of your blog, the page seen by your visitors when they arrive on your blog.To write a Markdown file, the principle is very simple. It is divided into two parts separated by at least one empty line. The first part contains the metadata of the file which are filled a little lower. The second part is the content of your page, formattable with Markdown.There is an exemple of a home page:title: Welcome on my blog

Hello everyone, and welcome to my **blog**. 
Feel free to visit my project page on [PyPI](https://pypi.org/project/django-static-markdown-blog/) or directly on [GitLab](https://gitlab.com/aloha68/django-static-markdown-blog/).

Enjoy your visit!Supported metadataThere is the full list of the supported metadata:title: set the title of your pagedate: set a custom date for your page, else we will use the datetime of the filegroups: define a group list that can access the page. It means that unauthorized people will not see the pageicons: define an icon that will be display in the article list for a pageTODORemove all BeautifulSoup4 componentsRemove all libaloha components
Package: django-static-md5url
# django-static-md5urlThis is extension for versioning static files in Django projects, if`PRODUCTION = True`.For example this css file:` <linkrel="stylesheet"href="{%md5url 'base/css/styles.min.css'%}">`will be replace with:` <linkrel="stylesheet"href="/static/base/css/styles.min.css?v=a6e2ba64">`wherea6e2ba64is first 8 characters of md5 file sum.# InstallationInstall using pip` pip installdjango-static-md5url`Add` django_static_md5url `to INSTALLED_APPS.# ConfigurationLoad`{% load md5url %}`template tag in your Django template.
Package: django-staticmediamgr
New in version 0.6:Added checksum-based selective copying of files. Fixed several bugs relating to combining files. Changed how application media was copied so it will override its own changes.New in version 0.5:Added a context processor to addSTATIC_URLto the request context as well as a setting forSTATIC_ROOT. This allows you to store your regular media separately from uploaded media (which is inMEDIA_ROOT). Also added a setting to exclude apps from copying their media and a specialized way of handling django admin media copying.New in version 0.4:Fixed a bug where copying multiple directories into the same directory with the purge options would only allow the last copy to work. Now multiple source directories can be copied into one destination, with each successive copy potentially overwriting the previous files.New in version 0.3:Added support for external javascript compression commands, such as Google’s compressor.New in version 0.2:Ability to combine multiple files into a new file before copying and/or compressing them.This app provides a way to copy and consolidate static media files to one or more configured locations. This is incredibly helpful if you have your media served from another server.It consists of a management command,copy_static_media, and several settings including:STATIC_MEDIA_COPY_PATHSA tuple of dictionaries specifying the from/to for copying files.STATIC_MEDIA_PURGE_OLD_FILESShould old files be purged from the destination directory.STATIC_MEDIA_COMPRESS_CSSShould CSS files be compressed during copy using the included port ofYUI CompressorSTATIC_MEDIA_COMPRESS_JSShould javascript files be compressed during copy using the included python port of Douglas Crockford’sjsminSTATIC_MEDIA_APP_MEDIA_PATHWhere (and if) should the application media be copied to automatically.STATIC_MEDIA_FILE_COMBINATIONSConfiguration of combining multiple files into one.TODOAllow lossless image compression for pngs, gifs and jpegs using external tools like optiPNG.Create a template tag to minify inline CSS and javascript with caching
Package: django-staticpages
For when you don't need no stinkin' CMSMakes things ever-so-slightly easier when you just want to serve a bunch of pagesthat are just rendered templates (with no special views or context)Routing autogeneration----------------------define STATICPAGES_TEMPLATES in your settings.py as a series of(section_name, base_url, base_template_path) three-tuples:STATICPAGES_TEMPLATES = [('homesite', '', 'homesite'),('subsite', 'url/of/subsite', 'staticpages/subsite'),]make a directory-and-page hierarchy there, and the files will be automatically served with properly-named urlsURL patterns are named by the site section name, and have a parameter forthe path: reverse('sectionname', args=('path/to/file'))For example:$PROJECT_ROOT/templates/homesite/- index.html- pricing.html- about/- index.html- team.html- news.htmlreverse('homesite', args=('about/team') -> '/about/team'TODO====Menu activation---------------http://110j.wordpress.com/2009/01/25/django-template-tag-for-active-class/Sitemaps--------http://minimoesfuerzo.org/2011/02/12/sitemaps-django-static-pages/
Package: django-static-pages
A reusable Django app that generates static pages using Django test client.InstallationInstall a package:$ pip install django-static-pagesAdd “static_pages” to your INSTALLED_APPS setting:INSTALLED_APPS = (
    ...
    'static_pages',
)ConfigurationSpecify which files should be generated as static files:STATIC_PAGES_LIST = (
    ('/', 'index.html'),
    ('/about/', 'about.html'),
    ('news:list', 'news/index.html'),
)Set path for an output directory of the static files:STATIC_PAGES_DIR = '/srv/example.com/html/'This kwargs will be passed to the Django test client arguments. It may be usefull if you want to
control WSGI environments of theRequestFactoryof the the client:STATIC_PAGES_CLIENT_KWARGS = {
    'SERVER_NAME': 'example.com',
}UsageJust execute the following command:$ python manage.py generate_static_pagesRequirementsPython 2.7+ or 3+Django>=1.5
Package: django-static-push
Middleware and templatetag for Django to utilize HTTP/2 push for assets included in a Django template. The
middleware injects aLinkheader in each response if there are files to be pushed to the client. All files in the
template which are suitable for HTTP/2 push should be included with thestaticpushtemplatetag instead of the
vanillastatictemplatetag. The former simply augments the later and registers the resulting static URL with the
middleware.This package currently supports Apache2 webservers withmod_http2enabled, as the actual HTTP/2 push is offloaded to the
webserver.WarningThis is ALPHA code. Do not use in production! It only serves as a proof-of-concept for now.Conditional HTTP/2 push is not supported yet. This means that your site will actually perform worse than
over HTTP/1.1 because each response will trigger a push of all incldued assets, irrespective of any cache on the
webbrowser.Installationpip install django-static-pushDocumentationhttps://django-static-push.readthedocs.io/en/latest/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2016-01-29)First release on PyPI.
Package: django-static-respond
django-static-respondDjango application contain respond static files.Installpipinstalldjango-static-respondSettingsINSTALLED_APPS=[..."django_static_respond",...]Use static resource{% load staticfiles %}<scriptsrc="{% static "respond/respond.min.js"%}"></script>About the versiondjango-static-respond uses version number like v1.4.2.1.The first three number is the version of the respond static files.The fourth number is the build number of this package.Releasesv1.4.2.3 2020/09/16Depends on nothing.v1.4.2.2 2020/03/17Remove src folder, use python way to do the package.v1.4.2.1 2018/03/28First release.
Package: django-static-root-finder
A static files finder to find files in the STATIC_ROOT directory.Setup# settings.pySTATICFILES_FINDERS=['django_static_root_finder.finders.StaticRootFinder']DefinitionSet yourSTATIC_ROOT. E.g.:# settings.pySTATIC_ROOT='static'# For exampleSTATIC_URL='/static/'UsageThe URLhttp://example.com/static/css/global.cssshould
successfully link to./static/css/global.css.Production
—By default, whenDEBUG = Falseas in production use, static files aren’t served with Django at all. To change this behaviour, enable a WSGI static serving module like [dj-static](https://github.com/kennethreitz/dj-static).
Package: django-static-s3
Installation$[sudo]pipinstalldjango-static-s3$[sudo]npmi-gdjango-static-s3How it worksstatic/hard-coded folderscripts:create full-access user and credentialsuploadstatic/hard-coded environment variables names:AWS_S3_STATIC_BUCKETAWS_S3_STATIC_USERAWS_S3_STATIC_ACCESS_KEY_IDAWS_S3_STATIC_SECRET_ACCESS_KEYExamplesMakefile, create envSTATIC_BUCKET:=BUCKET_NAME
all:test-s.env.s3.static||static-s3-create-env$(STATIC_BUCKET)>.env.s3.staticuploadstatic/to S3exportDJANGO_SETTINGS_MODULE=settings.dev
pythonmanage.pycollectstatic--no-inputset-oallexport
..env.s3.static||exitstatic-s3-uploadreadme42.com
Package: django-staticshard
.. image:: https://raw.github.com/tomatohater/django-staticshard/master/logo.png==================Domain sharding for Django static files... image:: https://travis-ci.org/tomatohater/django-staticshard.png?branch=master:target: https://travis-ci.org/tomatohater/django-staticshard.. image:: https://coveralls.io/repos/tomatohater/django-staticshard/badge.png?branch=master:target: https://coveralls.io/r/tomatohater/django-staticshard?branch=master.. image:: https://badge.fury.io/py/django-staticshard.png:target: http://badge.fury.io/py/django-staticshard``django-staticshard`` provides a set of utilities to easily enable domain sharding of static files in your Django project.It comes with a storage backend, a tempalatetag, and a middleware (you may use one or all).What is Domain Sharding?************************Domain sharding is a technique used to accerate the time it takes for a webpage to render in a browser. Web browsers will only open a small number of parallel connections to each domain (~2-16). The theory is that if your webpage contains a lot of external assets from a single domain, you may experience a bottleneck while the browser wait for files to download before making the next request. Spreading these requests across multiple domains will allow more files to be downloaded in parallel, thus accelerating the page render time. Of course, each new domain incur the cost of a DNS lookup... so there is a balance to be struck.Read what Google has to say about it.https://developers.google.com/speed/pagespeed/service/ShardResourcesWhy are you doing this?***********************Domain sharding is a science, not an art. But there is reliable no formula for it. In certain cases it has no impact on page speed. In others, the effects may be significant. In addition, determining the ideal number of domains needs to take into account a variety of factors.In order to determine whether sharding even makes sense, it would be helpfulI felt that in order to make informed decisions about domain sharding, one must able to easily test it's impact in multiple configurations. So a tool that makes it easy to implement domain sharding is desirable.Read The Docs*************https://django-staticshard.readthedocs.org/en/latest/
Package: django-static-swagger-ui
django-static-swagger-uiDjango application contain swagger-ui static filesInstallpip install django-static-swagger-uiLicenseAll resource files of static/swagger-ui are dist folder unzip from swagger-ui-x.xx.x.zip which download fromhttps://github.com/swagger-api/swagger-ui/releaseswithout any changes.All resource files of static/swagger-ui obey swagger-ui License, see details athttps://github.com/swagger-api/swagger-ui/blob/master/LICENSE.We don't guarantee the latest swagger-ui version.Settingspro/settings.pyINSTALLED_APPS=[..."django_static_swagger_ui",...]Use static filesswagger-ui.html<!-- HTML for static distribution bundle build --><!DOCTYPE html>{% load staticfiles %}<htmllang="en"><head><metacharset="UTF-8"><title>Swagger UI</title><linkrel="stylesheet"type="text/css"href="{% static "swagger-ui/swagger-ui.css"%}"/><linkrel="stylesheet"type="text/css"href="{% static "swagger-ui/index.css"%}"/><linkrel="icon"type="image/png"href="{% static "swagger-ui/favicon-32x32.png"%}"sizes="32x32"/><linkrel="icon"type="image/png"href="{% static "swagger-ui/favicon-16x16.png"%}"sizes="16x16"/></head><body><divid="swagger-ui"></div><scriptsrc="{% static "swagger-ui/swagger-ui-bundle.js"%}"charset="UTF-8"></script><scriptsrc="{% static "swagger-ui/swagger-ui-standalone-preset.js"%}"charset="UTF-8"></script><scriptsrc="{% static "swagger-ui/swagger-initializer.js"%}"charset="UTF-8"></script></body></html>About releasesThe first three number is the same with swagger-ui project's version.The fourth number is our release number, it's optional.Releasesv4.14.0.2First release.Using swagger-ui v4.14.0.v4.19.0.0Upgrade to swagger-ui v4.19.0.v4.19.1.0Upgrade to swagger-ui v4.19.1.v5.4.2.0Upgrade to swagger-ui v5.4.2.v5.6.2.0Upgrade to swagger-ui v5.6.2.