Saravanan666/pypi-org huggingface dataset:
Package: django-activity-stream-lab
Django Activity StreamWhat is Django Activity Stream?Django Activity Stream is a way of creating activities generated by the actions on your site.It is designed for generating and displaying streams of interesting actions and can handle following and unfollowing of different activity sources.
For example, it could be used to emulate the Github dashboard in which a user sees changes to projects they are watching and the actions of users they are following.Action events are categorized by four main components.Actor. The object that performed the activity.Verb. The verb phrase that identifies the action of the activity.Action Object.(Optional)The object linked to the action itself.Target.(Optional)The object to which the activity was performed.Actor,Action ObjectandTargetareGenericForeignKeysto any arbitrary Django object and so can represent any Django model in your project.
An action is a description of an action that was performed (Verb) at some instant in time by someActoron some optionalTargetthat results in anAction Objectgetting created/updated/deleted.For example:justquick(actor)closed(verb)issue 2(object)ondjango-activity-stream(target)12 hours agoNomenclature of this specification is based on the Activity Streams Spec:http://activitystrea.ms/For complete documentation seeDjango Activity Stream DocumentationContributorsThis project exists thanks to all the people who contribute!SponsorsGet supported django-activity-stream with the Tidelift Subscription
Package: django-activity-tracker
Django Activity TrackerA reusable Django application to track user actions through the database.Documentation:https://William-Fernandes252.github.io/django-activity-trackerGitHub:https://github.com/William-Fernandes252/django-activity-trackerPyPI:https://pypi.org/project/django-activity-tracker/Free software: MITIntroductionI once worked on a project where user interactions about business entities needed to be recorded, in a detailed and consistent manner, in the database for auditing reasons. When a user changed the state of an object, the change, along with its author and time, should be saved. Furthermore, the object in question should be easily located. As I came up with a conveniently generic solution, I decided to turn this into a reusable application for Django projects.Currently it works only inDjango REST Frameworkprojects, and withModelViewSets, but in the future I plan to support Django CBVs and view functions as well.FeaturesTrack users interations with any model of your project in agenericway;Retrive and protect this information;Use the full capabilities of the Django ORM to gather information about what a specific user did to an object, what users interacted with it, and more!CreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.
Package: django-actrack
© 2014-2020 Thomas Khyndjango-actrackis an activity tracker for the Django framework. It enables
recording any activity by any actor, relative to any number of targets or
related objects, with or without additional data. The activity can then be
retrieved through custom feeds.It has been tested with Django 2.2.* and 3.0.* and their matching Python versions (3.5 to 3.8).If you like django-actrack and find it useful, you may want to thank me and
encourage future development by sending a few mBTC / mBCH / mBSV at this address:1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9.FeaturesActions are defined by an actor, a verb and optional targets and related
objects (yes, from any model and as many as you want, thanks todjango-gm2m)
as well as additional dataConvenient accessors to relevant actions from any model instance (such asuserX.actions.feed())Users can track objects for specific action types (verbs)Deleted items do not disappear from the activity trackerUnread/read status actionsAutomatic grouping when identical or similar actions occur close to one
anotherFull customisation support for actions combination (e.g. if action A implies
action B, do not log action B)DocumentationThe documentation is hosted onreadthedocs. You’ll find a quick start and
the description of all django-actrack’s advanced features.
Package: django-adaptive
Manages to load templates according to the type of device to a specific directory prefix.These loaders work with the django-mobi app. Please read the documentation for more information:https://pypi.python.org/pypi/django-mobiInstallIt is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.From PyPipip install django-adaptiveFrom Github-e git+https://github.com/RevSquare/django-adaptive#egg=django-adaptiveSetupBefore starting, make sure you have correctly setup django-mobi:https://pypi.python.org/pypi/django-mobiDjango adaptive basicaly overwrites django default filesystem and app_directories loaders. You can pick the overwritten loader you want to use separately and use them concurently with the former django loaders.The first step is to add the app in your installed apps list in settings.pyINSTALLED_APPS=(...'django_adaptive'...)Then you will need to declare the loaders you want to add in your settings.py fileTEMPLATE_LOADERS=('django-adaptive.filesystem.Loader','django-adaptive.app_directories.Loader',#'django.template.loaders.filesystem.Loader',#'django.template.loaders.app_directories.Loader',)It’s also possible to use cached loader.
It works with django 1.7.xTEMPLATE_LOADERS=(('django_adaptive.cached.Loader',('django_adaptive.filesystem.Loader','django_adaptive.app_directories.Loader',)),)Final step is to add ThreadLocal MiddlewareMIDDLEWARE_CLASSES=(...'mobi.middleware.MobileDetectionMiddleware','django_adaptive.middleware.ThreadLocals',...)Declaring your device prefixesAt this stage nothing will be done. You need to specify the directories for each device categories in your settings.py.The settings constants are:ADAPTIVE_TEMPLATE_DIRECTORIES_DESKTOPADAPTIVE_TEMPLATE_DIRECTORIES_TABLETADAPTIVE_TEMPLATE_DIRECTORIES_MOBILEUsage exemple:importosDEBUG=TrueTEMPLATE_DEBUG=DEBUGPROJECT_PATH=os.path.join(os.path.dirname(__file__),'..')TEMPLATE_DIRS=(os.path.join(PROJECT_PATH,'templates'))ADAPTIVE_TEMPLATE_DIRECTORIES_MOBILE='mobile'This code will install the templates for mobile in thetemplates/mobiledirectory. And the rest of the files intemplates(by default no prefix is added).In case you would need to combine devices type in a similar directory, you just need to point them to it. For exemple:ADAPTIVE_TEMPLATE_DIRECTORIES_DESKTOP='desktop'ADAPTIVE_TEMPLATE_DIRECTORIES_TABLET='mobile'ADAPTIVE_TEMPLATE_DIRECTORIES_MOBILE='mobile'This would render the same type of template for both tablets and mobile devices.LINKSDevelopment:https://github.com/RevSquare/django-adaptivePackage:https://pypi.python.org/pypi/django-adaptive
Package: django-ad-code
django-ad-code is a reusable application for managing and rendering ad tags
from third-party ad server or ad network such Adsense, DoubleClick or OpenX.django-ad-code isnotan ad server or full ad management system. It is simply a tool
to help you manage the ad tags needed to use an ad network.Installationdjango-ad-code requires Django >= 1.8 and Python 2.7 or 3.3+.To install from PyPi:pip install django-ad-codeDocumentationDocumentation on using django-ad-code is available onRead The Docs.Licensedjango-ad-code is released under the BSD License. See theLICENSEfile for more details.ContributingIf you think you’ve found a bug or are interested in contributing to this project
check outdjango-ad-code on Github.
Package: django-add-default-value
Django Add Default ValueDjango Migration Operation that can be used to transfer a field's default value
to the database scheme.Supported DatabasesMySQL (or compatible)PostgreSQLMSSQL (currently not tested)CockroachDBInstallationpip install django-add-default-valueYou can then useAddDefaultValuein your migration file to transfer the default
values to your database. Afterwards, it's just the usual./manage.py migrate.UsageAdd this manually to a autogenerated Migration, that adds a new fieldAddDefaultValue(model_name='my_model',name='my_field',value='my_default')ExampleGiven the following migration:BEFOREfromdjango.dbimportmigrations,modelsclassMigration(migrations.Migration):dependencies=[...]operations=[migrations.AddField(field=models.CharField(default='my_default',max_length=255),model_name='my_model',name='my_field',),]Modify the migration to add a default value:AFTERfromdjango.dbimportmigrations,modelsfromdjango_add_default_valueimportAddDefaultValueclassMigration(migrations.Migration):dependencies=[...]operations=[migrations.AddField(field=models.CharField(default='my_default',max_length=255),model_name='my_model',name='my_field',),AddDefaultValue(model_name='my_model',name='my_field',value='my_default')]If you checkpython manage.py sqlmigrate [app name] [migration],
you will see that the default value now gets set.ContributingFirst of all, thank you very much for contributing to this project. Please base
your work on themasterbranch and targetmasterin your pull request.To succesfully use thedbshellmanagement command (very useful for debugging),
the client binaries for the respective database engines are needed.Then installpipenv.
Edit thePipfileto select your Django version and the accompanying MS-SQL
driver. Make sure you don't commit this change in any pull request - we always
set it to the oldest supported version.Once you've updated the Pipfile, runpipenv install --python 3 --dev. You
should now have a working development environment as a virtualenv. To access it,
runpipenv shellor prefix commands withpipenv run. For more information
see thepipenv documentation.TestingCopy the relevant sample settings file intest_projectto the file without.samplein it. Adjust the values to match your environment (or match your
environment to the values).You should now be able to run the tests usingtox. Select your environment
when needed, using the-ecommand line flag. SeeTox's excellent documentation.Licensedjango-add-default-valueis released under the Apache 2.0 License.
Package: django-add-default-value-postgresql
Django Add Default Value for PostgreSQLDjango Migration Operation that can be used to transfer a field's default value
to the database scheme.Based ondjango-add-default-valueby3YOURMIND. This variant drops support for other databases, specifically the Azure ODBC driver which does not support current versions of Django.DependenciesPython 3.6, 3.7, or 3.8Django 2.2 or 3.0Installationpip install django-add-default-value-postgresqlYou can then useAddDefaultValuein your migration file to transfer the default
values to your database. Afterwards, it's just the usual./manage.py migrate.UsageAdd this manually to an autogenerated Migration that adds a new field:AddDefaultValue(
    model_name='my_model',
    name='my_field',
    value='my_default'
)ExampleGiven the following migration:operations = [
    migrations.AddField(
        field=models.CharField(default='my_default', max_length=255),
        model_name='my_model',
        name='my_field',
    ),
]Modify the migration to add a default value:+from django_add_default_value import AddDefaultValue
+
 operations = [
     migrations.AddField(
         field=models.CharField(default='my_default', max_length=255),
         model_name='my_model',
         name='my_field',
     ),
+    AddDefaultValue(
+        model_name='my_model',
+        name='my_field',
+        value='my_default'
+    )
 ]If you checkpython manage.py sqlmigrate [app name] [migration],
