Saravanan666/pypi-org huggingface dataset:
Package: django-oci
django-ociOpen Containers distribution API for Django.This repository serves a Django app that can be used to provide an opencontainers
distribution (OCI) endpoint to push and pull containers. Anexampleapplication is provided inteststhat can be interacted with here.QuickstartInstall django-oci::pipinstalldjango-ociAdd it to yourINSTALLED_APPSalong withrest_frameworkINSTALLED_APPS=(...'django_oci','rest_framework',...)Add django-oci's URL patterns:fromdjango_ociimporturlsasdjango_oci_urlsurlpatterns=[...url(r'^',include(django_oci.urls)),...]See thedocumentationorgetting started guidefor more details about setup, and testing. Anexample applicationis provided
and described in the getting started guide as well. The latestconformance testingis provided as well.Many Thankscookiecutter-djangopackage
Package: django-octicons
django-octiconsTemplate tags for Django to useGitHub Octicons.InstallationGrab it from PyPI using pipenv (or pip):$pipenvinstalldjango-octiconsInstall the app in your project:# settings.pyINSTALLED_APPS=[# other apps'octicons',]UsageLoad the tag library in your HTML template:{% load octicons %}And then, you can use the icons like this:<aclass="btn btn-sm"href="#url"role="button">{% octicon "eye" %}
  Watch</a>You can also pass any required attributes:<aclass="btn btn-sm"href="#url"role="button">{% octicon "thumbsup" height="60" class="large" %}
  Confirm Purchase</a>All attributes passed will be added as HTML attributes to the SVG element
