Saravanan666/pypi-org huggingface dataset:
Package: django-testproject-gito
====================Django-Testproject===================Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Package: django-tests
django-tests is an unofficial distribution of the Django test suite,
for third-party projects that have found it useful to build on the tests.Neither the Django project, not the maintainers of this distribution promise
the test suite will have stable APIs. Django’s test suite is not covered
by the project’s deprecation policy. Functions, classes, modules and entire
packages will move or disappear at the drop of a patch release.The version of this package will roughly correspond to the matching Django
version.Installationpip install django-testsLicenseThe same as Django: BSD license
Package: django-tests-assistant
lisence:agplv3+django:1.5pypi:https://pypi.python.org/pypi/django-tests-assistantInstallSetting up test assistant for your project is so easy.
It’s just 3 step process.Install django-tests-assistant from pypi:pip install django-tests-assistantGive path to the search indexes:TEST_ASSISTANT_WHOOSH_PATH = "/path/to/whoosh/index/directory"Edit settings.py of your project and add following at the end:from assistant.settings import *Edit your urls.py and add a url mapping in your urlpatterns:url(r'tests/', include('assistant.urls')),That is it & enjoy :)Oh, don’t forget to do apython manage.py syncdb
Package: django-test-timer
django-test-timerPrint the amount of time that each unit test took.Tested with Django 1.11, Python 2.7Installpip install django-test-timerThen in your Django settingsTEST_RUNNER='django_test_timer.TimedTestRunner'Then run your tests as usual.SettingsBy default, all tests will be printed. To only print tests that take a certain amount of time, set the threshold in your settings.pyTIMED_TEST_THRESHOLD_SECS=2.0Example Output>>> ./manage.py test
....
----------------------------------------------------------------------
Ran 5 tests

Tests Times (>0.0s):
  [2.09s] test_foo (main.tests.test_general.DemoTestCase)
  [1.004s] test_bar (main.tests.test_general.DemoTestCase)
  [0.0s] test_this (main.tests.test_general.DemoTestCase)
  [0.0s] test_that (main.tests.test_general.DemoTestCase)
  [0.0s] test_not_implemented_errors (main.tests.test_general.DemoTestCase)
  
  Destroying test database for alias 'default'...
Package: django-testuser
Source Code =https://gitlab.com/what-digital/django-testuserHome-page:https://gitlab.com/what-digital/django-testuserAuthor: Victor
Author-email:victor@what.digitalLicense: MIT
Description: UNKNOWN
Keywords: django
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python3
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django CMS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Package: django-test-without-migrations
Django Test Without Migrations: Disable migrations when running your Django testsTest Without Migrationsis amanage.py testcommand extension.The new Django 1.7 and 1.8 migration backend demands that you create a migration every time you change a model.This can be inconvenient when you’re just trying to explore your models code.In older Django versions, withSouthwe could use theSOUTH_TEST_MIGRATIONSsettings to tell Django to simply create all model tables without running migrations.This app adds this capability to Django by extending themanage.py testcommand with a–nomigrationsoption.InstallationTest Without Migrationsworks with Django 1.7+.To install it, simply:$pipinstalldjango-test-without-migrationsThen add it to yourINSTALLED_APPSon yoursettings.py:INSTALLED_APPS=(# ...'test_without_migrations',)You will want to make sure thattest_without_migrationsappearsbeforeany other apps inINSTALLED_APPSthat provide a customtestmanagement
command.In this case, you will also want to set theTEST_WITHOUT_MIGRATIONS_COMMANDsetting:TEST_WITHOUT_MIGRATIONS_COMMAND='django_nose.management.commands.test.Command'This will ensure that you don’t lose any additional functionality provided by
your customtestmanagement command.UsageInform the flag--nomigrationswhen running your tests:$pythonmanage.pytest--nomigrationsOr use the alias-n:$pythonmanage.pytest-nVersion 0.6 also supportstestservercommand:$pythonmanage.pytestserver--nomigrationsmyfixture.jsonInspirationThis library was directly inspired by this solution:https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09AuthorHenrique BastosLicenseThe MIT License.
Package: djangotestxmlrpc
Test DjangoXML-RPCviews using theDjango test
client.
Because you’re using the Django test client, you’re not actually sending HTTP
requests and don’t need a server running.This is a slightly modified version of code taken fromthis blog postfrom Forest Bond.Example usage:fromdjangotestxmlrpcimportDjangoTestClientXMLRPCTransportclassTestXmlRpc(django.test.TestCase):...deftest_list_package(self):pypi=xmlrpclib.ServerProxy("http://localhost/pypi/",transport=DjangoTestClientXMLRPCTransport(self.client))pypi_hits=pypi.list_packages()expected=['foo']self.assertEqual(pypi_hits,expected)Supported Python versionsPython 2.5Python 2.6Python 2.7PyPy 1.9Python 3.1Python 3.2Python 3.3or saystox:~/dev/git-repos/djangotestxmlrpc$ tox
...
  py25: commands succeeded
  py26: commands succeeded
  py27: commands succeeded
  pypy: commands succeeded
  py31: commands succeeded
  py32: commands succeeded
  py33: commands succeeded
  congratulations :)You also can check thelatest Travis CI results, but