you will see that the default value now gets set.TestingYou can test against multiple versions of Django usingtox. To test across Python versions, use pyenv to runtoxunder each version.Licensedjango-add-default-value-postgresql is released under the Apache 2.0 License, based ondjango-add-default-valueby3YOURMINDwhich is also released under the Apache 2.0 License.Changes from original sourceremoved MySQL-related coderemoved MSSQL-related codeadded allow_migrate_model check on database_forwards and database_backwardsadded support for Python 3.7 and 3.8, dropped support for <3.6added support for Django 2.2 and 3.0, dropped support for <2.2
Package: django-addendum
Change snippets of copy on your site, on the fly, for any application, and
without a full-fledged CMS.Solving queries like:Hey, we need to change the greeting on login from “Hi!” to “Sup?”And:The footer copy needs to be updated.And:The marketing team would really like to be able to change that message on a
monthly basis. I don’t care that that’s a third-party appliwhoozitz!This is all simple stuff and it’s probably coded right into your templates.
Changing it is easy enough, but requires a developer and then a release. Boo!UsageJust addaddendum_tagsto your templates:{% load addendum_tags %}

{% snippet 'home:greeting' %}Hi!{% endsnippet %} {{ user.first_name }}

<footer>
  {% snippet 'home:footer' %}&copy; 2011 by Acme Corp.{% endsnippet %}