of the icon.StylingYou should add the following in your styles:.octicon{display:inline-block;vertical-align:text-top;fill:currentColor;}The classocticonwill be present in all icons. You are free to style it however you want.
Package: django-octicons-v10
django-octicons-v10Django templatetags forGitHub Octiconsv10.0.0+.Current versionv4.1.0supportsOcticons v16.1.0.This library aims to provide a similar interface to the official JavaScript and Ruby octicon libraries provided by GitHub, but as Django templatetags.django-octiconsis a library that already does this, but currently for an older version of octicons.InstallationInstall the latest version:pip3 install django-octicons-v10Placeocticons_v10into your installed apps:INSTALLED_APPS=[# blah, blah, other apps..."octicons_v10",]UsageLoad theocticonstag library in your Django template:{% load octicons %}Use template tags where you want to place an Octicon:{% octicon "git-branch" %}ClassesYou can pass classes to your shiny new octicon:<aclass="btn">{% octicon "git-branch" class="text-purple" %}
    Branches</a>Note: The following classes are assigned to the octicon by default:octiconocticon-{ICON_NAME}, for exampleocticon-git-branchSizingYou can passwidthorheightor both for your desired size:<ahref="#"class="Header-link">{% octicon "mark-github" width="32" %}
    GitHub</a>If onlywidthorheightis passed, then the other scales accordingly.Note: The default size is 16px by 16px.16px and 24px variantsThe icon variant chosen is dependent on the size specified. If either your width or height is more than 16, then the 24px variant will be chosen.What if I want to specify a variant regardless of size?If say, you wanted a 32 width icon, but wanted to use the 16px variant, you can do so by specifying the whole variant name, in the form{ICON_NAME}-{ICON_SIZE}:{% octicon "alert-16" width="32" %}KeywordsOcticons provides a list of keywords for each icon. You can get anOcticoninstance's keywords by accessing itskeywordsattribute:>>>octicon=Octicon("octoface")>>>octicon.keywords['octocat','brand']When using the GitHub logos, be sure to follow theGitHub logo guidelines.IssuesPlease use theGitHub issue trackerto track issues.ContributingContributions are welcome. Please send a pull request through and explain the reasoning behind the change.BuildingTo automatically pull the latest versions of octicons, run:python3scripts/build/build.pybuildocticons_v10/templatetagsIn the root folder of the repository.
Package: django-octocat
A Django app for handling github users and repos.InstallationTo get the latest stable release from PyPipipinstalldjango-octocatTo get the latest commit from GitHubpipinstall-egit+git://github.com/Celc/django-octocat.git#egg=githubAddgithubto yourINSTALLED_APPSINSTALLED_APPS=(...,'github',)Add thegithubURLs to yoururls.pyurlpatterns=patterns('',...url(r'^github/',include('github.urls',namespace='github')),)Addgithub.middlewares.GithubAuthorizationMiddlewareto yourMIDDLEWARE_CLASSESMIDDLEWARE_CLASSES=(...'github.middlewares.GithubAuthorizationMiddleware',)Addgithub.backends.GithubBackendto yourAUTHENTICATION_BACKENDSAUTHENTICATION_BACKENDS=(...'github.backends.GithubBackend',)Don’t forget to migrate your database./manage.pymigrategithubIf you are planning on cloning the repos set the target directory insettings.pyimporttempfileGITHUB_ROOT=tempfile.gettempdir()Finally add the Github settings under/admin.UsageTo authenticate users send them to{% url 'github:authorize' pk=1 %}where
pk is the id of the Github app.Contributemkvirtualenvdjango-octocatmakedevelopAdd code, write test, send pull request.OctocatOctocat is a trademark owned by GitHub Inc and is used with permission. The
library is in no way affiliated, maintained or sponsored by GitHub Inc.
Package: django-odm2
Django-odm2 maps the ODM2 model to django ORMAbout ODM2ODM2 is an information model for spatially discrete, feature-based earth observations
that is integrative and extensible and aimed at data interoperability.For more informationsee.AttentionThis app is designed only for storage of data modeled by the ODM2 specification.
The code is based onODM2DataSharingPortaland does not provide any views or admin integration. It is up to you to create your
own implementations.Quickstartdjango-odm2 is available on PyPI and can be installed withpip.$pipinstalldjango-odm2After installing django-odm2 add it to your INSTALLED_APPS list:INSTALLED_APPS=[...'django_odm2']Then run migrate command to create the database tables:$pythonmanage.pymigrateTheAPI Referenceprovides API-level documentation.Change LogVersion History0.0.2Fixed typo in initial migration0.0.1Project created.
Package: django-odnoklassniki-api
Django Odnoklassniki API========================[![PyPI version](https://badge.fury.io/py/django-odnoklassniki-api.png)](http://badge.fury.io/py/django-odnoklassniki-api) [![Build Status](https://travis-ci.org/ramusus/django-odnoklassniki-api.png?branch=master)](https://travis-ci.org/ramusus/django-odnoklassniki-api) [![Coverage Status](https://coveralls.io/repos/ramusus/django-odnoklassniki-api/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-odnoklassniki-api) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ramusus/django-odnoklassniki-api/trend.png)](https://bitdeli.com/free "Bitdeli Badge")Приложение позволяет взаимодействовать с объектами Одноклассники API используя стандартные модели DjangoУстановка---------pip install django-odnoklassniki-apiВ `settings.py` необходимо добавить:INSTALLED_APPS = (...'oauth_tokens','taggit','odnoklassniki_api',)# oauth-tokens settingsOAUTH_TOKENS_HISTORY = True                                             # to keep in DB expired access tokensOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_PUBLIC = ''                           # application public keyOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_SECRET = ''                           # application secret keyOAUTH_TOKENS_ODNOKLASSNIKI_SCOPE = ['']                                 # application scopesOAUTH_TOKENS_ODNOKLASSNIKI_USERNAME = ''                                # user loginOAUTH_TOKENS_ODNOKLASSNIKI_PASSWORD = ''                                # user passwordПокрытие методов API--------------------* [resolveScreenName](http://vk.com/dev/resolveScreenName) – определяет тип объекта (пользователь, группа, приложение) и его идентификатор по короткому имени screen_name;Примеры использования---------------------### Запрос API>>> from odnoklassniki_api.api import api_call>>> api_call('url.getInfo', url='http://www.odnoklassniki.ru/apiok'){u'objectId': 53038939046008L, u'type': u'GROUP'}
Package: django-odnoklassniki-groups
Django Odnoklassniki Groups===========================[![PyPI version](https://badge.fury.io/py/django-odnoklassniki-groups.png)](http://badge.fury.io/py/django-odnoklassniki-groups) [![Build Status](https://travis-ci.org/ramusus/django-odnoklassniki-groups.png?branch=master)](https://travis-ci.org/ramusus/django-odnoklassniki-groups) [![Coverage Status](https://coveralls.io/repos/ramusus/django-odnoklassniki-groups/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-odnoklassniki-groups)Приложение позволяет взаимодействовать с группами соц. сети Одноклассники, их статистикой и пользователями групп через OK API используя стандартные модели DjangoУстановка---------pip install django-odnoklassniki-groupsВ `settings.py` необходимо добавить:INSTALLED_APPS = (...'oauth_tokens','taggit','odnoklassniki_api','odnoklassniki_groups',)# oauth-tokens settingsOAUTH_TOKENS_HISTORY = True                                             # to keep in DB expired access tokensOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_ID = 12345678                         # application idOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_PUBLIC = ''                           # application public keyOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_SECRET = ''                           # application secret keyOAUTH_TOKENS_ODNOKLASSNIKI_SCOPE = ['']                                 # application scopesOAUTH_TOKENS_ODNOKLASSNIKI_USERNAME = ''                                # user loginOAUTH_TOKENS_ODNOKLASSNIKI_PASSWORD = ''                                # user passwordПокрытие методов API--------------------* [group.getInfo](http://apiok.ru/wiki/display/api/group.getInfo) – получение информации о группах;* [group.getMembers](http://apiok.ru/wiki/display/api/group.getMembers) – получение списка пользователей группы;Примеры использования---------------------### Получение группы>>> from odnoklassniki_groups.models import Group>>> Group.remote.fetch(ids=[47241470410797])[<Group: Кока-Кола>]
Package: django-odnoklassniki-users
Django Odnoklassniki Users==========================[![PyPI version](https://badge.fury.io/py/django-odnoklassniki-users.png)](http://badge.fury.io/py/django-odnoklassniki-users) [![Build Status](https://travis-ci.org/ramusus/django-odnoklassniki-users.png?branch=master)](https://travis-ci.org/ramusus/django-odnoklassniki-users) [![Coverage Status](https://coveralls.io/repos/ramusus/django-odnoklassniki-users/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-odnoklassniki-users)Приложение позволяет взаимодействовать с профилями пользователей Вконтакте через Вконтакте API используя стандартные модели DjangoУстановка---------pip install django-odnoklassniki-usersВ `settings.py` необходимо добавить:INSTALLED_APPS = (...'oauth_tokens','taggit','odnoklassniki_api','odnoklassniki_users',)# oauth-tokens settingsOAUTH_TOKENS_HISTORY = True                                             # to keep in DB expired access tokensOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_ID = 12345678                         # application idOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_PUBLIC = ''                           # application public keyOAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_SECRET = ''                           # application secret keyOAUTH_TOKENS_ODNOKLASSNIKI_SCOPE = ['']                                 # application scopesOAUTH_TOKENS_ODNOKLASSNIKI_USERNAME = ''                                # user loginOAUTH_TOKENS_ODNOKLASSNIKI_PASSWORD = ''                                # user passwordПокрытие методов API--------------------* [users.getInfo](http://apiok.ru/wiki/display/api/users.getInfo) – возвращает большой массив информации, связанной с пользователем, для каждого переданного идентификатора пользователя;Примеры использования---------------------### Получение пользователей по ID>>> from odnoklassniki_users.models import User>>> User.remote.fetch(ids=[561348705024,578592731938])[<User: Евгений Дуров>,<User: Михаил Коммуникатов>]
Package: django-odoo-auth
django-odoo-authCustom django auth backend for authorization via odooQuick startinstall modulepip install django-odoo-authAdd odoo_auth to your INSTALLED_APPS setting like this:INSTALLED_APPS=[# ...'odoo_auth',]Add backend to your AUTHENTICATION_BACKENDS setting like this:AUTHENTICATION_BACKENDS=(# ...'odoo_auth.backends.OdooBackend',)Edit the information to connect to your server Odoo insettings.py:ODOO_SERVER_URL='https://exmaple.com'ODOO_SERVER_PORT=443# this optionalODOO_SERVER_DBNAME='database'Runpython manage.py migrateto create the odoo_auth models.For call odoo_auth, use standard authenticate:fromdjango.contrib.authimportauthenticateuser=authenticate(username='username',password='password')
Package: django-odoo-orm
Django Odoo ORMDjango Odoo ORM is a Django app to provide a fully setupORM to Odooin any
Django project. This project adds nothing but an app that sets the connection up at startup.Quick startAdd "django_odoo_orm" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[# ...'django_odoo_orm',]Add "django_odoo_orm.context_processors.odoo_connection" to your TEMPLATES setting like this:TEMPLATES=[{# ...'OPTIONS':{'context_processors':[# ...'django_odoo_orm.context_processors.odoo_connection',],},},]
Package: django-oembedplugin
============django-oembedplguin============A django-cms plugin that allows you to embed content from over 160 sites using the embed.ly api.Dependencies------------* django-cms >= 2.1* python-oembedGetting Started---------------To get started using ``django-oembedplugin`` simply install it with``pip``::$ pip install django-oembedpluginAdd ``"oembedplugin"`` to your project's ``INSTALLED_APPS`` setting and run ``syncdb``(or ``migrate`` if you're using South).To periodically update the supported sites, oembedplugin provides a management command:$ python manage.py update_oembedservicesbe sure to run this once in a while.
Package: django-oembed-works
django-oembed-worksAuthor:George NotarasDevelopment Web Site:django-oembed-works projectSource Code Repository:django-oembed-works source codeDocumentation:django-oembed-works documentationDownloads:django-oembed-works releasesdjango-oembed-works is a Django app that provides support for the oEmbed format.Licensed under theApache License version 2.0. More licensing information
exists in thelicensesection.Warning: This software is not production ready. Testing is required.FeaturesProvides a template tag which parses a block of text and replaces links
with embedded objects.DocumentationApart from thedjango-oembed-works Online Documentation, more information about the
installation, configuration and usage of this application may be available
at the project’swiki.DonationsThis software is released as free-software and provided to you at no cost. However,
a significant amount of time and effort has gone into developing this software
and writing this documentation. So, the production of this software has not
been free from cost. It is highly recommended that, if you use this softwarein production, you should consider making a donation.To make a donation, please visit the CodeTRAXdonations pagewhich contains
aPayPaldonatebutton.Thank you for considering making a donation to django-oembed-works.Bugs and feature requestsIn case you run into any problems while using this application or think that
a new feature should be implemented, it is highly recommended yousubmita new
report about it at the project’sissue tracker.Using theissue trackeris the recommended way to notify the authors about
bugs or make feature requests. Also, before submitting a new report, please
make sure you have read thenew issue guidelines.SupportCodeTRAX does not provide support for django-oembed-works.You can still get community support at theCommunity Support Forums:LicenseCopyright 2010 George Notaras <gnot [at] g-loaded.eu>Licensed under theApache License, Version 2.0(the “License”);
you may not use this file except in compliance with the 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.A copy of the License exists in the product distribution; theLICENSEfile.
For copyright and other important notes regarding this release please read
theNOTICEfile.
Package: django-offline
=====Offline=====Offline is a simple Django app to put a Django Web application undermaintenance/offline mode using a simple interface under admin role.Installation------------django-offline works with python >= 2.5 and django >= 1.2Recommended way to install is by using pip as below:pip install django-offlineQuick start-----------1. Add "offline" to your INSTALLED_APPS setting like this:INSTALLED_APPS = (...'offline',)2. Add the OfflineMiddleware to MIDDLEWARE_CLASSES list(after SessionMiddleware and AuthenticationMiddleware) in settings.pyfile of your project:MIDDLEWARE_CLASSES = (...'offline.middleware.OfflineMiddleware',)3. Run `python manage.py syncdb` to create the polls models.4. Visit the admin site to set your Web application to offline mode bysetting offline flag (you'll need the Admin app enabled).5. You can customize the message shown on the website.
Package: django-offlinecdn
offline-cdn================A nice way to allow for online-offline development, but also use cdn's for package dependencies.`Read the documentation <http://django-offlinecdn.readthedocs.org/en/latest/>`__.|Build Status| |Version| |Downloads| |Test Coverage| |Documentation Status|.. |Build Status| image:: https://travis-ci.org/gabegaster/django-offlinecdn.svg?branch=master:target: https://travis-ci.org/gabegaster/django-offlinecdn.. |Version| image:: https://pypip.in/v/django-offlinecdn/badge.png:target: https://warehouse.python.org/project/django-offlinecdn/.. |Downloads| image:: https://pypip.in/d/django-offlinecdn/badge.png:target: https://warehouse.python.org/project/django-offlinecdn/.. |Test Coverage| image:: https://coveralls.io/repos/gabegaster/django-offlinecdn/badge.png:target: https://coveralls.io/r/gabegaster/django-offlinecdn.. |Documentation Status| image:: https://readthedocs.org/projects/django-offlinecdn/badge/?version=latest:target: https://readthedocs.org/projects/django-offlinecdn/?badge=latest
Package: django-ogcapif
django-ogcapifWARNINGThis is in under development. API will break. Do not use in production.django-ogcapifallows to easily expose your Django models through an OGCAPI-Features endpoint. It is based on Django REST Framework.Quickstart# copy default confcp.env.example.env# start the stackdockercomposeup--build-d# deploy static files and migrate databasedockercomposeexecdjangopythonmanage.pycollectstatic--no-input
dockercomposeexecdjangopythonmanage.pymigrate--no-input# A convenience start-up Django command is there to populate the database with testdata for each app:dockercomposeexecdjangopythonmanage.pypopulate_vl
dockercomposeexecdjangopythonmanage.pypopulate_signs_poles
dockercomposeexecdjangopythonmanage.pypopulate_edge_cases# Wait a little, then check that https://localhost/oapif/collections/signalo_core.pole/items works from your browserTestsTo run all tests, launch the Compose application as shown in theQuickstart. Then rundocker compose exec django python manage.py testAuthentication & permissionsBy default the viewsets undersignalo/coreuse theDjangoModelPermissionsOrAnonReadOnlypermissions class. You can add model permissions when registering their corresponding viewsets, aspermission_classes. (Refer tohttps://www.django-rest-framework.org/api-guide/permissions/#api-referencefor permission classes). Example:# models.py# ----------fromrest_frameworkimportpermissionsfromdjango.contrib.gis.dbimportmodelsfromdjango_oapif.decoratorsimportregister_oapif_viewset@register_oapif_viewset(custom_viewset_attrs={"permission_classes":(permissions.DjangoModelPermissionsOrAnonReadOnly,)})classMyModel(models.Model):...Use from QGISOnce up and running, you can use it from QGIS like this:Go toLayers>Add layer>Add WFS Layer...Create a new connectionURL:https://localhost/oapif/Version:OGC API - FeaturesClick OK and ignore choose to ignore the invalid certificate error and store the exceptionYou should see the two layers in the list, select them and chooseadd.Run testsYou can run the OGC API conformance test suite like this:docker compose run conformance_testResults will be stored to `_test_outputs\testng...\emailable-report.html
Package: django-ogmios
Just sends emails. Simple, easy, multiformat.For those wondering,Ogmiosis just the Gallic god of eloquence.QuickstartInstall from PyPI withpip:pip installdjango-ogmios.yourproject/templates/mail/template.html:from: admin@example.org
to: Jane Doe <jane.doe@example.net>, {% for u in users %}{{ user.email }}, {% endfor %}
cc: John Doe <john.doe@example.org>, {{ copy_user.get_full_name }} <{{ copy_user.email }}>
bcc: anonymous@example.org, secret@example.com
subject: The whole email is a template
content-type: markdown
headers:
  Reply-To: Jaqueline <jaqueline@example.net>
  Organization: Example.org, Inc.
---
{% load special_filter %}

This is a list of special items:

{% for item in item_list %}
   * {{ item|special }}
{% endfor %}importogmiosogmios.send_email('mail/template.html',{'item_list':['Hello']},attachments=[{'path':'/path/to/file/','name':'file.txt','type':'text/plain',}])This will render the content as markdown, and send the email with an HTML part and a Plaintext part.
For attachments, it is possible to just specify the path, or the path, filename and mimetype.TipsResend an email with different context:importfunctoolsimportogmiosfrommyapp.modelsimportUsersend_registration=functools.partial(ogmios.send,'mail/template.html')send_registration({'user':User.objects.get(pk=1337)})Changelog0.11.2 (2020-07-02)Make bcc work0.11.1 (2018-10-12)Fix email parsing [#15]0.11.0 (2018-09-04)Add support for Django > 1.11 and remove support for all prior versions.0.10.0 (2016-04-13)Add support for Django 1.9Drop support for Django 1.7Move method of adding attachments out of the template
and require attachments to be passed as an argument tosend_email().0.9.3 (2015-08-27)Add Django 1.7 compatibility.0.9.2 (2015-07-16)Fixsetup.pydependencies.Fix tests.Fix compatibility with django’s cached loader.Fix context processing.0.9.1 (2015-06-22)Fix ‘From’ field always being default0.9.0 (2015-06-18)Initial version