Travis doesn’t build all of the above platforms.IssuesSend your bug reports and feature requests tohttps://github.com/msabramo/djangotestxmlrpc/issues
Package: django-tethys_compute
=====Tethys Compute=====Tethys Compute is a Django app that is intended to add admin controls for computing resources.Computing resources are managed through the Python module TethysClusterDetailed documentation is in the "docs" directory.Quick start-----------1. Add "tethys_compute" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'tethys_compute',)2. Include the tethys_compute URLconf in your project urls.py like this::url(r'^compute-admin/', include('tethys_compute.urls')),3. Run `python manage.py migrate` to create the tethys_compute models.4. Start the development server and visit http://127.0.0.1:8000/admin/
Package: django-tethys_datasets
===============Tethys Datasets===============Tethys datasets provides an api for Dataset Services such as CKAN and HydroShare so this data can be incorporated intoyour website easily. It also provides a simple data browser for viewing the data in the Dataset Services you have linkedto. Though, part of Tethys Platform, this Django app can be installed independently.Installation------------Tethys Datasets can be installed via pip or downloading the source. To install via pip::pip install django-tethys_datasetsTo install via download::git clone https://github.com/CI-WATER/django-tethys_datasets.gitcd django-tethys_datasetspython setup.py installDjango Configuration--------------------1. Add "tethys_datasets" to your INSTALLED_APPS setting like so::INSTALLED_APPS = (...'tethys_datasets',)2. Include the URLconf in your project urls.py::url(r'^datasets/', include('tethys_datasets.urls')),3. Add the TETHYS_DATASET_SERVICES parameter to your settings.py with appropriate configuration values for the datasetservices you wish to plug into::TETHYS_DATASET_SERVICES = {'ckan_example': {'ENGINE': 'tethys_datasets.engines.CkanDatasetEngine','ENDPOINT': 'http://www.example.com/api/3/action','APIKEY': 'a-R3llY-n1Ce-@Pi-keY',},'hydroshare_example': {'ENGINE': 'tethys_datasets.engines.HydroShareDatasetEngine','ENDPOINT': 'www.hydroshare.org/api','USERNAME': 'username','PASSWORD': 'password'}}
Package: django-tethys_wps
=============================Tethys Web Processing Service=============================Tethys Web Processing Service (WPS) provides an API for WPS services such as 52 North WPS. WPS services can beused to add geoprocessing functionality to web sites that use this app. The Tethys WPS django app also addsa development tool that can be used to browse the available processing capabilities. When Tethys WPS is installed,it also installs, OWSLib. OWSLib is a Python client for OGC web services and it includes an excellent WPS module.Installation------------Tethys Datasets can be installed via pip or downloading the source. To install via pip::pip install django-tethys_wpsTo install via download::git clone https://github.com/CI-WATER/django-tethys_wps.gitcd django-tethys_wpspython setup.py installDjango Configuration--------------------1. Add "tethys_datasets" to your INSTALLED_APPS setting like so::INSTALLED_APPS = (...'tethys_wps',)2. Include the URLconf in your project urls.py::url(r'^wps/', include('tethys_wps.urls')),3. Use the admin console of your site to link WPS services to your site.
Package: django-textblocks
InstallationAddtextblocksand optionallymodeltranslationtoINSTALLED_APPSAdd an entry fortextblocksto yourMIGRATION_MODULES(textblocks cannot ship its own migrations because the exact schema
depends on yourLANGUAGESsetting) and create an empty Python
module (folder with an empty__init__.pyfile).Run./manage.py makemigrations textblocksand./manage.py migrateUsageLoad templatetags{% load textblock_tags %}Addtextblocktags with unique identifiers:{% textblock "introduction" %}Text blocks with identifiers that do not exist in the database yet will
automatically be created.You can optionally provide the following keyword arguments:ArgumentDescriptionPossible ValuesDefaulttypeSets the content type.text/plain,text/htmltext/plainshow_keyIf set to true, the template will render the textblock key for textblocks without a value.False,0,True,1FalseThe default value for theshow_key-option can be overriden with theTEXTBLOCKS_SHOWKEY = True-setting.
Package: django-textchunks
Django Text ChunksInsert blocks of text anywhere in in your templateInstallationInstall package using pip$ pip install django-textchunksBasic usageAdd thetextchunksapplication toINSTALLED_APPSin your settings file (usuallysettings.py)INSTALLED_APPS = (
    ...
    'textchunks',
    ...
)Sync database with./manage.py migrate. After that, add textchunks using
django admin interface and use them on your templates:{% load textchunks %}<html><head><title>Test</title>{% textchunk "google_analytics" %}</head><body><h1>Blah blah blah</h1><divid="sidebar">...</div><divid="left">{% textchunk "home_page_left" %}</div><divid="right">{% textchunk "home_page_right" %}</div></body></html>Advanced usageThere are two template tags available:textchunkandtextchunk_plain.
Text displayed withtextchunkis not escaped, any html and javascript is
rendered or executed.textchunk_plaintag usesfrom django.utils.html.escapeto escape it’s content, so it’s safe to render user-entered text.textchunktag uses djangoTemplateobject to render data and has access
to template context. So, text<span>{{ request.user.username }}</span>for user with username asagentsmithwill be rendered as<span>agentsmith</span>
Package: django-textclassifier
Validators and some utility functions for validating fields using a naive
bayesian text classifier, provided byTextBlobUsageAdd this application to your Django project:INSTALLED_APPS = [
    ...
    'textclassifier',
    ...
]You’ll also need to set the data file source in your settings:TEXTCLASSIFIER_DATA_FILE = '/tmp/test.json'NoteThe current implementation is very basic, only allowing for one data file.
This will eventually be more configurable, but is just a POC for now.Data fileThe data file needs to be written by hand for now as well. It is read using theTextBlob JSON formatterThe file should use the labelsspamandvalid:[
    {"text": "This is spam", "label": "spam"},
    {"text": "This is valid", "label": "valid"}
]
Package: django-textplusstuff
AboutSummaryA django field that makes it easy to intersperse ‘stuff’ into blocks of text.A Flexible Interfacedjango-textplusstuffprovides a simple interface for returning the contents of your field however you like: as either markdown-flavored text, valid HTML markup (with or without ‘stuff’ interspersed) or even plain text (with all markdown formatting removed).Keep Track of Your Contentdjango-textplusstuffalso keeps track of which model instances are associated within each TextPlusStuffField (via theTextPlusStuffLinkmodel) so you can see where all your textplusstuff-integrated content is used across your django project.Easy IntegrationRegistering existing models for use in TextPlusStuffFields is as easy as integrating a model into the admin.Designer/Front-End Developer FriendlyEach model registered withdjango-textplusstuffcan have as many ‘renditions’ as you like which keeps business logic DRY while enabling designers and front-end developers to have control over how content is displayed.CompatibilityVersion 0.7 is compatible with:Python 2.7, 3.4, 3.5, 3.6Django 1.7, 1.8, 1.9Django REST Framework 2.5, 3.0, 3.1, 3.2, 3.3 (maybe 3.5+, but untested)Version 0.8 is compatible with:Python 2.7, 3.4, 3.5, 3.6Django 1.10, 1.11Django REST Framework 3.6, 3.7Version 0.9 is compatible with:Python 3.4, 3.5, 3.6Django 2.0Django REST Framework 3.7DocumentationFull documentation available atRead the Docs.
Package: django-textrank
It is simple web-service for ranging a text by keywords.Installationpip3installdjango-textrank# orpip3installgit+https://gitlab.com/djbaldey/django-textrank.git@master#egg=django-textrankSupport DatabasesSQLitePostgreSQLYou can use MySQL or MariaDB if you are willing to accept that there will be no protection against
duplicate records in the database and you will need to manage this yourself.Quick startAdd “textrank” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'djangokit',
    'textrank',
]Include the polls URLconf in your project urls.py like this:path('textrank/', include('textrank.urls')),Runpython3 manage.py migrateto create the necessary models.Start the development server and visithttp://127.0.0.1:8000/textrank/to check your text.
Package: django-text-translator
django-text-translatorA Django application that supports adding multiple third-party engines for text translation.Currently, it supports the following engines:DeepLDeepLXOpenAIClaudeAIAzure OpenAIGoogle GeminiGoogle Translate(Web)Microsoft Translate APICaiyun APIInstallationInstall:pip install django-text-translatorAdd "django_text_translator" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
        ...,
        "django_text_translator",
    ]Runpython manage.py makemigrationsandpython manage.py migrateto create the models.Start the development server and visit the admin to add a translator.Translate a text:from django_text_translator.models import OpenAITranslator

