Saravanan666/pypi-org huggingface dataset:
Package: django-smileys-plus
django-smileysis an application that allows your Django-powered site to
display those annoying and useless smileys whenever thesmileysfilter a
pattern that you specify.  This application serves a very simple purpose, but
its uses can go beyond that of merely inserting smileys whenever a particular
pattern (like “:)” or “;)”).  It can replace whatever pattern you want with an
image of your choosing.  There’s gotta be something useful in that, right?This application can make your blog, forums, photo galleries, user comments,
etc a little more interesting, and it’s very simple to install.  Free icon sets
plague the Internet, and you can choose whatever icons you’d like to use!FeaturesStrict pattern matching: you can specify very strict patterns for your
smileysRegular expression pattern matching: if you need a little more power in your
pattern matching capabilities, you can specify that your patterns are regular
expressions (on a per-smiley basis) and the filter should know what to do.RequirementsThis application was built on Django 1.0.2, and it should work with any version
of Django that uses theadmin.site.registermethod for telling the Django
admin that a model should appear in the admin (as opposed to theclass Admin:method).InstallationDownloaddjango-smileysusingoneof the following methods:easy_install or pipYou can download the package from theCheeseShopor use one of the following
commands:easy_install django-smileys
pip install -U django-smileysto download and installdjango-smileys.Clone From Version ControlYou can grab the latest copy of the source code by cloning the project from one
of these official repositories:hg clone http://bitbucket.org/codekoala/django-smileys
git clone http://github.com/codekoala/django-smileys.git
hg clone http://django-smileys.googlecode.com/hg django-smileysPackage DownloadDownload the latest.tar.gzfile from the downloads section and extract it
somewhere you’ll remember.ConfigurationFirst of all, you must add this project to your list ofINSTALLED_APPSinsettings.py:INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ...
    'smileys',
    ...
)You can also define a path to upload smileys, instead of the default one.SMILEYS_PATH = ‘your_path’ # defaults to ‘smiley’ is not setRunmanage.py syncdb.  This creates a the table in your database that is
necessary for operation.UsageOpen the template file that you want to have your smileys appear in and make
sure it has something like this in it:{% load smiley_tags %}

