Saravanan666/pypi-org huggingface dataset:
Package: django-spanner
Django spannerSetup:First, create an YAML file similar tosample_config.yamland fill the configuration details.Next, create afabfile.pyin your project directory and import all functions(fab commands/tasks) fromdjango_spanner.Finally, call setup() function with your configuration yaml file path.Here is an example fabfile-# fabfile.pyfromdjango_spanner.commandsimport*setup("fabconfig.yaml")Usage:To list all the fab commands:fab-lTo install the requirements on your local system, you can run the command as followsfabrun_localactivate_env_install_requirements(or)fabactivate_env_install_requirementsTo run a command on staging/live host,fab[run_local/run_stage/run_live]<command_name>NOTE:By default, all the functions will run on the local system.You can view the completeDocumentation HereQuestions, Comments, etc?We welcome your feedback and support, raisegithub ticketif you want to report a bug. Need new features?Contact us here
Package: django-sparkle
# django-sparkleDjango-sparkle is a Django application to make it easy to publish updates for your mac application using [sparkle](http://sparkle.andymatuschak.org/).In addition to publishing updates via the appcast feed, Django-sparkle can also collect system profile information if sparkle is configured to report it.# Requirements* OpenSSL* Markdown (For release notes)# Setup1. `easy_install django-sparkle` or `pip install django-sparkle`2. Add `sparkle` to your installed apps3. Add `django.contrib.markup` to your installed apps if not already included3. In `settings.py` add `SPARKLE_PRIVATE_KEY_PATH` which is the path to your private DSA key for signing your releases.4. In `urls.py` include the sparkle URLs by adding something like `(r'^sparkle/', include('sparkle.urls'))`.5. Ensure your domain name is properly configured in the sites framework.6. `python manage.py syncdb` to create the tables needed for sparkle.# UsageCreate an application and optionally add some versions.The application's appcast feed will be available at `/whatever_you/configured_in/your_urls_py/(?P<application_id>\d+)/appcast.xml`.Set the `SUFeedURL` key in your Info.plist to point to the sparkle application's appcast URL. `http://example.com/sparkle/1/appcast.xml` for example.If you want to enable system profiling, be sure to set the `SUEnableSystemProfiling` key in your Info.plist to `YES`.# Settings`SPARKLE_PRIVATE_KEY_PATH`The path to your DSA private key for signing releases.  Defaults to `None`.  If not provided, releases will not be automatically signed when uploaded.# To Do* Tests of course!
Package: django-sparklines
Django SparklinesThis is a simple template tag abstraction to jquery sparklines. Simple graphs
useful for basic activity trends.http://omnipotent.net/jquery.sparkline/Screenshot Herehttp://www.ascetinteractive.com.au/images/django-sparkline.pngINSTALLsettings.py‘sparklines’, in INSTALLED_APPS{% load sparkline_tags %}Included is three tags{% sparklines_script_tag %}<script src=’..jquery’> tags for the <head>{% sparkline list [dict options]%}will take a list of integersseehttp://omnipotent.net/jquery.sparkline/#commonfor options{% queryset_sparkline queryset date_field [dict options, date start, date end, int step, str mode] %}will take a queryset and model.date_field string and plot frequency of
records. A simple example would be plotting auth.User by date_joined.By default it will render frequency for the last 52 weeks.Example:
{% queryset_sparkline users ‘date_joined’ %} where users is
User.objects.all()
Package: django-spcc
django-spcc 是一个Django APP，提供了实用的model，view，forms，templates等公共库。Only support Django 2.2.x, Python 3.6Quick startAdd “spcc” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'spcc',
]Include the spcc URLconf in your project urls.py like this:path('spcc/', include('spcc.urls')),Run ‘python manage.py migrate’ to create the spcc models.
Package: django-speach-synthesizer
=====Django Speach Synthesizer=====Django Speach Synthesizer is a simple Django app to create .wav files from your textMust be installed RHVoice-test utilite on Unix MachineDetailed documentation is in the "docs" directory.Quick start-----------1. Add some apps  to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'rest_framework_swagger','rest_framework','django_speach_synthesizer',]2. Include the polls URLconf in your project urls.py like this::url(r'^syntha/', include('django_speach_synthesizer.urls')),3. Run `python manage.py migrate` to create the polls models.4. Start the development server and visit http://127.0.0.1:8000/docs/to see docs and available api
Package: django-specifications
This module offers an easy way to attach auxiliary information to Django
models. It allows configuring custom forms through the administration
interface.UsageAdd"specifications"toINSTALLED_APPS.Create aspecification =ForeignKey("specifications.Specification")on the model you want to use specifications with. The foreign key can
be nullable or required, as you wish.Create the place where the specification field data is actually stored:from specifications.models import SpecificationValueFieldBase

