Saravanan666/pypi-org huggingface dataset:
Package: redshiftsql
This tool accepts either a Redshift username and password OR an AWS
Access Key ID and Secret Key.If you use the IAM Access/Secret method, the user that you are
referencing MUST have the correct policy to get temporary credentials
from the database. For example:{
  "Version": "2012-10-17",
  "Statement": {
    "Effect": "Allow",
    "Action": "redshift:GetClusterCredentials",
    "Resource": [
      "arn:aws:redshift:us-west-2:123456789012:dbuser:examplecluster/temp_creds_user",
      "arn:aws:redshift:us-west-2:123456789012:dbname:examplecluster/dev_database"
    ]
  }
}Usagepython -m redshiftsql host dbname user file --password password --port portORpython -m redshiftsql host dbname user file --aws-access-key-id aws-access-key-id --aws-secret-key aws-secret-key --cluster-name cluster-name --port portArgumentshostThe Redshift endpoint, minus the portdbnameThe Redshift database to connect touserThe Redshift userpasswordThe Redshift password. Ignored ifaws-access-key-idis presentportThe port on thehost. Defaults to5439regionThe region that the Redshift cluster is in. Defaults tous-east-1fileThe file to read the SQL commands fromaws-access-key-idThe AWS Access Key ID for the IAM user to
obtain temporary credentialsaws-secret-keyThe AWS Secret Key for the IAM user to obtain
temporary credentialscluster-nameThe Redshift cluster name to obtain temporary
credentials from
Package: redshift-sqlalchemy
redshift_sqlalchemy==================Amazon Redshift dialect for sqlalchemy... image:: https://travis-ci.org/binarydud/redshift_sqlalchemy.png?branch=masterRequirements-------------* pysocpg2 >= 2.5* SQLAlchemy 0.8Usage-----DSN format is simpilar to that of regular postgres:from sqlalchemy import create_engineengine = create_engine("redshift+psycopg2://username@host.amazonaws.com:5439/database"Notes-----Currently, contraints and indexes return nothing when intropecting tables. This comes from the redshift implementation of the postgresql api == 8.0
Package: redshift-tools
redshift_toolsSourceDocumentationThis package provides useful tools to create and manipulate redshift
bins for cosmic shear analyses. If you use the package for your research,
please cite (Fischbacher et al. 2022,arXiv-2207.01627)UsageHave a look at the notebooks provided atdemosCreditsThe package was created by Silvan Fischbacher
in the Cosmology Research Group at ETH Zurich.The package is maintained by Silvan Fischbacher:silvanf@phys.ethz.ch
Package: redshift-unloader
redshift-unloaderUnloads the result of a query on Amazon Redshift to local storage.PrerequisitesPython 3.6+boto3 1.7.84psycopg2 2.7.5psycopg2-binary 2.7.5InstallationThe package is available on PyPI:pipinstallredshift-unloaderUsageUnloaded data is supposed to be gzipped.fromredshift_unloaderimportRedshiftUnloaderru=RedshiftUnloader(host='<redshift host>',port=<redshiftport>,user='<redshift user>',password='<redshift password>',database='<redshift database name>',s3_bucket='<s3 bucket name>',access_key_id='<aws access key id>',secret_access_key='<aws secret access key>',region='<aws region>',verbose=False)ru.unload("SELECT * FROM my_table WHERE log_time >= 'yyyyMMdd'","/path/to/result.csv.gz",delimiter=',',add_quotes=True,escape=True,null_string='',with_header=True)
Package: redsmaster
﻿#################################################
# Introduction
#################################################ReDS stands for Revision controlled document storage.
With reds you can store your documents encrypted in the cloud
and still have full control over them,
because the encryption key is not stored at the cloud service provider.
Therefore even the cloud service provider can’t access your data.
The encryption key is not stored anywhere else, so be careful not to lose it.But that’s not all. The integrity and authenticity of the stored documents is
ensured by means of digital signatures which are enforced by redsmaster for
every head commit. Because of this, it is also possible to trace every change that
was made back to it’s author with non-repudiation of origin.Moreover, there is also a built-in SSH server with user management and access control.
So you can share the documents with those you want to by giving them the address
of the server running redsmaster.They can just use a standard mercurial client to connect to the server at the
specified port (standard: 2222). For example:hg clonessh://averagejoe@yourserver:2222/your-repoRedsmaster also supports public key login with SSH.# RequirementsTo run redsmaster you need to have installed:s3qlpython 2.7python-pippython-devThen simply install redsmaster using pip:pip install redsmasterOr if you can’t install it throug the Package Index,
download the packed file and install it with:pip install path/to/redsmaster-x.y.z.zipThis packed file is available on the downloads page as well as the
GnuPG signature file for it (redsmaster-x.y.z.zip.asc).It is recommended to use a virtualenv for this.The user running redsmaster must be in the fuse group.# UsageHere is a short usage example for Amazon S3.Setup the filesystem in an existing S3 bucket:redsmaster setup s3://your-bucket/This will require your login information for S3.
After this is finished you can start redsmaster by typing:redsmaster start s3://your-bucket/Now you can access the repositories just like you would with a normal
mercurial server. Note, that right now there are 2 standard users:
guest and admin. They have no password so make sure to set them by typing:redsmaster adduser admin –passwordThis will prompt for the new password for admin.Now, you can start playing with redsmaster and when you’re finished just type:redsmaster stop# ChangelogVersion 1.0.4:Fixed incompatibilities with Cement 2.4Version 1.0.3:Only a few small changes to prepare the next updateVersion 1.0.2:Initial release
Package: redsolutioncms
Development Lyrics:We’ve been developing Django sites 4 years. We made many sites and came to the
conclusion:Standard function should be performed with standard libraries.Those libraries should be maintained separately from the production site.Libraries should be easily supportedAfter all, we decided to create a product which would help us to bulid site with
latest stable versions of standard modules.zc.buildoutwas appropriate tool,
but most of modules needs to be configured, configurations differs from one
module version to another. Buildout can’t handle configuration options likedjango.conf.settingsor urls.
Also we want to escape from design process and bugfixes. Webdesign should be
created with web designers.
We decided that our product should be able to make a website template, ready for
further development and customizing.Features:Web wizard site creationPortable crossplatform codeWork with Python Package IndexInstallation:From setup packageDownload package for your system fromour siteand install it.Create new folder, in which you you want to install site. In console, from that folder
runredsolutioncmsThats’s all. CMS will download Django and some nessesary libraries and open web
browser window (or tab) with first step of wizard. At the end of wizard you will
get website installed in specified folder, also installable on production server.From sourceDownload source distribution, or clone repository fromgithub. Just like when
you install from package, create a folder. Extend your system environment variablePYTHONPATH:$ export PYTHONPATH=<path-to-redsoultioncms-folder>(on windows usesetPYTHONPATH=<path-to-redsoultioncms-folder>)and run loader:$ <path-to-redsoultioncms-folder>/redsolutioncms/loader.pyThen you will et the same results.For more documentation, visit:http://www.redsolutioncms.org
Package: redsolutioncms.django-catalog
Application allows to organize objects in tree hierarhy.This Documentation is poor for now, but it contains instructions
how to set up application with default settings.Install:Downloaddjango-catalogand include it into python path.Edit yoursettings.pythis way:INSTALLED_APPS += [
    'catalog',
    'catalog.contrib.defaults',
]And insert one of this strings intourlconf.py:urlpatterns += patterns('',
    (r'^catalog/', include('catalog.urls.by_id')),
)orurlpatterns += patterns('',
    (r'^catalog/', include('catalog.urls.by_slug')),
)Methodby_idwill configure views to display tree items urls like this:http://example.com/catalog/my-item-47/. Wheremy-itemis object’s slug,
and47is TreeItem id attribute.Methodby_slugwill configure views to display tree items urls like this:http://example.com/catalog/item-my-item/. Wheremy-itemis object’s slug,
anditemis Item models name.Notice, that when you use methodby_slug, every objectMUSThaveslugattribute.Classifiers:Frontpage handlers
Package: redsolutioncms.django-chunks
Django chunks documentationPrefaceThink of it as flatpages for small bits of reusable content you might want to insert into your templates and manage from the admin interface.
This is really nothing more than a model and a template tag.By addingchunksto your installed apps list in your Django project and performing a./manage.py syncdb, you’ll be able to add as many “keyed” bits of content chunks to your site.The idea here is that you can create a chunk of content, name it with a unique key (for example:home_page_left_bottom) and then you can call this content from a normal template.Why would anyone want this?Well it essentially allows someone to define “chunks” (I had wanted to call it blocks, but that would be very confusing for obvious reasons) of content in your template that can be directly edited from the awesome Django admin interface.  Throwing a rich text editor control on top of it make it even easier.InstallationAddchunksto yourINSTALLED_APPSRunmanage.py syncdbUsage:In your template{% load chunks %}
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <h1> Blah blah blah</h1>
    <div id="sidebar">
        ...
    </div>
    <div id="left">
        {% chunk "home_page_left" %}
    </div>
    <div id="right">
        {% chunk "home_page_right" %}
    </div>
  </body>