</footer>Now you can edit content for these placeholders from the admin interface. If
you don’t add anything or you delete text, the site text will always revert to
what is in the template.Use it for small bits of user modifiable text from any template on your site,
and for swapping out -lorem ipsum- text when prototyping.Find some moreinformation in the docsInstallationInstall the package from PyPI:pip install django-addendumAdd it to yourINSTALLED_APPStuple:INSTALLED_APPS += ('addendum')ContributingContributions are welcome but should follow some basic guidelines to make life
easier:Pull requests should be made from distinct branches that include only the requested changes branched from the canonical master branch.Include tests for bug fixes and new features. Ensure that your Travis build is passing before submitting the pull request.Include documentation for any new features.For multi-commit updates please squash commits so the packager maintainer only has at most a few commits to review.Please limit changes to your specific pull request (excluding extraneous changes and please do not bump the version for your own changes).LicenseBSD licensed.TestingTo run the tests, clone the repository and install tox.:pip install toxThen use the command:toxTo run the tests against specified (or all) environments.Otherwise, install the test requirements inrequirements.txtand then run thepy.testcomand.toxis recommended.
Package: django_addexampledata
Easily bundle example data with your django apps.Install$ pip install django_addexampledataSetupAdd'django_addexampledata'toINSTALLED_APPS.Usagedjango_addexampledataprovides two Django management commands:addexampledataFinds all apps with anexampledata.py, and runsappname.exampledata.add_exampledata()on these apps.
See the howto below for more info.createexampleuserCreate an example user. See--helpfor the User attributes that can be set.
Example:python manange.py createexampleuser grandma --is-superusercreates a superuser named grandma with password set totest.addexampledata howtoAddexampledata.pyto the root of your Django app (in the same directory asmodels.py). Add anadd_exampledatafunction to this module. Yourexampledata.pymay look something like this:from models import Page