class MyObjectField(SpecificationValueFieldBase):
    parent = models.ForeignKey(
        MyObject,
        on_delete=models.CASCADE,
        related_name="fields",
    )

    class Meta:
        ordering = ["field__group__ordering", "ordering"]Inherit fromFormWithSpecificationwhen creating yourModelForm:from specifications.forms import FormWithSpecification

class MyObjectForm(FormWithSpecification):
    class Meta:
        model = MyObjectIf you want to edit models with specifications you might want to use
the following snippet:from specifications.admin import ModelAdminWithSpecification

class MyObjectAdmin(ModelAdminWithSpecification):
    passThe fields are available after saving a specification. The specification can
be changed, but you risk losing data if you do this.
Package: django-spectre-css
django-spectre-cssThis Module uses spectre.css (https://picturepan2.github.io/spectre/) to style a Django application.InstallationInstall:pip install django-spectre-cssTo use includestatic/css/lib/\*.cssin your base templates css files or in your CSS pipelineadd it to your installed apps:INSTALLED_APPS = [
    '...',
    'django_spectre_css',
    'widget_tweaks',
]WarningThe help_text from models is marked as save in the template and therefore it is possible to have html e.g. links in the help_text.
This means that help_text of an ModelField shouldnever be directly based on user input.Examples:This module defines the following tags to make displaying forms easier.render the form header (csrf-token and non-field errors) for the form 'form':{% load spectre_css %}{% render_form_header form %}
  [...]render a field user of the form 'form':{% extends base.html %}
{% load spectre_css %}[...]
{% render_form_field form.user %}render the whole form:{% extends base.html %}
{% load spectre_css %}{% render_form form %}render the first two parts of a MultiValueField as independent Fields:{% extends base.html %}
{% load spectre_css %}[...]
{% render_form_field form.datetime 0 label_text="Date"%}
{% render_form_field form.datetime 1 label_text="Time" %}render_form_fieldtakes the following keyword arguments:switch=True|Falsefor checkboxes, ifTruerenders the checkbox as switchadd_choices=[(value,text),...]to add the choices of an select to the selectreplace_choices=[(value,text),...]to set the choices of an select manuallyempty_option=valueto generate an empty option if None is selected with the textvalue(only select widgets)value=valueoverwrites the initial value of the field (not Checkbox and Select) withvalueUpgradesFrom < 0.3'django-spectre-css'has to be changed into'django_spectre_css'in thINSTALLED_APPSin Django settings.py
Package: django-spectrum
django-spectrumProvides a colorpicker field for DjangoCompatibilitypython>= 3.6django>= 1.11QuickstartInstalldjango-spectrum:pipinstalldjango-spectrumAdd it to yourINSTALLED_APPSlist:INSTALLED_APPS=(..."spectrum",)Then add it to your models:fromdjango.dbimportmodelsfromspectrum.fieldsimportColorFieldclassMyModel(models.Model):color=ColorField(_("color"),default="#FFFF00")Color classThe module defines aColorclass which is used to represent theColorFieldattribute on the model. TheColorclass can also be used standalone without
any Django model.Some examples of funcionality provided by theColorclass:fromspectrum.colorimportColorc=Color("#FFDA0080")>>>print(c.red)255>>>print(c.alpha)128>>>print(c.hex)#FFDA00>>>print(c.hexa)#FFDA0080>>>print(c.rgb)rgb(255,218,0)>>>print(c.rgba)rgba(255,218,0,0.5)>>>print(c.opacity)0.5>>>print(c.as_tuple())(255,218,0,128)
Package: django-speedtracer
Simple performance monitoring for Django using Google Chrome’s Speed TracerNotesChrome Dev channel has not been stable with the Speed Tracer extension. If you
don’t see the server trace results or anything in the request/response headers
you are probably running into this issue:http://code.google.com/p/speedtracer/issues/detail?id=28InstallationDownload and install Speed Tracer:http://code.google.com/webtoolkit/speedtracer/get-started.htmlAdd"speedtracer"to yourINSTALLED_APPSAdd"speedtracer.middleware.SpeedTracerMiddleware"to the beginning of
yourMIDDLEWARE_CLASSES(this is important if you’re also using projects likedjango-localeurlwhich alter normal URL routing)Load your page inside Chrome with SpeedTracer enabledOpen SpeedTracer and expand the “Server Trace” in the page’s detailed
report which should look something like this:ExampleThere is a simple example project available in example_project which can
be used to test the UI:Create a virtualenvInstall djangoChange into example_project and runmanage.py runserver
Package: django-sphinx-autodoc
Django is very nice in that way you can reuse a lot of applications in your
projects. It means for big projects that you’ll get a long list of applications
in your settings.INSTALLED_APP.If you’re using Django with Sphinx and want to autodoc all these apps in a wink
of an eye, then this app is for you.A good combinaison for documenting your project would be:sphinxdjango-sphinx-autodocto generate the doc from your applicationsdjango-sphinxdocto integrate the sphinx doc in your websiteHow it worksCopy the generate_autodoc.py file in your project directory, then execute it.It will scrape all your .py files in each application listed by INSTALLED_APP,
then add automodules in your DS_ROOT/modules.rst.You will then see your applications grouped in 2 different categories:internal applicationis an application located in your project directoryexternal applicationis an app which is somewhere in your pythonpath
(preferably in your virtualenv)Good PracticesAdd a docstring in your application’s __init__.py file to describe it.
django-sphinx-autodoc will automatically scrape it for you.SettingsYou can modify some of the settings used by django-sphinx-autodoc:DS_ROOT: root path for documentation (default to project_dir/doc)DS_MASTER_DOC: name of your master document (default to “index.rst”)DS_FILENAME: name for the modules (default to “auto_modules.rst”)DS_EXCLUDED_APPS: list of applications to exclude (default to [])DS_EXCLUDED_MODULES: list of files to exclude (default to [“__init__.py”])TODOWrite testsimprove the not_relevant stuff to auto exclude a file without class or defDjango command extension to update the autodoc
Package: django-sphinxdoc
django-sphinxdoc – Embed your Sphinx docs into your Django siteThis Django application allows you to integrate anySphinxdocumentation directly into your
Django powered website instead of just serving the static files.Django-sphinxdoc can handle multiple Sphinx projects and offers
aHaystackpowered search.RequirementsThis app requires Python ≥ 3.6, Django ≥ 2.0, Sphinx ≥ 1.0 and
Haystack ≥ 2.8.0.InstallationJust usePIP:$pipinstalldjango-sphinxdocIf you want the latest development version:$gitclonegit@gitlab.com:sscherfke/django-sphinxdoc.git$cddjango-sphinxdoc$mkvirtualenvdjango-sphinxdoc$pipinstall-e.UsageThe documentation can be found in thedocs/directory or athttps://django-sphinxdoc.readthedocs.io/en/latest/.
Package: django-sphinx-hosting
django-sphinx-hostingDocumentation:django-sphinx-hosting.readthedocs.orgThis reusable Django application provides models, views, permissions, REST API
endpoints and management commands for making a private Sphinx documentation
hosting platform.This is useful for when you want Sphinx documentation for your internal software
projects, but that is too sensitive to be shared with a third party.FeaturesUsers must be authenticated to view docsMultiple levels of privileges within the system based on Django authenticationManage multiple versions of your docs per projectAutomatically build and display navigation for each version of your documentaionRenders all documentation published within with a consistent themeTag projects with classifiers to refine searching and filteringSearch across all projectsUse REST API to programmatically interact with the system.  Useful for
integrating into a CI/CD systemInstallation and ConfigurationSee thedocumentationfor how
to install and configuredjango-sphinx-hostingin your Django project.
Package: djangospider
djangospider is light web crawling framework, it have a few code, but
can do high speed crawling, it support three modes to crawl: multithreading,
tornado IOloop, and twisted rector.you can easily to understand to how to use
async crawler.Requirement:Python2.7
Works on LinuxInstall:you can download the zip package in github. then unpack the zip package,
find the path of setup.py, Execute the command:
$sudo python setup.py installThe entry function: Start(start_urls,mode)start_urls parameter: is a list, and it’s element is tuple:the first of the tuple is url which you will crawl,
the second of the tuple is the callback for url.the mode parameter: the crawler’s way, it has three types:if mode is int 1 : multithreading ways
if mode is int 2 : tornado  async ways
if mode is int 3 : twisted  async waysFor example:from djangospider.mycrawl.run import Start ,_crawldef callback(response,url):print “get the %s” %urlstart_urls=[(’http://github.com/’,callback),]
Package: django-spine
Django SpineSpine plugin for DjangoInstallationedit settings.py# set (subcommand, spine, pipeline) package.
INSTALLED_APPS = (
    # external
    "subcommand",
    "spine",
    'pipeline',

    # applications
    "your_app" #
)

# set static directory for your app.
PIPELINE_JS = {
    'application': {
        'source_filenames': (
            'js/*.js',
            'js/spine/*.js',
            'js/spine/**/*.js',
            'js/your_app/lib/*.coffee',
            'js/your_app/*.coffee',
            'js/your_app/models/*.coffee',
            'js/your_app/controllers/*.coffee',
            'js/your_app/views/**/*.eco',
        ),
        'output_filename': 'js/application.r?.js'
    }
}

# set Eco Compiler
PIPELINE_COMPILERS = (
    'pipeline.compilers.coffee.CoffeeScriptCompiler',
    'spine.compiler.EcoCompiler',  # this compiler.
)Run the below for generating spine’s project.$ python manage.py generate spine:new your_app
$ python manage.py generate spine:scaffold your_app example name content messageOr allows removing.$ python manage.py destroy spine:scaffold your_app example name content
$ python manage.py destroy spine:new your_appExamplesFor more information, please see theExample.Setup$ pip install django-spineDocumentationdjango-spine.readthedocs.orgLicenseMIT License
Package: django-spinproject
django-spinprojectOpinionated version ofdjango-admin startprojectthat intends to go further and do things that startproject can't do but most people will do anyway. Here's what you can get:⚛️Whitenoise: for serving static files in production (usually you don't want to set up a separate server for this).🔧settings.py: slightly modified to also understand environment variables and.envfiles. This functionality requires thedjango-environpackage. Also, app logger is mostly pre-configured for you.🔑Minimal login/logout pagesso you can set this up without reading the guide again.🔒Support for marking PostgreSQL databases as read-onlyto prevent accidental modification of critical data.🧰script/bootstrapand otherscripts to rule them allso your fellow developers and maintainers don't ask you how to run this thing. Current versions of these scripts optimized for use withpoetry, but you can easily adapt them for any Python package manager.🏗️Dockerfile and .dockerignore: one day your app will go to production, and we've got you covered.🏛️Gitlab CI config.⚕️Pre-configured linterso you can find some common problems automagically.🏃Pre-configured pytestbecause you are going to need unit tests one day.🗃️Auto-checks if you forgot to create migrationswhenever you run tests or CI.*️⃣.gitignore: well, you know why.Requirements*nix system;django-admininstalled and available from$PATH.Generated files will work fine in Django >= 2.0, not tested in earlier versions.How to useInstall the package:pip install django-spinprojectCreate a new project:django-spinproject --create <path>OR initialize spinproject in your existing project's folder:django-spinproject --initYou're all set. Now you can take a look at the list of available modules:django-spinproject --helpUsedjango-spinproject --enableto enable a module,django-spinproject --upgradeto apply changes.CLI commands--create PATH: create django project in specified path--init: create spinproject.json file--enable MODULE_TO_ENABLE: enable specified module; use 'all' to enable most common modules; use 'ALL' to enable all available modules;--disable MODULE_TO_DISABLE: disable specified module--upgrade [MODULE_TO_UPGRADE]: upgrade (specified or all) enabled modulesAvailable modulesgitignore— Creates.gitignorefile suitable for most Django projects.srta— CreatesScripts to Rule Them All(simplifies life a lot, you should check it out).pytest— Createspytest.iniand.coveragercfiles.dockerfile— Creates a Dockerfile.dockerignore— Creates.dockerignore(you should totally do that).docker-scripts— Creates additional SRTA scripts for building and pushing your Docker image.gitlab-ci— Creates GitLab CI config,.gitlab-ci.yml.pg-readonly— Creates a DatabaseWrapper class for readonly connection to PostgreSQL.settings— Improves the defaultsettings.py, adding support for envvars and.envfiles. Also enables Whitenoise and CLI logger.login-template— Creates minimal login/logout pages.Planned features(for requests, create an issue or drop me a line atm1kc@yandex.ru)ChangelogSee theReleasespage.
Package: django-spirit
SpiritSpirit is a Python based forum built using the Django framework.To see it in action, please visitThe Spirit Project.DocumentationDocs can be found atspirit.readthedocs.ioCompatibilityPython 3.8, 3.9, 3.10, and 3.11 (recommended)Django 3.2 LTS, and 4.2 LTSPostgreSQL (recommended), MySQL, Oracle Database and SQLiteConstrained by "What Python version can I use with Django?"UsageNew in Spirit 0.5pip install django-spirit
spirit startproject mysite
cd mysite
python manage.py spiritinstall
python manage.py createsuperuser
python manage.py runserverVisithttp://127.0.0.1:8000For detailed setup docs, seespirit.readthedocs.ioTestingpython runtests.pyLicenseMITSponsors
Package: django-spirit-user-profile
# Spirit-User-ProfileIntegrates Spirit user profile to yourexistingDjango user model.## What this does?This will insert some fields in your existing User Table that Spirit requires to work properly.## How?I followed this [guide](http://django-authtools.readthedocs.org/en/latest/how-to/migrate-to-a-custom-user-model.html).
If you don’t want to have yet another installed app (this one), you can follow that guide yourself.
Since I created all the migrations for you, you just need to run some commands and you are done.## Why?The old way of joining with a profile table is going away in Django 1.7. This is not true, actually, the oldget_profile()is going away.
This is for a good reason, let’s say you have 4 third-party apps, all using profiles, it would require 4 extra joins to get all the user data.Would not be easier/better to have all the fields in the same table?## DependenciesSpirit>=0.1.3South## InstallingAddspirit_user_profileto yourINSTALLED_APPSAddsouthto yourINSTALLED_APPSAddAUTH_USER_MODEL = ‘spirit_user_profile.User’to yoursettings.pyRun:python manage.py migrate –fake spirit_user_profile 0001
python manage.py schemamigration –auto spirit_user_profile
python manage.py migrate spirit_user_profileFollow the Spirit installation [guide](https://github.com/nitely/Spirit#installing-advanced).## Copyright / LicenseCopyright 2014 [Esteban Castro Borsani](https://github.com/nitely).Licensed under the [MIT License](https://github.com/nitely/Spirit/blob/master/LICENSE).Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Package: django-splash
Splash screen middleware for Django appsOverviewChecks incoming requests, to redirect users to a configured splash screen URL
if they don’t have the proper cookie set. This can be used to display a small
marketing landing page, protect an alpha website from the public eye, make an
announcement, etc.Meant to be used withhttps://github.com/openedx/edx-platform/– or you will need
to import the config_models application to your Django application:https://github.com/openedx/django-config-modelsInstallationAdd the application to theINSTALLED_APPS:python
INSTALLED_APPS = (
    ...
    # Splash screen
    'splash',
)Add the middleware to the configuration:python
MIDDLEWARE_CLASSES = (
    ...
    'splash.middleware.SplashMiddleware',
)Run the migrations:$ ./manage.py migrate splashThen go to your Django admin, inhttp://yourserver/admin/splash/splashconfig/add/and configure the following variables:enabled: To activate the featurecookie_name: The name of the cookiecookie_allowed_values: The user cookie value must match one of the values to not be redirected to the splash screen URLunaffected_users: Users which should never be redirected (usernames)redirect_url: The URL the users should be redirected to when they don’t have the right cookieLicenseThe code in this repository is licensed under the Apache Software License 2.0 unless
otherwise noted.Please seeLICENSE.txtfor details.How To ContributeContributions are very welcome.Please readHow To Contributefor details.Reporting Security IssuesPlease do not report security issues in public. Please emailsecurity@edx.org.Getting HelpHave a question about this repository, or about Open edX in general?  Please
refer to thislist of resourcesif you need any assistance.Change LogUnreleased[1.3.0] - 2023-06-09AddedAdded Support for Django42.[1.2.0] - 2022-01-26RemovedRemoved Support for Django22, 30, 31AddedAdded Support for Django40[1.1.0] - 2021-07-09AddedSupport for django3.2[0.2.2] - 2018-02-09AddedAutomatic upload to PyPI on tags.[0.2.1] - 2018-02-07AddedFirst release on PyPI.