Saravanan666/pypi-org huggingface dataset:
Package: aldine
aldineA Wagtail app for facilitating responsive rendering. Please bear with us while we prepare more detailed documentation.Compatibilityaldine' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallaldineAddaldineto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'aldine'# ...]
Package: aldjemy
Aldjemy integrates SQLAlchemy into an existing Django project,
to help you build complex queries that are difficult for the Django ORM.While other libraries use SQLAlchemy reflection to generate SQLAlchemy models,
Aldjemy generates the SQLAlchemy models by introspecting the Django models.
This allows you to better control what properties in a table are being accessed.InstallationAddaldjemyto yourINSTALLED_APPS.
Aldjemy will automatically add ansaattribute to all models,
which is an SQLAlchemyModel.Example:User.sa.query().filter(User.sa.username=='Brubeck')User.sa.query().join(User.sa.groups).filter(Group.sa.name=="GROUP_NAME")Explicit joins are part of the SQLAlchemy philosophy,
so don’t expect Aldjemy to be a Django ORM drop-in replacement.
Instead, you should use Aldjemy to help with special situations.SettingsYou can add your own field types to map django types to sqlalchemy ones withALDJEMY_DATA_TYPESsettings parameter.
Parameter must be adict, key is result offield.get_internal_type(),
value must be a one arg function. You can get idea fromaldjemy.table.Also it is possible to extend/override list of supported SQLALCHEMY engines
usingALDJEMY_ENGINESsettings parameter.
Parameter should be adict, key is substring after last dot from
Django database engine setting (e.g.sqlite3fromdjango.db.backends.sqlite3),
value is SQLAlchemy driver which will be used for connection (e.g.sqlite,sqlite+pysqlite).
It could be helpful if you want to usedjango-postgrespool.MixinsOften django models have helper function and properties that helps to
represent the model’s data (__str__), or represent some model based logic.To integrate it with aldjemy models you can put these methods into a separate mixin:classTaskMixin:def__str__(self):returnself.codeclassTask(TaskMixin,models.Model):aldjemy_mixin=TaskMixincode=models.CharField(_('code'),max_length=32,unique=True)Voilà! You can use__str__on aldjemy classes, because this mixin will be
mixed into generated aldjemy model.If you want to expose all methods and properties without creating a
separate mixin class, you can use thealdjemy.meta.AldjemyMetametaclass:classTask(models.Model,metaclass=AldjemyMeta):code=models.CharField(_('code'),max_length=32,unique=True)def__str__(self):returnself.codeThe result is same as with the example above, only you didn’t need to
create the mixin class at all.Release ProcessMake a Pull Request with updated changelog and bumped version of the projectpoetryversion(major|minor|patch)# choose which version to bumpOnce the pull request is merged, create a github release with the same version, on the web console or with github cli.ghreleasecreateEnjoy!
Package: aldkit
ALDALD package is a tool to parse the output of ALD code which is written by Prof. Ankit Jain, IIT Bombay.
ALD code is to solve the linearized Boltzman transport equation for three, four phonon and electron-phonon scattering rates from abinitio methods.
For more details contacta_jain@iitb.ac.in,harishpvv@gmail.comimport package asfrom aldkit.ald import ALDALD class instance has to be created asald = ALD(outdir='path')Then methods can be called asald.get_frequencies()Cite: Phonon properties and thermal conductivity from first principles, lattice dynamics, and the Boltzmann transport equation, A Jain et al,https://doi.org/10.1063/1.5064602
Package: aldryn-apphook-reload
Reload urls of django CMS Apphooks without a restartWarningThis is a Prototype.IntroductionDjango CMS allowsextending cms pages with Apphooks.
Apphooks are saved in the Database, which means urls depend on the database contents. For changes
to Apphooks to be reflected inreverse()and{% url ... %}calls, a webserver restart
is usually necessary.aldryn-apphook-reload will automatically reload urls from Django CMS apphooks, without the need
of a webserver restart. It listens tocms.signals.urls_need_reloadingand causes a reload.The signal is only available in the process where the change to the database was made. In order
for other processes to know when to reload (be it a gunicorn worker or a process on a other server)
a token is saved in the database. This implies a performance hit: 1 database query per request.Installationaddaldryn_apphook_reloadtoINSTALLED_APPS.addaldryn_apphook_reload.middleware.ApphookReloadMiddlewaretoMIDDLEWARE(place it as close to the top as possible)run migrations:python manage.py migrate aldryn_apphook_reloadAdvancedIf the process that triggerscms.signals.urls_need_reloadingis a simplerunserverunder
load ( ~2 requests per second), the reload sometimes fails on the other processes. This might be
due to an unknown race condition, where the token in the database is refreshed already, but the
new apphooks are not in the database yet. The other processes would try to reload right away
and would reload the old apphooks.
Tests with gunicorn in the default mode and in the gevent mode worked fine though.Why not save the token in the cache backend for better performance? - Because altering the cache
would happen right away, before the database transaction is committed at the end of the request.
Thus other process would reload their urls prematurely.
Package: aldryn-background-image
============Aldryn Background Image============Aldryn Background Image provides a plugin that allows you to set, well,background images.------------Installation------------This plugin requires `django CMS` 3.0.12 or higher to be properly installed.* Within your ``virtualenv`` run ``pip install aldryn-background-image``* Add ``'aldryn_background_image'`` to your ``INSTALLED_APPS`` setting.* Run ``manage.py migrate aldryn_background_image``.-----Usage-----TBD------------Translations------------If you want to help translate the plugin please do it on Transifex:https://www.transifex.com/projects/p/django-cms/resource/aldryn-background-image/
Package: aldryn-blog
Simple blogging application. It allows you to:write a tagable post messageplug in latest post messages (optionally filtered by tags)attach post message archive viewInstallationAldryn Platform UsersChoose a site you want to install the add-on to from the dashboard. Then go toApps->Install appand clickInstallnext toBlogapp.Redeploy the site.Manual InstallationNOTE: If you are using a database other than PostgresSQL, check out the table below.Database support:SQLite3MySQLPostgresSQLNot supportedRequires Time zone supportFully supportedRunpip installaldryn-blog.Add below apps toINSTALLED_APPS:INSTALLED_APPS = [
    …

    'aldryn_blog',
    'aldryn_common',
    'django_select2',
    'djangocms_text_ckeditor',
    'easy_thumbnails',
    'filer',
    'hvad',
    'taggit',
    # for search
    'aldryn_search',
    'haystack',
    …
]PostingYou can add post messages in the admin interface now. Search for the labelAldryn_Blog.In order to display them, create a CMS page and install the app there (chooseBlogfrom theAdvanced Settings->Applicationdropdown).Now redeploy/restart the site again.The above CMS site has become a blog post archive view.About the Content of a PostIn Aldryn Blog, there are two content fields in each Post which may be confusing:Lead-In andBodyThe Lead-In is text/html only and is intended to be a brief “teaser” or introduction into the blog post. The lead-in is shown in the blog list-views and is presented as the first paragraph (or so) of the blog post itself.It is not intended to be the whole blog post.To add the body of the blog post, the CMS operator will:Navigate to the blog post view (notthe list view);Click the “Live” button in the CMS toolbar to go into edit-mode;Click the “Structure” button to enter the structure sub-mode;Here the operator will see the placeholder “ALDRYN_BLOG_POST_CONTENT”, use the menu on the far right of the placeholder to add whatever CMS plugin the operator wishes –– this will often be the Text plugin;Double-click the new Text plugin (or whatever was selected) to add the desired content;Save changes on the plugin’s UI;Press the “Publish” button in the CMS Toolbar.Available CMS Plug-insLatest Blog Entriesplugin lets you listnmost frequent blog entries filtered by tags.Blog Authorsplugin lists blog authors and the number of posts they have authored.Tagsplugin lists the tags applied to all posts and allows filtering by these tags.SearchIf you want the blog posts to be searchable, be sure to installaldryn-searchand its dependencies.
Your posts will be searchable usingdjango-haystack.You can turn it this behavior off by settingALDRYN_BLOG_SEARCH = Falsein your django settings.Additional SettingsALDRYN_BLOG_SHOW_ALL_LANGUAGES: By default, only the blog posts in the current language will be displayed. By setting the value of this option toTrue, you can change the behaviour to display all posts from all languages instead.ALDRYN_BLOG_USE_RAW_ID_FIELDS: Enable raw ID fields in admin (default = False)
Package: aldryn-bootstrap3
Aldryn Bootstrap 3is a plugin bundle for django CMS providing several
components from the popularBootstrap 3framework.This addon is compatible withDivio Cloudand is also available on thedjango CMS Marketplacefor easy installation.ContributingThis is a an open-source project. We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review ourcontribution guidelines.One of the easiest contributions you can make is helping to translate this addon onTransifex.DocumentationSeeREQUIREMENTSin thesetup.pyfile for additional dependencies:Python 2.7, 3.3 or higherDjango 1.6 or higherDjango Filer 1.2.4 or higherDjango Text CKEditor 3.1.0 or higherMake suredjango Fileranddjango CMS Text CKEditorare installed and configured appropriately.InstallationFor a manual install:runpip installaldryn-bootstrap3addaldryn_bootstrap3to yourINSTALLED_APPSrunpython manage.py migrate aldryn_bootstrap3ConfigurationAldryn Bootstrap 3replacesthe following django CMS plugins:django CMS Link:Link and Buttondjango CMS Picture:Imagedjango CMS File:FileIt provides the followingstandardBootstrap 3 components:AccordionAlertBlockquoteCarouselCodeGrid (Row and Column)GlyphiconsJumbotronLabelList GroupPanel (Heading, Body and Footer)ResponsiveTabsWellIt also provides the following3rd partycomponents:Font AwesomeSpacerThese components need to be manually configured in order to work properly
inside your project. Seethis gistfor additional information on a recommended spacer configuration.SettingsThis addon provides astandardtemplate for Carousels. You can provide
additional style choices by adding aALDRYN_BOOTSTRAP3_CAROUSEL_STYLESsetting:ALDRYN_BOOTSTRAP3_CAROUSEL_STYLES = [
    ('feature', _('Featured Version')),
]You’ll need to create thefeaturefolder insidetemplates/aldryn_bootstrap/plugins/carousel/otherwise you will get atemplate does not existerror. You can do this by
copying thestandardfolder inside that directory and renaming it tofeature.In addition you can set or extend your own icon fonts usingALDRYN_BOOTSTRAP3_ICONSETS:ALDRYN_BOOTSTRAP3_ICONSETS = [
    ('glyphicons', 'glyphicons', 'Glyphicons'),
    ('fontawesome', 'fa', 'Font Awesome'),
    # custom iconsets have to be JSON
    ('{"iconClass": "icon", "iconClassFix": "icon-", "icons": [...]}', 'icon', 'Custom Font Icons'),
    ('{"svg": true, "spritePath": "sprites/icons.svg", "iconClass": "icon", "iconClassFix": "icon-", "icons": [...]}', 'icon', 'Custom SVG Icons'),
]The default grid size is set to24when validating the column input,
you can override this by setting:ALDRYN_BOOTSTRAP3_GRID_SIZE = 12Running TestsYou can run tests by executing:virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test
Package: aldryn-client
Installingpip installaldryn-clientUsing the clientfor more information seehttp://docs.aldryn.com/en/latest/tutorial/commandline/installation.htmlReleasing the binaryAll of the binaries have to be built on the operating systems they’re being built for.OS XNative:./scripts/build-unixLinuxNative:./scripts/build-unixWith Docker:docker-composebuilddocker-composerun--rmbuilderWindowsConnect to a Windows VM (the only requirement is Python 2.7) and open a PowerShell.\scripts\build-windows.ps1
Package: aldryn-disqus
IntegrateDisqusinto yourdjango CMSandAldryn projects,
and allow users to comment on and discuss content on your site.Disqus is one of the most popular commenting systems available. It’s especially
suited to news and weblog content, but can be applied anywhere that you’d like
to provide discussion functionality.With the Aldryn Disqus Addon you can integrate it into your projects and start
building an online community in just a few simple steps.See it in action on the django CMS weblog.InstallationAldryn InstallationChoose a site you want to install the add-on to from the dashboard. Then go toApps->Install appand clickInstallnext toAldryn Disqusapp.Ensure you correctly set theDISQUS_SHORTNAMEsetting in the control panel
to the identifier you configured for your project at Disqus.Redeploy the site.Manual InstallationAdd ‘aldryn_disqus’ to your project’s settings and runpython manage.py migrate.AddDISQUS_SHORTNAME = 'projectname'to your settings. Whereprojectnameis the identifier you configured for your project at Disqus.UsageAfter configuring your Disqus account athttps://disqus.com/, simply add theAldryn Disqusplugin on the desired page(s) in your project.
Package: aldryn-events
Aldryn Events is an Aldryn-compatible application for publishing information
about events in django CMS.Please see the officialAldryn Events documentation,
which includes information on installation and getting started.It also containsdocumentation for content editors and end-users.ContributingAldryn Events is a an open-source project. We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your pull
request, please review ourguidelines for Aldryn addons.RequirementsPython 2.7, 3.4, 3.5django CMS 3.4 or laterDjango 1.8 - 1.11
Package: aldryn-faq
Aldryn FAQ is anAldryn-compatible simple Frequently
Asked Questions (FAQ) application fordjango CMS.It allows you to present categorized lists of frequently asked questions and
their answers.Content editorslooking for documentation on how to use the editing
interface should refer to ouruser manualsection.Django developerswho want to learn more about django CMS, as well as
how to install, configure and customize it for their own projects should
refer to thedocumentationsections.Installation & UpdatesPlease head over to ourdocumentationfor all the details on how to install,
configure and use Aldryn FAQ.You can also find instructions onhow to upgradefrom earlier versions.ContributingThis is a community project. We love to get any feedback in the form ofissuesandpull requests. Before submitting your pull request, please
review our guidelines forAldryn addons.
Package: aldryn-forms
Aldryn Forms allows you to build flexible HTML forms for yourAldrynanddjango CMSprojects, and to integrate them directly in your pages.Forms can be assembled using the form builder, with the familiar simple drag-and-drop interface of the django CMS
plugin system.Submitted data is stored in the Django database, and can be explored and exported using the admin, while forms can
be configured to send a confirmation message to users.ContributingThis is a an open-source project. We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review ourcontribution guidelines.We’re grateful to all contributors who have helped create and maintain this package.
Contributors are listed at thecontributorssection.InstallationAldryn Platform UsersChoose a site you want to install the add-on to from the dashboard. Then go toApps->Install appand clickInstallnext toFormsapp.Redeploy the site.Upgrading from < 2.0Version 2.0 introduced a new model for form data storage calledFormSubmission.
The oldFormDatamodel has been deprecated.
Although theFormDatamodel’s data is still accessible through the admin, all new form data will be stored in the newFormSubmissionmodel.Manuall InstallationRunpip installaldryn-forms.UpdateINSTALLED_APPSwithINSTALLED_APPS = [
    ...
    'absolute',
    'aldryn_forms',
    'aldryn_forms.contrib.email_notifications',
    'emailit',
    'filer',
    ...
]Configurealdryn-boilerplates(https://pypi.python.org/pypi/aldryn-boilerplates/).To use the old templates, setALDRYN_BOILERPLATE_NAME='legacy'.
To usehttps://github.com/aldryn/aldryn-boilerplate-standard(recommended, will be renamed toaldryn-boilerplate-bootstrap3) setALDRYN_BOILERPLATE_NAME='bootstrap3'.Also ensure you define ane-mail backendfor your app.Creating a FormYou can create forms in the admin interface now. Search for the labelAldryn_Forms.Create a CMS page and install theFormsapp there (chooseFormsfrom theAdvanced Settings->Applicationdropdown).Now redeploy/restart the site again.The above CMS site has become a forms POST landing page - a place where submission errors get displayed if there are any.Available Plug-insFormplugin lets you embed certain forms on a CMS page.Fieldsetgroups fields.Text Fieldrenders text input.Text Area Fieldrenders text input.Yes/No Fieldrenders checkbox.Select Fieldrenders single select input.Multiple Select Fieldrenders multiple checkboxes.File fieldrenders a file upload input.Image fieldsame asfile fieldbut validates that the uploaded file is an image.
Package: aldryn-forms-recaptcha-plugin
Aldryn Forms Recaptcha PluginThis python module is open-source, available here:https://gitlab.com/what-digital/aldryn-forms-recaptcha-plugin/Setuppip install aldryn-forms-recaptcha-pluginAdd the following to yoursettings.py:INSTALLED_APPS = [
    'aldryn_forms_recaptcha_plugin',
    'snowpenguin.django.recaptcha3',  # must be below the plugin
]
RECAPTCHA_PUBLIC_KEY = env('RECAPTCHA_PUBLIC_KEY', '123')
RECAPTCHA_PRIVATE_KEY = env('RECAPTCHA_PRIVATE_KEY', '123')
# set this to 0 (or 1) to deactivate (or always activate) the captcha protection
RECAPTCHA_SCORE_THRESHOLD = 0.85If you're using bootstrap4, beware that django renders the form errors with classinvalid-feedback, which is invisible in bs4.Versioning and Packagesversioning is done in versioning inaldryn_forms_recaptcha_plugin/__init__.pyfor each version a tag is added to the gitlab repository in the form of^(\d+\.)?(\d+\.)?(\*|\d+)$, example: 0.0.10There is a PyPI version which relies on the gitlab tags (the download_url relies on correct gitlab tags being set):https://pypi.org/project/aldryn-forms-recaptcha-plugin/There is a DjangoCMS / Divio Marketplace add-on which also relies on the gitlab tags:https://marketplace.django-cms.org/en/addons/browse/aldryn-forms-recaptcha-plugin/In order to release a new version of the Divio add-on:Increment version number inaddons-dev/aldryn-forms-recaptcha-plugin/aldryn_forms_recaptcha_plugin/__init__.pydivio addon validatedivio addon uploadThen git add, commit and tag with the version number and push to the repogit add .
git commit -m "<message>"
git tag 0.0.XX
git push origin 0.0.19Then, in order to release a new pypi version:python3 setup.py sdist bdist_wheeltwine upload --repository-urlhttps://test.pypi.org/legacy/dist/*twine upload dist/*DevelopmentRunpip install -e ../aldryn-forms-recaptcha-plugin/in your demo projectYou can open aldryn_forms_recaptcha_plugin in pycharm and set the python interpreter of the demo project to get proper django support and code completion.Dependenciesaldryn_forms
Package: aldryn-gallery
Aldryn Gallery is build on the principle of plugin-in-plugin provided by django-cms
since version 3.0.Installationpip install aldryn-galleryAddaldryn_gallerytoINSTALLED_APPS.Configurealdryn-boilerplates(https://pypi.python.org/pypi/aldryn-boilerplates/).To use the old templates, setALDRYN_BOILERPLATE_NAME='legacy'.
To usehttps://github.com/aldryn/aldryn-boilerplate-standard(recommended, will be renamed toaldryn-boilerplate-bootstrap3) setALDRYN_BOILERPLATE_NAME='bootstrap3'.When using thelegacyboilerplate,jQueryandclassjscl.gallery are required.
Package: aldryn-installer
Command to easily bootstrap django CMS projectsFree software: BSD licenseFeaturesaldryn-installeris a console wizard to help bootstrapping a django CMS
project.Refer todjango CMS Tutorialon
how to properly setup your first django CMS project.InstallationCreate an empty virtualenv:virtualenv /virtualenv/path/my_projectInstallaldryn-installer:pip install aldryn-installeror:pip install -e git+https://github.com/nephila/aldryn-installer#egg=aldryn-installerDocumentationSeehttp://aldryn-installer.readthedocs.orgCaveatsWhile this wizard try to handle most of the things for you, it doesn’t check for
all the proper native (non python) libraries to be installed.
Before running this, please check you have the proper header and libraries
installed and available for packages to be installed.Libraries you would want to check:libjpeg (for JPEG support inPillow)zlib (for PNG support inPillow)postgresql (forpsycopg)libmysqlclient (forMysql-Python)History0.1.0 (2013-10-19)First public release.0.1.1 (2013-10-20)Improved documentation on how to fix installation in case of missing libraries.
Package: aldryn-jobs
Aldryn Jobs is an Aldryn-compatible django CMS application for publishing
job openings and receiving applications.Please see theAldryn Jobs documentation,
which includes information on installation and getting started.It also containsdocumentation for content editors and end-users.ContributingAldryn Jobs is a an open-source project. We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your pull
request, please review ourguidelines for Aldryn Addons.Requirementsdjango CMS 3.4+Django 1.8 - 1.11
Package: aldryn-locations
Aldryn Locations is the easiest way to integrate Google Maps intoAldrynanddjango CMSsites via Google’s API.It’s fully featured, and includes several plugins to provide support for:multiple locationslocation informationroutes and directionssearchingAldryn Platform UsersChoose a site you want to install the add-on to from the dashboard. Then go toApps->Install appand clickInstallnext toLocationsapp.Redeploy the site.Manual Installationpip install aldryn-locationsAddaldryn_locationstoINSTALLED_APPSand runmanage.py migrate aldryn_locations.AddALDRYN_LOCATIONS_GOOGLEMAPS_APIKEYto yoursettings.pyusing the provided key from googleConfigurealdryn-boilerplates(https://pypi.python.org/pypi/aldryn-boilerplates/).To use the old templates, setALDRYN_BOILERPLATE_NAME='legacy'.
To usehttps://github.com/aldryn/aldryn-boilerplate-standard(recommended, will be renamed toaldryn-boilerplate-bootstrap3) setALDRYN_BOILERPLATE_NAME='bootstrap3'.PluginsAldryn Locations offers five different plugins to use. First one is theMapwhich works with the Google Maps JavaScript API. The other four,Place,Directions,SearchandView, are based on [Google’s embed maps](https://developers.google.com/maps/documentation/embed/guide).PlacePlacemode displays a map pin at a particular place or address, such as a landmark, business, geographic feature, or town.DirectionsDirectionsmode displays the path between two or more specified points on the map, as well as the distance and travel time.SearchSearchmode displays results for a search across the visible map region. It’s recommended that a location for the search be defined, either by including a location in the search term (record stores in Seattle) or by including a center and zoom parameter to bound the search.ViewViewmode returns a map with no markers or directions baed on the search term.