</html>This is really helpful in those cases where you want to usedjango.contrib.flatpagesbut you need multiple content areas.  I hope this is helpful to people and I’ll be making minor edits as I see them necessary.Redsolution CMS classifiers:Content plugins
Package: redsolutioncms.django-easy-news
Application provides news functionality for your site.Installation:In settings.py:Addeasy_newsto yourINSTALLED_APPS.Include('easy_news.urls')in yoururls.pylike this:urlpatterns += patterns('',
    (r'^news/', include('easy_news.urls')),
)UsageViewsEasy news usesdjango generic views systemto render pages.
Easy news has several url handlers (I mean named patterns):news_detail- Show news itselfnews_list- ifsettings.ENABLE_NEWS_LISTis True, shows list of publicated newsnews_archive_indexifnews_settings.ENABLE_NEWS_ARCHIVE_INDEXis True, shows content ofdjango.views.generic.date_based.archive_indexviewnews_archive_year,news_archive_month,news_archive_day- ifsettings.ENABLE_NEWS_DATE_ARCHIVEis True, shows news archive by given datenews_tag_detail- if you usedjango-taggingandsettings.NEWS_TAGGINGis True, easy_news provide list of tagged newsTemplate tags:If you want to use easy_news template tags, loadeasy_news_tags:{% load easy_news_tags %}show_newsShows list ofnumlatest news. 5 news in list by default:{% show_news <num> %}calendarRender calendar. If there’s some news at date, shows hyperlink to news. By default, use current date:{% calendar <year> <month> %}Customize:Full settings list:ENABLE_NEWS_LIST(boolean) - render latest news list. Default - TrueENABLE_NEWS_ARCHIVE_INDEX(boolean) - render django generic datearchive indexof news objects. Default - TrueENABLE_NEWS_DATE_ARCHIVE(boolean) - render django generic datefull archiveof news objects. Default - TrueNEWS_TAGGING(boolean) - use news tagging. Default - ifdjango-taggingis installed, True, otherwise FalseHISTORY:0.2.3: Added haystack compatibilityClassifiers:Frontpage handlers
Package: redsolutioncms.django-menu-proxy
Allow you to build different menus and breadcrumbs over objects with differect types on your site.Installation:In settings.py:Addmenuproxyto yourINSTALLED_APPS.SetMENU_PROXY_SETTINGSvariable. To learn about how to use it read source code of example project.Usage:In your templates:Loadmenuproxy_tagstemplatetag:{% load menuproxy_tags %}To show menu use:{% show_main_menu <rule> <object> %}or:{% show_full_menu <rule> <object> %}or:{% show_auto_menu <rule> <object> %}To show breadcrumbs use:{% show_breadcrumbs <rule> <object> %}To learn more about usage read source code of example project.History:0.1.0 - First release0.1.1 - Fixed old tag pop_breadcrumb
Package: redsolutioncms.django-model-url
Django-model-url helps you to show correctly links to all objects even if page`s url was changed.Usage caseFor example, you have news page on your web site.
You add a lot of links to the news page from other pages.
At some time you had to change url for the news page. This action lead to the problem: all old links are broken now.
Of course, you can add redirect from old address to new. This can application solve problem more elegantly.How it works?Before you save content with hyperlink to your databasedjango-model-urltries to replace it with something like this{@ myapp.models.MyModel id @}.
Module will search for controller (view) that presents specified url.
If controller will be found module  calls it and looks for object in context that passed to template.When ever such “macro-url” will appear in response it will be replaced with actual url.Installation:In settings.py:Add'modelurl'to yourINSTALLED_APPS.Add'modelurl.middleware.ModelUrlMiddleware'to the end ofMIDDLEWARE_CLASSES.Configure the list of available models to be used by django-model-urlMODELURL_MODELS = [
    {
        'model': 'myapp.models.MyModel',
    },
    ...
]4. Configure the list of views that return objects of specified models.
You must also specify the name of your context variable that represents your objectMODELURL_VIEWS = [
    {
        'view': 'myapp.views.get',
        'context': 'object',
    },
]You can disable view if you don`t want to work with it:MODELURL_VIEWS = [
    {
        'view': 'django.contrib.admin.site.root',
        'disable': True,
    },
]Usage:In your models:You can check single url by hands before savingfrom modelurl.utils import ReplaceByView