def add_exampledata():
    aboutus = Page.objects.create(title="About us",
                                  body="Hello cruel world")
    contactinfo = Page.objects.create(title="Contact info",
                                      body="Coming soon.",
                                      parent=aboutus)As long as your Django app is in INSTALLED_APPS,<appname>.exampledata.add_exampledatais run each time you run:python manage.py addexampledataaddexampledata on specific appsYou can specify the apps that you want to add example data for as arguments for
the command. Example:python manage.py addexampledata myapp myotherappaddexampledata adds the same data each time it runs!You can solve this in two ways:(reccommended)Add a make target or something similar (we use a Fabric
action) to reset your example database and re-runaddexampledata. Use
this action whenever you change/add models or exampledata.Check for existing items inadd_exampledata()before inserting new data.
Package: django-addle
Pluggable advertisement and promotion managing applicationQuick startAdd “addle” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'addle',
]Ensure that you havedjango.contrib.authadded as an application as well.Include the addle URLconf in your project urls.py like this:url(r'^addle/', include('addle.urls')),Runpython manage.py migrateto create the addle models.Start the development server.Visithttp://127.0.0.1:8000/addle/to see the app.Notes for the pluggable applicationThe standalone application is basically ready to use as one would normally run
a Django app, but the pluggable application has a few more things to note.Addle hooks into the Django permissions system. (…)Addle is designed, loosely, for a site usingBootstrap, so elements are classed as such, but this is
designed to not be a hard requirement.  To that end, some styles are defined within the templates.Further informationSource, issues, and further information:GitHubAuthorThe OpenFurry Contributors
Package: django-address-app
django-address-appWelcome to Django AddressQuickstartInstallpip install django-address-appAdd them to your INSTALLED_APPS:INSTALLED_APPS=[...'django_address',...]If you want to use your models and don't want to subclass Abstract models, you must inform django_address about your models in settings.py:# myproject/settings.pyDJANGO_ADDRESS_COUNTRY_MODEL="my_app.Country"DJANGO_ADDRESS_REGION_MODEL="my_app.Region"# or my_app.State, my_app.Province, etc..DJANGO_ADDRESS_DISTRICT_MODEL="my_app.District"# or my_app.CountyDJANGO_ADDRESS_LOCALITY_MODEL="my_app.Locality"DJANGO_ADDRESS_STREET_MODEL="my_app.Street"DJANGO_ADDRESS_ADDRESS_MODEL="my_app.Address"If you want change behavior processing AddressField, you can use your Service# myproject/settings.pyDJANGO_ADDRESS_SERVICE_CLASS="django_address.service.Address"Examplefromdjango.dbimportmodelsfromdjango_address.fieldsimportAddressFieldclassOrder(models.Model):"""Order model."""delivery_address=AddressField(verbose_name="Delivery address")Setting value:using dict - required field 'raw' onlyobj.address={"raw":"Volodymyrska st, 10","country":"Ukraine",# can use pk or instance country model"country_code":"UA","region":"Kyiv City",# can use pk or instance Region model"region_code":"UA-32","district":"",# can use pk or instance District model"district_code":"","locality":"Kiev","street":"Volodymyrska street",# can use pk or instance Street model"street_number":"10","postal_code":"02000","latitude":50.456302,"longitude":30.517044,"formatted_address":"Khreschatyk St, 15, Kyiv, Ukraine, 02000",}orobj.address=address# pk or Address model instancePrerequisitesYou will need:python3.8(seepyproject.tomlfor full version)djangowith version3.0DevelopmentWhen developing locally, we use:editorconfigplugin (required)pipenv(required)pycharm 2017+orvscodeAlternativesdjango-address
Package: django-addressbook
Features:* Allow users to register themselves via their Facebook, Twitter,Google, or OpenID credentials* Users can create contact records organized into user-defined contact groups* The app supports storing for each contact:** Multiple physical addresses** Multiple phone numbers** Multiple emails* Each contact record supports exporting that record in vCardformat (http://en.wikipedia.org/wiki/VCard)* Each contact record presents a QR code to allow a barcodescanner to import it* Each contact record accesses any Gravatar for the contact(http://en.gravatar.com/)* Each contact uses the hCard microformat in its markuphttp://microformats.org/wiki/hcard* A full unit test suite* The app is installable using standard Python distutilsInstalling the app:1) clone via git and python setup.py installor2) easy_install django-addressbookSetting up the app:Assuming you have Django installed and this app installed (easy_install django-addressbook),1) python manage.py syncdb2) add addressbook.urls to your urls:  url(r'^addressbook/', include('addressbook.urls')),3) add your site domain in settings.py: DOMAIN = 'example.com'4) sym-link uni_form media: ln -s /path/to/uni_form/static/uni_form /path/to/project/media/uni_form(setup may differ depending on your MEDIA_URL)5) (optional) sym-link the sample css file for nicer looking forms (this may override your css)::~$ ln -s /path/to/addressbook/static/addressbook.css /path/to/proj/media/css/addressbook.css6) (optional) override templates as necessary by creating an 'addressbook' directoryNOTES:vCard Format: http://www.ietf.org/rfc/rfc2426.txtVobject Django snippet: http://djangosnippets.org/snippets/58/Vobject usage: http://vobject.skyhouseconsulting.com/usage.html, http://lists.brotherharris.com/pipermail/vobject/2009-January/000165.html
Package: djangoaddressesapp
djangoaddressesappdjangoaddressesappis a django app to register addresses.FeaturesComplete address registration.Importance of regions, states and cities directly from the IBGE API.InstallationRunpip install djangoaddressesappAdddjangoauthenticationapptosettings.INSTALLED_APPSINSTALLED_APPS=['djangoaddressesapp',#...]UpgradeRunpip install djangoauthenticationapp --upgradeRunpython manage.py migrateRunpython manage.py collectstatic --clearRestart your application server