openai_translator = OpenAITranslator.filter(valid=True).first()

results = openai_translator.translate(text="Hello, world!",target_language="Chinese")

print(results.text) # 你好，世界！
print(results.tokens) # 51More details can be found in the models.py file.
Package: django-tgb-basics
django_tgb_basicsThis is a collection of useful (basic) features that I usually use in my
Django Projects. I realize that I never use every feature in other libraries,
so I decide to put together the most important ones to easilly reuse.Installation and setupInstall with your python package manager as usually you do.
To install with pip:pip install django_tgb_basicsOnce the package is installed you should edit yoursettings.pyfile
and add (or modify) theAUTHENTICATION_BACKENDSto use theEmailAuthBackend.
It's not necessary add to installed apps if you only need the auth backend.AUTHENTICATION_BACKENDS = [
    'django_tgb_basics.backends.EmailAuthBackend',
    # Other authentications backends
]But if you need another features likeMultiSerializerViewSet, you need to
adddjango_tgb_basicstoINSTALLED_APPSin thesettings.pyfile of your
project.INSTALLED_APPS = [
    ...
    'django_tgb_basics',
    ...
]
Package: django-th
Trigger HappyAutomate the exchanges of the data between the applications and services you use on the web.Make Twitter talk to Mastodon, make Github talk to Mattermost, store your favorite tweets by creating notes in Evernote, follow RSS feeds and post each news in Wallabag, Pocket or Evernote.The possibilities are too numerous to name all of them, but with that project you won’t have to raise your little finger at all: automate everything and make your life easier.And last but not least, as this is your project, all the credentials you used to give to IFTTT and consorts, are now safe in your hands.RequirementsThe minimum requirements are the following:Python 3.6+RedisDjangoDjangoRestFrameworkDjango-formtoolsDjango-js-reverseDjango-RedisPypandocRequests-oAuthlibArrowInstallationpipinstalldjango-thDocumentationFor installation and settings, seehttp://trigger-happy.readthedocs.org/
Package: django-thaad
Django Thaad (interceptor)Django thaad is a library that allows project to intercept all request in and endpoint
and save crutial information to inspect the payload in request, also you can create
mock responses to send back to the requester and create Fake APIs.How to useAdd interceptor app in your settings:INSTALLED_APPS = (
    #...
    'interceptor',
    #...
  )Add interceptor urls in your main urls.py:urlpatterns = [
    #...
    path('', include('interceptor.urls', namespace='interceptor'))
    #...
]
Package: django-thailand-geography
django-thailand-geographyDjango models for Thailand geography information. This library also includes a command to import geography data fromthailand-geography-data/thailand-geography-jsonInstallationpipinstalldjango-thailand-geographySetupAddthailand_geographyintoINSTALLED_APPS# settings.pyINSTALLED_APPS=[...'thailand_geography',]Run migrationpythonmanage.pymigrateImport data from JSON databasepythonmanage.pyimport_geoDevelopmentRequirementsDockerPythonPoetryMigratemakemigrateLintingmakelintTestingmaketestFix Formattingmakeyapf
Package: django-theherk-article
TheHerk Article===============TheHerk Article is a very simple django CMS plugin for posting an article that consists of:- Title- Slugged Title- Description- Body (html)By default the title field and description will populate an hgroup, but this can be overwritten in your template. The slug is to link the title to an ID on the page.The slug is set to only save on create so that the link won't change over time and edits.The body can use html, but this, too, can be changed in your template.Usage-----1. Add "article" to your INSTALLED_APPSINSTALLED_APPS = (...'article',)2. Run `python manage.py migrate article`.Alternately, you could `syncdb` and `migrate --fake`
Package: django-theherk-events
TheHerk Events==============TheHerk Events is a event posting tool that consists of a Django-cms plugin for showing upcoming events across calendars and has an apphook for viewing calendars and event details.Usage-----1. Add "events" to your INSTALLED_APPSINSTALLED_APPS = (...'resources','events',)2. Run `python manage.py migrate events`.Alternately, you could `syncdb` and `migrate --fake`Warning-------To use the plugin with the default template, you will need to use the apphook, too. The plugin links to a details page in the apphook.If you intend to use the events plugin without the apphook as well, you will need to override template not to use the URL that points to the apphook.
Package: django-theherk-external-urls
TheHerk External URLs=====================TheHerk External URLs is a tool that allows linking menu items in Django-cms to external URLs.Usage-----1. Add "menu_external_urls" to your INSTALLED_APPSINSTALLED_APPS = (...'menu_external_urls',)2. Run `python manage.py migrate menu_external_urls`.Alternately, you could `syncdb` and `migrate --fake`
Package: django-theherk-menu-icons
TheHerk Menu Icons==================TheHerk Menu Icons is a django CMS navigation modifier that allows attaching icons to menu nodes. These icons can be: a link to an external icon resource, an uploaded icon image file, or by using a class to call a Font Awesome icon.Due to a dramatic change in the process for modifying the page model in django CMS, TheHerk Menu Icons v1.3 was the last version that supported less than django CMS v3.Now support django CMS v3-------------------------TheHerk Menu Icons has been upgraded to support django CMS v3. Version 2.0.0 now supports adding via the cmstoolbar on the frontend. This has been tested using Python 3.4.0.Usage-----1. Add "menu_icons" to your INSTALLED_APPSINSTALLED_APPS = (...'menu_icons',)2. Run `python manage.py migrate menu_icons`.**note** - This assumes you are using `south`. If you aren't you can just use `syncdb`.I have included the template that I use in the menus, so that you can see how it can be implemented.
Package: django-theherk-resources
TheHerk Resources=================TheHerk Resources is a Django application for keeping track of and referencing resources like organizations and people (for now).Each allows the addition of many contact types with a very straightforward admin interface.It also includes Django-cms plugins for displaying the data in a few different ways.Usage-----1. Add "resources" and "localflavor" to your INSTALLED_APPSINSTALLED_APPS = (...'localflavor','resources',)2. Run `python manage.py migrate resources`.Alternately, you could `syncdb` and `migrate --fake`
Package: django-theherk-simplemenu
TheHerk Simple Menu===================TheHerk Simple Menu is a very simple django CMS plugin for posting a quick and easy quick links menu. Nothing fancy; just a wherever you want menu with whatever links you want.Usage-----1. Add "simplemenu" to your INSTALLED_APPSINSTALLED_APPS = (...'simplemenu',)2. Run `python manage.py migrate simplemenu`.Alternately, you could `syncdb` and `migrate --fake`
Package: django-theherk-updates
TheHerk Updates===============TheHerk Updates is an application for tracking and displaying updates to anything; for instance, a website. You just add updates by date and description and then use the plugin to display them.There is an apphook so you can attach the full update list to a menu URL.Usage-----1. Add "updates" to your INSTALLED_APPSINSTALLED_APPS = (...'updates',)2. Run `python manage.py migrate updates`.Alternately, you could `syncdb` and `migrate --fake`