class MyModel(models.Model):
    url = models.CharField(max_length=200)
    def save(self, *args, **kwargs):
        self.url = ReplaceByView().url(self.url)
        super(MyModel, self).save(*args, **kwargs)You can check html before savingfrom modelurl.utils import ReplaceByView

class MyModel(models.Model):
    html = models.TextField()
    def save(self, *args, **kwargs):
        self.html = ReplaceByView().html(self.html)
        super(MyModel, self).save(*args, **kwargs)You can use django-model-url together withdjango-trusted-htmlto make your html correct, pretty and safe.Classifiers:Utilities
Package: redsolutioncms.django-page-cms
This Django CMS enable you to create and administrate hierarchical pages in a simple and powerful way.Django page CMS is based around a placeholders concept. A placeholder is special template tag that
you use in your page templates. Every time you add a placeholder in your template  a field
dynamically appears in the page admin.This CMS is know to work on Django 1.1.3, 1.2.5 and 1.3-beta-1DocumentationFor more informations about the product:http://packages.python.org/django-page-cms/
Package: redsolutioncms.django-seo
Seo fields for objects of any model registed in admin or for specified url.Installation:Putseoas LAST item to yourINSTALLED_APPSin yoursettings.pywithin your django project.Sync your database:./manage.py syncdbUsage:In settings.py:Add names of ModelAdmins to be override:SEO_FOR_MODELS = [
    '<app>.models.<Model>',
]In template:First of all, load the seo_tags in every template you want to use it:{% load seo_tags %}Use::{% seo <title|keywords|description> [for <object>] %}Or::{% seo <title|keywords|description> [for <object>] as <variable> %}
{{ <variable> }}Example:settings.py:INSTALLED_APPS = (
    ...
    'app',
    ...
    'seo',
)