{% block content %}
{{ some_content_var|smileys }}
{% endblock %}Thesmiley_tagslibrary provides you with asmileysfilter, which will
examine your database for all active smileys.  It then runs thoughsome_content_var(in this example) and replaces the patterns it finds with
the respective smileys.  More recent versions also contain atextile_smileystag for users of Textile formatting.  Pretty simple huh!And useless! w00t.
Package: django-smithy
Craft HTTP requests in the Django Admin. Django Smithy is an HTTP Request templating system that allows developers to build systems to send abstract messages without additional development.DocumentationThe full documentation is athttps://django-smithy.readthedocs.io.QuickstartInstall Django Smithy:pip install django-smithyThen, create a request template to send:FeaturesDesign requests in the Django Admin panelSend requests with whatever context you’d likeUse Django’s templating system everywhereDefine variables to be added to the contextRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2019-03-16)First release on PyPI. No tests are present, use at your own risk!0.2.0 (2019-03-07)Add support for x-www-form-urlencoded contentImproved JS for admin formAuto-add content-type headerAdded better HTTP request/response records.
Package: django-smmapdfs
smmapdfs is used for generating pdf files from django models by overlaying the text of fields onto a background pdf file. It differs from other django pdf apps such asdjango-easy-pdfanddjango-pdfkitin that it is intended to be used by graphics designers wishing to overlay some text onto a pre-prepaired pdf background.smmapdfs can further be used to send out emails with the pdfs. It was initially intended to send out diplomas at the end of a cycling competition.Video tutorial:Instalation:Sudo make me a pfd sandwich is published on Pypy asdjango-smmapdfs.pip3 install django-smmapdfsIntegration:See the example app for an example of how to integrate smmapdfs into your django application.Configuration:In smmapdfs admin:For each competition add a new pdfsandwich type, uploading a PDF and setting its size. There can only be one pdfsandwich type per competitionFor each pdfsandwich type and langauge add a pdfsandwich emailIn your application’s admin:For each pdfsandwich type add the fields you want displayed on the pdfsandwich, setting their coordinates left→right, bottom↑ᵘᵖ in millimetersGenerating pdfsandwichs:In your application’s adminSelect the objects you wish to to generate pdfsandwichs forSelect the Make PdfSandwich actionSending pdfsandwichs:In your applications admin select the pdfsandwichs you want to send and use the send actionNotes about email formatting:The emails are sent as HTML messages. Text messages are created by stripping out the HTML tags. This means that links should be written in their full form.SPAMPlease remember, both the United states and the EU have criminal penalties for sending unsolicited SPAM email messages. This app is not designed or intended for such a purpose. Please do not use it to send SPAM. (This note has no legal implications for licensing purposes. The software is licensed under the GNU LGPLv3.0)
Package: django-smoke-admin
django-smoke-admin tests that all admin pages for all registered models responds correctly (HTTP 200).It uses django-dynamic-fixture for creating fixtures for models.InstallationFirst, install django-smoke-admin using pip:pip install django-smoke-adminNext, add it to apps in your settings file:INSTALLED_APPS = (
    ...
    'django-smoke-admin',
)UsageAfter installation, you can run tests as usual and admin tests will be added to your test set.
Package: django-smoked
[![Build Status](https://travis-ci.org/djentlemen/django-smoked.svg)](https://travis-ci.org/djentlemen/django-smoked)[![Coverage Status](https://coveralls.io/repos/djentlemen/django-smoked/badge.svg?branch=master)](https://coveralls.io/r/djentlemen/django-smoked?branch=master)# django-smokedSmoke tests framework for Django Web Framework## Motivation> Code without tests is broken by design. - Jacob Kaplan-Moss, Django core developerEvery successful deployment of an application must be followed by series of tests to ensure that website is up and works.Compared to unit/integration/functional/performance/etc tests which runs in an isolated environment, smoke tests are designed to check safely the production environment. These tests only check the fundemantal functionality, ex. email sending is working, app is able to connect to the database, background queue accepts task, etc.## IdeaCreate framework for **reusable** smoke tests which could be easily shared among projects.Each test is defined by a name and an action to be taken:```pythonclass DatabaseTest(SmokeTest):name = 'Database test'description = 'Check all database connection are valid'def test(self):...```Smoke tests are registered manually in custom module:```python# settings.pySMOKE_TESTS = 'myproject.smoked'``````python# myproject/smoked.pyimport smoked# Built-in testsmoked.register('smoked.DatabaseTest')# Custom testsmoked.register('myproject.MessageQueueTest')# ad-hoc functiondef smoke_test():...smoked.register(smoke_test, name='Test my setup', description='...')# ad-hoc function using decorator@smoked.register(name='Verbose name', description='Long text')def smoke_test():...# default name and description@smoked.registerdef smoke_test():  # name='smoke_test'""" Docstring will become description """...```Test runner is trigger either by management command:```shell./manage.py smoked```or an API call:```shellcurl -d"TOKEN=VerySecretToken" http://myproject.io/_smoked/```## LicenceMIT
Package: django_smoknur
Установка приложения в проектеУстановить приложение в окружениеДобавить вsettings.MIDDLEWARE_CLASSES,django_smoknur.middleware.WriteRequestsДобавить вsettings.INSTALLED_APPS,django_smoknurДобавить вurls, урл приложения:from django_smoknur.urls import get_urls
urlpatterns += get_urls()Опциональные параметрыsettingsSMOKNUR_EXCLUDE_APP_DUMPDATA- кортеж приложений, которые необходимо исключить при дампе БД через приложениеSMOKNUR_EXCLUDE_APPS- приложения, исключенные из тестов, например ‘datalogging, contenttypes, south, sessions,  auth.permission, auth.group, auth.message`SMOKNUR_NEW_DJANGO_TESTCASE- включает фикс для теста, для нормальной работы в джанго 1.6. По умолчанию включен. ВTransactionTestCase, в методе_fixture_setupотсутствует вызовcall_command(‘flush’, …), что на мой взгляд не правильно, т.к. не очищается БД перед запуском каждого тесткейса.SMOKNUR_PRINT_REQUESTS- включает вывод информации о каждом запросе, урл и параметры. По умолчанию выключенSMOKNUR_PRINT_RESPONSE- включает вывод информации об ответе на запрос. По умолчанию выключенSMOKNUR_PRINT_RESPONSE_SIZE- размер информации ответа на запрос. По умолчанию не ограниченПример записи сценарияСистема работает в дебаг режимеЗаходим на страничку/smoknurСохраняем дамп БД.Скачается.jsonфайл дампа БД, который может быть использован в качетсве фикстур для конкретного сценария.Файлик был получен командой./manage.py dumpdata, исключая приложенияsettings.SMOKNUR_EXCLUDE_APP_DUMPDATA.Включаем запись отладочной информации.Переходим на главную страницу проекта и работаем с проектомВ это время, мидлвараsmoknur.middleware.WriteRequestsбудет записывать все запросы на сервер в.dbgфайлик, с POST параметрами.Заходим на страничку/smoknurВыключаемзапись отладочной информацииСкачиваемотладочную информациюКладем файлик сценария в соответствующее приложение, в папкуsmoknur, при необходимости файлик фикстур туда же.Как работают тестыЗапускаем тест./manage.py django-smoknurНа каждое приложение изsettings.PROJECTS_APPSсоздаетсяTestCase, если приложение имеет папкуsmoknurЕсли в папке имеется.jsonфайл, он будет использован в качестве начальной фикстурыВсе.dbgфайлы читаются, и прогоняются запросы к системы из этих фалов.Также в модуле имеется менедж командаload_dbg, которой передается 1 параметр, название приложения.
Данная команда отправляет запросы, находящиеся в папкеsmoknurприложения.
Иногда необходима для востановления состояния БД, для последующих тестов.
Фикстуры приложения она не заливает.История изменений версии:0.3.17параметры запросов пишутся в куки, что дает возможность начать запись без авторизациизапись в логи ведется только в дебаг режимелогируется также статус ответалогируется метод запроса и вызывается соответствующий(пока POST и GET)при тетсировании сверяются ответы серверапараметрыSMOKNUR_USERNAME,SMOKNUR_PASSWORDне актуальны, авторизация происходит через логи
Package: djangosmsaero
=====Dajngo SMS Aero=====Simple Django application for send SMS via smsaero.ruFork of https://github.com/DrMartiner/django-smsaero (MIT Licensed)=====Quick start=====1. Add "smsaero" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'smsaero','django_rq', # if you want use the queue of Redis)# if you want use the queue of RedisRQ_QUEUES = {'default': {'HOST': 'localhost','PORT': 6379,'DB': 0,'PASSWORD': '',},}2. Define SMSAERO_USER and SMSAERO_PASSWORD (raw password) or SMSAERO_PASSWORD_MD5 (hash of password) at settings.py::SMSAERO_USER = 'username'SMSAERO_PASSWORD = '123'# orSMSAERO_PASSWORD_MD5 = '202cb962ac59075b964b07152d234b70'3. Run ```python manage.py syncdb``` to create the smsaero models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create a smsaero (you'll need the Admin app enabled).=====Usage=====Send SMS, check the SMS status, get account balance and get signatures::from smsaero.utils import send_smsfrom smsaero.utils import get_sms_statusfrom smsaero.utils import get_balancefrom smsaero.utils import get_signatures_namefrom smsaero.models import SMSMessage# Send SMSsms = send_sms('+79998881122', 'Some text...') # sms has SMSMessage typeprint sms.sms_id # id of accepted messageprint sms.get_status_display() # status# Check SMS statusstatus = get_sms_status(sms.sms_id) # returned string# Get balance of accauntprint get_balance() # returned the rubbles# Get array of signature namesprint get_signatures_name() # Array of stringRunning workers::python manage.py rqworker defaultAsync send SMS::from smsaero.urils import send_sms_asyncfrom smsaero.urils import get_sms_status_asyncfrom smsaero.urils import get_balance_asyncfrom smsaero.urils import get_signatures_name_asyncfrom smsaero.models import SMSMessage# Send SMSjob = send_sms_async('+79998881122', 'Some text...')job.result # result has SMSMessage typejob = get_sms_status_async(sms.sms_id)job.result # return stringjob = get_balance_asunc()job.result # returned the rubblesjob = get_signatures_name()job.result # Array of string
Package: django-smsaero
=====Dajngo SMS Aero=====Simple Django application for send SMS via smsaero.ru=====Quick start=====1. Add "smsaero" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'smsaero','django_rq', # if you want use the queue of Redis)# if you want use the queue of RedisRQ_QUEUES = {'default': {'HOST': 'localhost','PORT': 6379,'DB': 0,'PASSWORD': '',},}2. Define SMSAERO_USER and SMSAERO_PASSWORD (raw password) or SMSAERO_PASSWORD_MD5 (hash of password) at settings.py::SMSAERO_USER = 'username'SMSAERO_PASSWORD = '123'# orSMSAERO_PASSWORD_MD5 = '202cb962ac59075b964b07152d234b70'3. Run ```python manage.py syncdb``` to create the smsaero models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create a smsaero (you'll need the Admin app enabled).=====Usage=====Send SMS, check the SMS status, get account balance and get signatures::from smsaero.urils import send_smsfrom smsaero.urils import get_sms_statusfrom smsaero.urils import get_balancefrom smsaero.urils import get_signatures_namefrom smsaero.models import SMSMessage# Send SMSsms = send_sms('+79998881122', 'Some text...') # sms has SMSMessage typeprint sms.sms_id # id of accepted messageprint sms.get_status_display() # status# Check SMS statusstatus = get_sms_status(sms.sms_id) # returned string# Get balance of accauntprint get_balance() # returned the rubbles# Get array of signature namesprint get_signatures_name() # Array of stringRunning workers::python manage.py rqworker defaultAsync send SMS::from smsaero.urils import send_sms_asyncfrom smsaero.urils import get_sms_status_asyncfrom smsaero.urils import get_balance_asyncfrom smsaero.urils import get_signatures_name_asyncfrom smsaero.models import SMSMessage# Send SMSjob = send_sms_async('+79998881122', 'Some text...')job.result # result has SMSMessage typejob = get_sms_status_async(sms.sms_id)job.result # return stringjob = get_balance_asunc()job.result # returned the rubblesjob = get_signatures_name()job.result # Array of string
Package: django-sms-cn
Django SMS CN基于Django的短信模块Platforms253阿里云Quick start安装django-sms-cn$ pip install django-sms-cn在settings.py中修改INSTALLED_APPSINSTALLED_APPS=[...'sms']在settings.py底部加配置信息SMS={'default':'253','appid':'','secret':''}修改urls.pyurlpatterns=[...path('sms/',include('sms.urls'))]更新数据库$pythonmanage.pymigrate
Package: django-smscoin
Django payment gateway for smscoin servicePayment gateway site:http://smscoin.comLink to repository:https://github.com/Arpaso/smscoinUsageYou have to use south migrations to update your database:python manage.py migrateDjango form field:SMSKeyField. Example informs.py:from smscoin.fields import SMSKeyField
class SMSForm(forms.ModelForm):

    sms_pair = SMSKeyField(label=_("Access code"), required=True)settings.py:SMSCOIN_KEY = "12345" # Your smscoin.com account keyProvidermodel:from smscoin.models import ProviderProvidesCountryAdminto use at django admin interfaceProvides django management command to update sms tariffs from thehttp://smscoin.comservice:python manage.py update_sms_tariffhelp tag:{% smscoin_help %}Written by the development team of Arpaso company:http://arpaso.com
Package: django-smsgateway
README------How to install:* Add 'smsgateway' to your INSTALLED_APPS* Configure it:# settings.py# This is where your incoming messages will be handled by your web app.SMSGATEWAY_HOOK = {'MV': 'mvne.activation.utils.incoming_sms','SIM': 'mvne.activation.utils.incoming_sms'}# This is a list of accounts of SMS gateway providers.SMSGATEWAY_ACCOUNTS = {'__default__': 'mobileweb', # This is your default account. You MUST specify this! It points to one of your accounts below this line.'mobileweb': {'backend': 'mobileweb', 'username': 'johndoe', 'password': '12345678', 'sid': '413'}, # Example account'smsextrapro': {'backend': 'smsextrapro', 'username': 'johndoe', 'password': '87654321'}, # Example account}# This is where you set up the backends in use. You can use your own too! Please look at the built-in backends for an example.SMSGATEWAY_BACKENDS = ('smsgateway.backends.mobileweb.MobileWebBackend','smsgateway.backends.smsextrapro.SmsExtraProBackend',)* Some backends support incoming text messages:# urls.pyfrom smsgateway import backendsurlpatterns = ('',(r'^incoming_sms/$', backends.get_backend('mobileweb').handle_incoming),)* Set up your SMS gateway to use this url for incoming messages.
Package: django-sms-gateway
Easily send SMS messages through a web gateway from django.This code is quite stable, and has been in use for about 2 years, with thousands of messages sent per week, to a variety of gateways, and a number of different countries.InstallationInstall the package into your project’s virtual environment:pip installdjango-sms-gatewayAddsmsto your project’ssettings.INSTALLED_APPS.Run./manage.py migrateor./manage.py syncdbConfigurationThere are three django models:sms.Message,sms.Gateway, andsms.Reply.Before you are able to send any messages, you will need to configure at least one gateway. There is some sample data for some gateway providers. You can adapt one of these for your own purposes.UsageCreate a message, ready to be sent:msg = Message.objects.create(
  recipient_number="123456789",
  content="Test message",
  sender=user,
  billee=user
)Note that you must provide at least these fields.recipient_numbermust include the international prefix (or your gateway must be configured to add it).contentshould be ASCII, some gateways reject unicode.sendermust be anauth.User, butbilleemay be any object.This does not send the message:>>> msg
<Message: [Unsent] Sent to 123456789 by matt at None [1]>To send it, you need to provide a gateway:msg.send(gateway)Status/Reply CallbackIf your gateway supports it, you can have it hit your server whenever there are status updates on any message. You can use the included views, in your urlpatterns:urlpatterns = patterns('',
  (r'^sms/', include('sms.urls')),
)This would mean that you would need to enter something like:http://example.com/sms/status_postback/In your gateway’s settings.The status can be updated, and a status message can be provided. This is all parsed using the content of the status update request to your server, and the status_mapping data.The same applies for replies, if you have a 2-way gateway, but using/sms/reply_postback/instead.Reply callback functionsWhen you send a message, you can store areply_callbackfunction in the object. This function will be called, with the reply object passed in as the parameter. The reply object has access to it’s original message (as well as it could be matched).BillingSince SMSs are generally billable through web gateways, there is the requirement that a billee is provided, and there is a billed flag on each message. This allows you to bill after-the-fact. If you wanted to only allow sending of messages to people with credits remaining, then you would need to validate this before attempting to send.Since a message may be longer than one segment, there is a helper property onsms.Message,.length, which calculates how many segments would be required.FutureCurrently, all sending happens in-process. There is a preliminary celery task, but it has not been extensively tested as yet.
Package: django-smsish
# django-smsish[![PyPI version](https://badge.fury.io/py/django-smsish.svg)](https://badge.fury.io/py/django-smsish)[![Build Status](https://travis-ci.org/RyanBalfanz/django-smsish.svg)](https://travis-ci.org/RyanBalfanz/django-smsish)[![Code Health](https://landscape.io/github/RyanBalfanz/django-smsish/master/landscape.svg?style=flat)](https://landscape.io/github/RyanBalfanz/django-smsish/master)[![Coverage Status](https://coveralls.io/repos/github/RyanBalfanz/django-smsish/badge.svg?branch=develop)](https://coveralls.io/github/RyanBalfanz/django-smsish)Installation------------Add `smsish` to your `INSTALLED_APPS` and set `SMS_BACKEND`.INSTALLED_APPS += ('smsish',)SMS_BACKEND_CONSOLE = 'smsish.sms.backends.console.SMSBackend'SMS_BACKEND_DUMMY = 'smsish.sms.backends.dummy.SMSBackend'SMS_BACKEND_TWILIO = 'smsish.sms.backends.twilio.SMSBackend'SMS_BACKEND = SMS_BACKEND_DUMMYTo use the Twilio backend set some additional settings as well.TWILIO_ACCOUNT_SID = os.getenv("TWILIO_ACCOUNT_SID", None)TWILIO_AUTH_TOKEN = os.getenv("TWILIO_AUTH_TOKEN", None)TWILIO_MAGIC_FROM_NUMBER = "+15005550006"  # This number passes all validation.TWILIO_FROM_NUMBER = os.getenv("TWILIO_FROM_NUMBER", TWILIO_MAGIC_FROM_NUMBER)Note: You must also `pip install twilio` to use the Twilio backend.
Package: django-smsish2
django-smsishForked fromRyanBalfanzInstallationAddsmsishto yourINSTALLED_APPSand setSMS_BACKEND.INSTALLED_APPS += (
		'smsish',
	)

	SMS_BACKEND_CONSOLE = 'smsish.sms.backends.console.SMSBackend'
	SMS_BACKEND_DUMMY = 'smsish.sms.backends.dummy.SMSBackend'
	SMS_BACKEND_TWILIO = 'smsish.sms.backends.twilio.SMSBackend'
	SMS_BACKEND_YUNPIAN = 'smsish.sms.backends.yunpian.SMSBackend'
	SMS_BACKEND = SMS_BACKEND_DUMMYTwillioTo use the Twilio backend set some additional settings as well.TWILIO_ACCOUNT_SID = os.getenv("TWILIO_ACCOUNT_SID", None)
	TWILIO_AUTH_TOKEN = os.getenv("TWILIO_AUTH_TOKEN", None)
	TWILIO_MAGIC_FROM_NUMBER = "+15005550006"  # This number passes all validation.
	TWILIO_FROM_NUMBER = os.getenv("TWILIO_FROM_NUMBER", TWILIO_MAGIC_FROM_NUMBER)Example:from smsish.sms import send_sms
send_msg(message, '', (phone,))Note: You must alsopip install twilioto use the Twilio backend.Yunpiansettings.py:YUNPIAN_API_KEY = getenv("YUNPIAN_API_KEY")Note: You must alsopip install yunpian-python-sdkto use the YunPian backend.Example:from smsish.sms import send_sms
send_msg(message, '', (phone,))Testtox
# tox in docker

docker run --rm -it -v ${PWD}:/src themattrix/tox