SEO_FOR_MODELS = [
    'app.models.Object',
    'app.models.Another',
]templates/object.html:{% load seo_tags %}
<html>
    <head>
        <meta name="description" content="{% seo description for object %}" />
        <meta name="keywords" content="{% seo keywords for object %}" />
        <title>{% seo title for object %}</title>
    </head>
    <body>
        {{ object.content }}
        <h1>{% seo title for object as seo_title %}{{ seo_title }}</h1>
    </body>
</html>If you are using extendtemplates/base.html:<html>
    <head>
        <meta name="description" content="{% block description %}{% seo description %}{% endblock %}" />
        <meta name="keywords" content="{% block keywords %}{% seo keywords %}{% endblock %}" />
        <title>{% block title %}{% seo title %}{% endblock %}</title>
    </head>
    <body>
        {% block content %}{% endblock %}
    </body>
</html>templates/object.html:{% load seo_tags %}
{% block description %}{% seo description for object %}{% endblock %}
{% block keywords %}{% seo keywords for object %}{% endblock %}
{% block title %}{% seo title for object %}{% endblock %}

{% block content %}
    {{ object.content }}
{% endblock %}templates/another.html:{% load seo_tags %}
{% block description %}{% seo description for another %}{% endblock %}
{% block keywords %}{% seo keywords for another %}{% endblock %}
{% block title %}{% seo title for another %}{% endblock %}

{% block content %}
    {{ another.content }}
{% endblock %}Redsolution CMS classifiers:Content plugins
Package: redsolutioncms.django-simple-feedback
Quick startIn codeAddfeedbackto INSTALLED_APPSINSTALLED_APPS = [
    ...
    'feedback',
    ...
]Example urlpatterns:(r'^feedback',include('feedback.urls'))Synchronize your database models rundjango syncdbIn templatesLoad tags library:{% load feedback_tags %}Insert template tag in your template{% show_feedback [key] %},wherekeyis feedback form key. Default key value isdefault.RequrimentsNote that feedback uses ajax form based on jQuery, so you need to include jQuery
in your page. You can install it from Google hosting:<scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>SettingsFEEDBACK_FORMSRegistry for custom feedback forms. See Customize section.FEEDBACK_FORMS_NAMESRegistry for feedback form names. See Customize section.CustomizeIf you want to customize default feedback form, or add your own, you have to
create an application with your forms. All feedback forms should be subclasses offeedback.forms.BaseFeedbackForm. Here is an example of custom feedback class:from django import forms
from feedback.forms import BaseFeedbackForm


class OrderForm(BaseFeedbackForm):
    name = forms.CharField(label=u'Your name', max_length=200)
    email = forms.EmailField(label=u'Your Email', max_length=200)
    phone = forms.CharField(label=u'Phone', max_length=200)
    address = forms.CharField(label=u'Your address', max_length=200)
    date = forms.CharField(label=u'Date and time', max_length=200)
    file = forms.FileField(label=u'Attach the file')

    response = forms.CharField(label=u'Comment', max_length=500,
        widget=forms.Textarea(attrs={'cols':'30', 'rows':'5'}))
    subject = u'Custom order form'subjectattribute appears in email subject.Then you need to put feedback forms in your settings.py:FEEDBACK_FORMS- dictionary object, describes feedback forms on your
site. Every key-value pair stands for feedback form object. For example:FEEDBACK_FORMS = {
    'default': 'feedback.forms.FeedbackForm',
    'order': 'mysite.custom_feedback.forms.OrderForm',
}You can also specifyFEEDBACK_FORMS_NAMESoption:FEEDBACK_FORMS_NAMES- dictionary object, that defines the way a feedback form is displayed in Mailing list admin interface.
Every key-value pair stands for feedback form object. For example:FEEDBACK_FORMS_NAMES = {
    'order': 'Online order form',
}Now we can include{% show_feedback order %}in  template and get overriden form.Custom templatesYou can create custom templates if you have custom form class. Application search them by first. Template names are:feedback/FORM_KEY/feedback.html,feedback/feedback.htmlfor rendering form itselffeedback/FORM_KEY/thankyou.html,feedback/thankyou.htmlfor rendering success responsefeedback/FORM_KEY/email.txt,feedback/feedback_messages.txtfor rendering email textMailing listsYou can specify a mailing list for each feedback form with admin interface. By default messages from all the feedback forms are sent to the emails specified by MANAGERS settingWhat’s new0.4.1 - Option to define humanized form names was added.
0.4.0 - New version. Responses in DB was deleted and mailing lists was added.
Package: redsolutioncms.django-tinymce
tinymce is aDjangoapplication that contains a widget to render a form field
as aTinyMCEeditor.Features:
- Use as a form widget or with a view.
- Enhanced support for content languages.
- Integration with the TinyMCE spellchecker.
- Enables predefined link and image lists for dialogs.
- Can compress the TinyMCE Javascript code.
- Integration withdjango-filebrowser.The tinymce code is licensed under theMIT License. See theLICENSE.txtfile in the distribution. Note that the TinyMCE editor is distributed underits own license.RequirementsDjango 1.3+ is required.
For Django < 1.3 please check out django-tinymce 1.5.1.Installation1. Place thetinymcemodule in your Python path. You can put it into your
Django project directory or runpython setup.py installfrom a shell.
2. Copy thejscripts/tiny_mcedirectory from the TinyMCE distribution into
a directory namedjsin your static root. You can override the location in
your settings (see below).
3. If you want to use any of the views add tinymce your installed applications
list and URLconf:settings.py:INSTALLED_APPS = (
    ...
    'tinymce',
    ...
)urls.py:urlpatterns = patterns('',
    ...
    (r'^tinymce/', include('tinymce.urls')),
    ...
)ConfigurationThe application can be configured by editing the project’ssettings.pyfile.TINYMCE_JS_URL(default:settings.STATIC_URL + 'js/tiny_mce/tiny_mce.js')The URL of the TinyMCE javascript file.TINYMCE_JS_ROOT(default:settings.STATIC_ROOT + 'js/tiny_mce')The filesystem location of the TinyMCE files.TINYMCE_DEFAULT_CONFIG(default:{'theme': "simple", 'relative_urls': False})The default TinyMCE configuration to use. Seethe TinyMCE manualfor all
options. To set the configuration for a specific TinyMCE editor, see themce_attrsparameter for thewidget.TINYMCE_SPELLCHECKER(default:False)Whether to use the spell checker through the supplied view. You must addspellcheckerto the TinyMCE plugin list yourself, it is not added
automatically.TINYMCE_COMPRESSOR(default:False)Whether to use the TinyMCE compressor, which gzips all Javascript files into
a single stream.  This makes the overall download size 75% smaller and also
reduces the number of requests. The overall initialization time for TinyMCE
will be reduced dramatically if you use this option.TINYMCE_FILEBROWSER(default:Trueif'filebrowser'is inINSTALLED_APPS, elseFalse)Whether to usedjango-filebrowseras a custom filebrowser for media
inclusion. See theofficial TinyMCE documentation on custom filebrowsers.Example:TINYMCE_JS_URL = 'http://debug.example.org/tiny_mce/tiny_mce_src.js'
TINYMCE_DEFAULT_CONFIG = {
    'plugins': "table,spellchecker,paste,searchreplace",
    'theme': "advanced",
}
TINYMCE_SPELLCHECKER = True
TINYMCE_COMPRESSOR = TrueRedsolution CMS classifiers:Content pluginsCopyright (C) 2008 Joost Cassee
This program is licensed under the MIT License (see LICENSE.txt)Seehttp://django-tinymce.googlecode.comfor docs.–
Joost Casseejoost@cassee.net