Saravanan666/pypi-org huggingface dataset:
Package: tiddlywebplugins.manifestopheles
The devil is in the details.A manifesto is of necessity a collection of mostly context free
glittering generalities designed to convince through demagoguery
rather than authority, fact, truth or reference.This is _good_. We are all motivated by belief, emotion and the
things that inspire, whether we choose to admit it not.However, it would be nice if when manifesting a manifesto, one
could lend some context and credibility to the ravings of the
inspired mind.Thus manifestopheles.The idea is that everything an individual writes is embedded in
their own sense of what the words they use connote.
manifestopheles provides a wiki-like way of attached a manifesto
to the details: a personal dictionary of words and phrases auto-
linked from the manifesto. Many manifestos, one dictionary.-=-=-This idea is based on my previous thing, called warp, which would
auto link words and phrases in documents attached to and within
a dictionary, creating a web of unintentional but perhaps meanginful
connections.manifestopheles reimplements warp on a TiddlyWeb architecture,
taking advantage of bags and the recipe cascade to attach different
manifestos to a single dictionary, or even different dictionaries
(what does manfiesto on dictionary A _mean_ compared to the same
manifesto on dictionary B?).-=-=-The basic idea is that a manifesto is a tiddler A in bag B which is
part of recipe C. Recipe C also includes bag D which is the dictionary.
When tiddler A is displayed any phrases or words (phrases checked first)
which are tiddler titles from bag D are displayed as links to the
tiddler. When that tiddler is displayed, it to is parsed for
phrases and words, creating links.All this is embedded in a navigation and editing/annotating UI. For
anybody there’s:What amounts to a recent changes.A way (to be determined) to comment/annotate.For the author/admin:Any tiddler can be edited and saved back to its original home.When text in any tiddler is selected, a button can be pushed
which creates a new tiddler with a title of the selected text
(normalized) and displays an editing interface.In a deluxe version there would be a way to layer on functionality
by adding in additional bags. For example, other people’s dictionaries,
turning annotations on and off, that sort of thing.Chris Dent, 2010
Package: tiddlywebplugins.mappingsql
mappingsql is TiddlyWeb StorageInterface implementation
that maps an RDBMS table as a bag, with each row representing
a tiddler.It has many limitations (on purpose):It is READ ONLYIt only supports one bag.It has no support for recipes.It has no support revisions.It has limited support for search.You tell tiddlywebconfig.py what database you want to look
at, what table you want to map, and what bag name you want
that table to think of itself as. The column name ‘id’
is mapped to tiddler.title unless overridden by the
configuration setting of ‘mappingsql.id_column’. Any column
names that map to Tiddler attributes are applied. Otherwise,
columns are mapped into tiddler.fields.Search support is used primarily with MySQL and its full text
indexing system. You may turn on this support with
‘mappingsql.full_text’ set to True.This is experimental alpha software, reading and understanding
the code is recommending before using. There is additional information
in the module docstring.TODO:Make mapping of columns to tiddler attributes optional.Cast column data to unicode with flair.This work was created by Chris Dent <cdent@peermore.com>
for Peermore Limited, working for Yellowcar Limited, under
the auspices of the wiki-data project of Avox.It is license under the BSD license.
See COPYRIGHT for more information.
Package: tiddlywebplugins.mapuser
[![Build Status](https://travis-ci.org/pads/tiddlywebplugins.mapuser.png)](https://travis-ci.org/pads/tiddlywebplugins.mapuser)[![Coverage Status](https://coveralls.io/repos/pads/tiddlywebplugins.mapuser/badge.png)](https://coveralls.io/r/pads/tiddlywebplugins.mapuser)[![Latest Release](https://pypip.in/v/tiddlywebplugins.mapuser/badge.png)](https://crate.io/packages/tiddlywebplugins.mapuser/)About=====Allows TiddlyWeb users to create alias usernames, deliberately without validation.This is ideal in a scenario where you control the user authentication journey but want to use different usernamesthan those expected by the user authentication source.Any username string can be used as long as it contains valid alphanumeric characters and no spaces.Essentially, what is being mapped is user ID -> username.Upon a successful POST, the plugin creates a tiddler in a bag called MAPUSER.This data is used when a user logs in so that they can be mapped to their username.Requirements============* [Python](http://www.python.org/).* [pip](http://www.pip-installer.org/en/latest/).* make.* A working TiddlyWeb instance to test against.* [py.test](http://pytest.org/latest/) to run the tests.Modifying=========The best way to figure out how to work with this project is to look at the `.travis.yml` file.`setup.py` is used to package up the plugin, install and distribute.Plugin code lives in the `tiddlywebplugins` directory.Tests live in the `test` directory.* `make install` installs the plugin as a package on your system* `make install_dev` installs packages necessary to run tests, check style and provide test coverage* `make test` runs the tests.* `make test_with_coverage` runs the tests with code coverage reporting from `pytest-cov`* `make pep8` runs pep8 over the code to check for style compliance.(you may need sudo for this.)* `make release` packages and uploads the plugin to [PyPI](http://pypi.python.org/pypi) for distribution.Plugin Installation===================Install tiddlywebplugins.mapuser:pip install -U tiddlywebplugins.mapuserTiddlyWeb Configuration=======================Reference the plugin from your TiddlyWeb configuration as a system plugin e.g:`'system_plugins': ['tiddlywebplugins.mapuser']`Usage=====The URL to send POSTs to will be:map_user/<userid>Where `<userid>` is the same as the one used to authenticate.  The body will contain the mapped username:mapped_user: <username>
Package: tiddlywebplugins.methodhack
From the pydoc:A TiddlyWeb plugin for working around limitations in some server setupswherein perfectly legit HTTP methods like PUT and DELETE are not allowedto pass through to TiddlyWeb.This can also happen when using some legacy browsers which will notallow PUT and DELETE in XmlHttpRequest calls.We do this by looking at, in order:X-HTTP-Method headerhttp_method URL parameterIf the real method is POST, REQUEST_METHOD will be reset to whatever isgiven in the above.If the real method is GET, REQUEST_METHOD will only be reset to whateveris given in the above if it is GET or HEAD.Effectively this means that if you want to override, you must POST. Thisis consistent with idempotency conventions associated with HTTP methods.ONLY USE THIS MIDDLEWARE IF YOU CANNOT FIX YOUR SERVER OR YOUR BROWSER.YOUR SERVER AND BROWSER ARE BROKEN IF YOU NEED TO USE THIS.NOTE: This code will not magically handle tunneling of methods. Clientcode must choose to do the tunneling. At this time TiddlyWeb client codesuch as TiddlyWebAdaptor does NOT tunnel. methodhack provides a way tohand PUT and DELETE requests that have been tunneled over POST for thosebrowsers that do not support PUT and DELETE. It handles clients thatsupport a protocol defined in the docs.N.B.: When using this with TiddlyWebWiki, a client-side component isrequired as well. To this end, the following jQuery plugin can be usedas a TiddlyWiki plugin:http://github.com/FND/jquery/blob/master/jquery.methodhack.js
Package: tiddlywebplugins.migrate
migrate is a plugin for migrating the content of oneTiddlyWeb store to another. This can provide two functions:* Duplicating a store to the same format for use elsewhere, or backups.* Changing the format of the store from one StorageInterfaceimplementation to another (e.g. from text to sql).To use 'migrate' the tiddlywebconfig.py in the sourceinstance should be edited to add 'tiddlywebplugins.migrate' to'twanager_plugins' and to add a 'target_store' key.The 'target_store' key's value is the same form as'server_store', with the config information of thestore being migrated to.Here's an example that will migrate from the sql storeto the text store, with the data stored in a dir in/tmp:config = {'twanager_plugins': ['tiddlywebplugins.migrate'],'server_store': ['sql', {'db_config': 'sqlite:///test.db'}],'target_store': ['text', {'store_root': '/tmp/backupstore'}],}Once the configuration is set the twanager command is run:twanager migrateIf the store is large this may take some time.When tiddlers are migrated from one store to another, theyare stored as new revisions, so if the target store alreadyexists and has a tiddler of the same name in the same bag,it will create a new one, extending the revisions.Licensed as TiddlyWeb itself.For more information on TiddlyWeb see http://tiddlyweb.com/Copyright 2009, 2013 Chris Dent.
Package: tiddlywebplugins.mselect
This is a TiddlyWeb plugin which extends the TiddlyWeb filter syntax
to add ‘mselect’ which provides multiple selects in one selection. The
following example will select those tiddlers which have tag blog OR tag
published and then sort by modified time:mselect=tag:blog,tag:published;sort=-modifiedFor more information on TiddlyWeb seehttp://tiddlyweb.com
Package: tiddlywebplugins.mysql3
tiddlywebplugins.mysql3=======================_A plugin for [TiddlyWeb](http://tiddlyweb.com) subclassing[tiddlywebplugins.sqlalchemy3](https://github.com/cdent/tiddlywebplugins.sqlalchemy)with MySQL specifics._The main additions to sqlalchemy3 are:* Optionally extend the search interface using mysql's fulltext.* Support finding tiddlers that have geo.lat and geo.long fieldsnear a location.Setup-----MySQL 5.5 or beyond is required for full Unicode support.It is important to set some mysql my.cnf variables if you are usingthe fulltext indexing otherwise searches will likely fail.```[mysqld]ft_min_word_len = 3ft_stopword_file = ''```You will need to create a database:```create database tiddlyweb character set = utf8mb4 collate = utf8mb4_bin;```Make sure you `GRANT` appropriate `PRIVILEGES` on the database.Add the following to `tiddlywebconfig.py`:```'server_store': ['tiddlywebplugins.mysql', {'db_config': 'mysql:///tiddlyweb?charset=utf8mb4'}],'indexer': 'tiddlywebplugins.mysql', # optional```If you want to use the fulltext indexing capability you will need tocreate the fulltext index:```CREATE FULLTEXT INDEX tiddlytext ON text(text);```Also set `mysql.fulltext` to `True` in `tiddlywebconfig.py`. This makessure the text table will be `MyISAM`.Note that even if fulltext is not turned on, text searches will stillwork, but not as flexibly.See <http://tiddlyweb-sql.tiddlyspace.com/> for additional documentation andassistance.Thanks------Thanks to [Adrian Hosey](http://adrianhosey.blogspot.com/) for help oversome SQL humps.
Package: tiddlywebplugins.oom
This is a TiddlyWeb plugin which extends the TiddlyWeb filter syntax
to add ‘oom’ (One Of Many) which matches if the named attribute is any
of those named in the provided list. It is similar to
tiddlywebplugins.mselect but only matches the named attribute against
many values, not many possible attributes.This will return all tiddlers with tag blog or published (or both) and
then sort by modified:oom=tag:blog,published;sort=-modifiedFor more information on TiddlyWeb seehttp://tiddlyweb.com
Package: tiddlywebplugins.openid2
This is an OpenID challenger for TiddlyWeb that replaces the one thatwas originally included in the core TiddlyWeb package. It improves onthat one by using the python-openid package, thus supporting OpenID 2and improved discovery mechanisms.To use, add 'tiddlywebplugins.openid2' to auth_systems viatiddlywebconfig.py. The following example replaces all existingauth_systems with just openid.config = {'auth_systems': ['tiddlywebplugins.openid2'],}
Package: tiddlywebplugins.pathinfohack
A TiddlyWeb plugin that remedies an URI encoding problemencountered when running TiddlyWeb under Apache.The plugin reverts the path in the PATH_INFO variableto its undecoded form.The problem being addressed occurs with URIs containing%2F characters (encoded forward slashes).Currently Apache supplies the PATH_INFO variable in decoded form.As a result, all instances of %2F in the URI are replacedwith a / character in PATH_INFO. The Selector is thenthrown off since it depends on forward slashes to matchhandlers. No match, and the requested PUT, GET, DELETE,etc., operation goes unhandled.Install the plugin by adding 'tiddlywebplugins.pathinfohack' to'system_plugins' in tiddlywebconfig.py.config = {'system_plugins': ['tiddlywebplugins.pathinfohack'],}For more info on TiddlyWeb see http://tiddlyweb.com/
Package: tiddlywebplugins.pkgstore
Read and write tiddlers, bags, and recipes to a package’s resources.For use withTiddlyWebplugins which need
to have access to a predefined set of bags, recipes and tiddlers.The store is a slightly modified version of the default text store which
can be accessed read+write to build the resources during development,
or read only to use the resources during instance creation or other
situations.Copyright 2013, Chris Dent
BSD License
Package: tiddlywebplugins.plugins
tiddlywebplugins.plugins is a system_plugin for TiddlyWeb which
will read a file in the current instance as a list of additional
system_plugins to add to the instance.This is done so automation of the plugins currently in use in
an instance is more flexible.To use, add ‘tiddlywebplugins.plugins’ to system_plugins in
tiddlywebconfig.py. Add other system_plugins to a file named
‘extra_plugins’. This file can be overridden by setting ‘plugin_file’
in tiddlywebconfig.py.Copyright 2009 Chris Dent <cdent@peermore.com>, who was assuming
someone else was going to write this in their own efforts to better
manage configurations.Licensed under the same terms as TiddlyWeb itself.For more on TiddlyWeb seehttp://tiddlyweb.com/
Package: tiddlywebplugins.postgresql
tiddlywebplugins.postgresql===========================_A plugin for [TiddlyWeb](http://tiddlyweb.com) subclassing[tiddlywebplugins.sqlalchemy3](https://github.com/cdent/tiddlywebplugins.sqlalchemy)with postgresql specifics._Install-------To install the plugin and its requirements:```pip install -U tiddlywebplugins.postgresql```Setup-----You will need to create a database:```createdb tiddlyweb```Add the following to a new or existing `tiddlywebconfig.py`:```'server_store': ['tiddlywebplugins.postgresql', {'db_config': 'postgresql+psycopg2:///tiddlyweb'}],'indexer': 'tiddlywebplugins.postgresql', # optional```See <http://tiddlyweb-sql.tiddlyspace.com/> for additional documentation andassistance.Thanks------This work was sponsored by [Dr. Thomas + Partner](http://www.tup.com).License-------Copyright 2013 Peermore LimitedBSD (3-Clause) License
Package: tiddlywebplugins.prettyerror
A plugin for TiddlyWeb that provides prettier error messages
than the plain text straight exceptions provided by the
TiddlyWeb core.The content is provided by tiddlers containing templated HTML.The tiddlers are provided via a recipe called errors made up of
two bags. One contains the default error pages, the other is
initially empty such that the ADMIN of the instance can do what
they like.This software was developed for use with TiddlySpace. It should
be noted that using it can have a tendency to make logged error
messages more confusing than they might otherwise be.See tiddlywebplugins.pretterror.exceptor for details.
Package: tiddlywebplugins.privateer
A TiddlyWeb plugin for providing unauthed access to private resources
using “unguessable” URIs.A URI at a uuid provides an id for a mapping to another URI, internal
to the tiddlyweb server, with the active user being “faked”.This works out okay because:
* only GET is supported
* there’s no state that gets carried to the next requestTiddlers in a bag called PRIVATEER are used to maintain the mappings.
The title of the tiddler is the uuid. The tiddler has two fields:uri: the mapped to uriuser: the user to proxy the action asAn authenticated user can create a new mapping by making a POST
to /_ as either a JSON dictionary with a ‘uri’ key, or a CGI form
with a uri parameter.URIs are not checked, you can store what you like and the system
will happily do the internal redirect to it. If junk is stored, a
404 will result.An authenticated user can list their own mappings by doing a GET to
/_. A JSON dictionary of mappings to uris is returned. Only those
mappings which have a user that matches the currently active user
will be shown.A user can delete their own mapping by sending DELETE to the URI.
Package: tiddlywebplugins.recipeupdater
Update all the recipes that match a particular bag descriptor
with one or more bags that replace it. For example:twanager recipeupdate ‘/bags/foobar/tiddlers?select=bang’‘/bags/foobar/tiddlers’ ‘/bags/anotherbag/tiddlers?select=bag’To use, add ‘tiddlywebplugins.recipeupdater’ to twanager_plugins
in tiddlywebconfig.pyThis is a limited functionality early release.Licensed under the same terms as TiddlyWeb: BSD License.Copyright 2010 Chris Dent <cdent@peermore.com>
Package: tiddlywebplugins.redisstore
Experiment with using redis as a store for TiddlyWeb.You must be running a redis server for the tests to pass. The 'redis' modulefor Python is required. If you have hiredis, parsing will be improved.This code supports the full StorageInterface, including policies andtiddler revisions.It makes no assumptions about how you are managing your redis server.You will need to start that, and if you use any non-default configurationyou will need to put that in tiddlywebconfig.py. For example if you wantdo use db 5, then you could have:config = {'server_store': ['redisstore', {'db': 5}],}!ToDo* Consider using r->keys('tid:1:*') and similar to gather keys fordeletion. This may not be ideal though, as matching for keys whenthere are many may be expensive.* Dealing with keys that might have ':' in them.* Manage keys that operate as reverse indexes for things we mightlike to index_query, such as modifier, tags and fields. This hasnot been done thus far as diddling with that would distract fromgetting the core set of keys in place.* Consider reverse indexes for things like bags in recipes, andusers in policies. (Such things have been useful in TiddlySpace).Again these are not yet done so as to maintain focus.* See what the options are for pub/sub.!Copyright EtcCopyright 2011, Chris Dent <cdent@peermore.com>Released under the BSD License
Package: tiddlywebplugins.reflector
First stab at tiddlywebplugins.reflector, a reflector
plugin idea from Ben Gillies:Post a file to the reflector and it gets returned to the
browser with the content-type it was given.If you put the sending form in an iframe, then you can
gather up the content of the iframe and give it to
tiddlywiki for use in the import routines.
Package: tiddlywebplugins.register
An example user registration plugin for TiddlyWeb.What this does is validate an OpenID and then create a
TiddlyWeb user of that OpenID and assign a Role to it.
This allows the system to go beyond a Policy of ‘ANY’
to one of ‘R:MEMBER’. This is a way to provide member
access to people with openIds while not allowing all
openids.It uses a few optional configuration settings:register.role: The role assigned to newly registeredusers. Defaults to “MEMBER”.register.start_href: The link to send users to afterthey have registered. Defaults to “/”.register.start_title: The title of the link. Defaultsto “Get Started”.register.blacklist: A list of openids to never allowto register. Defaults to an empty list.Because tiddlywebplugins.templates is being used, the
register.html and registered.html templates may be overriden
per instance by creating a templates directory in the instance
directory and putting new versions of the templates in there.Copyright 2009, Chris Dent <cdent@peemore.com>Licensed under the same terms at TiddlyWeb itself.http://tiddlyweb.com/
Package: tiddlywebplugins.relativetime
Extension to tiddlyweb select filters to use relative time statements.Where a filter is:select=modifier:>2011one could expect either a tiddlywiki timestamp string, a fragment
thereof, or some numbers that end with ‘d’, ‘s’, ‘m’, ‘h’, ‘y’ (case
insensitive) meaning Days, Seconds, Minutes, Hours, Years. We don’t
worry about months. If the trailing letter is there, we translate it
into an absolute time in the past, relative to now.It’s important to note that the translation happens _before_ the > or
< is interpreted. So whileselect=modified:>1dat first glance reads as “select those entities with a modified more
than one day ago” it is actually, if we say today is 20110302, “select
those entities with a modified greater than 20110302” (i.e. those thing
modified within the last day).
Package: tiddlywebplugins.remotebag
A TiddlyWeb plugin that provides access to remote content as if it were a bag.The general purpose is to allow a recipe to contain a URI where a
bag name would normally go. If that URI is a remote TiddlyWeb bag
then the stuff on the end of the URI will be treated as JSON tiddlers.
Otherwise adaptor mechanisms can be coded in to process the content.
If there is no adaptor mechanism, then the stuff on the end is treated
as containing a single tiddler with type whatever the content-type of
the resource is.This is highly experimental stuff, and as currently formed results
in an open proxy on the TiddlyWeb server that uses it.Only publically available content is usable through this process.BSD Licensed
Copyright 2011, Chris Dent <cdent@peermore.com>See alsohttp://tiddlyweb.com/
Package: tiddlywebplugins.simplerizer
A base class for TiddlyWeb to simplify the development of serializers
in particular those which exchange bags, recipes and tiddlers as
representations in a _generic_ format, such as JSON, XML, YAML, etc.The simplerizer pacakge uses the dump and load objects to implement
all of the known core methods for exchanging representations with TiddlyWeb
resources. This contrasts with the core TiddlyWeb SerializionInterface
which throws “NotImplemented” exceptions for methods not explicity defined.
Both approaches may have merit, hence this being offered as a plugin.The following simplerizer based plugin is a replacement for the core
json serializer:from simplejson import dumps, loads
from tiddlywebplugins.simplerizer import Simplerization as SerializationInterfacedef init(config):# register the serializer
content_type = “text/json”
config[“extension_types”][“json”] = content_type
config[“serializers”][content_type] = [__name__, “text/json; charset=UTF-8”]class Serialization(SerializationInterface):“””Access TiddlyWeb resources using the JSON representation.”””def dump(self, object):“””Dump a dictionary object to a JSON string.”””
return simplejson.dumps(object)def load(self, input_string):“””Load a dictionary object from a JSON string.”””
return simplejson.loads(input_string)To use this code install the package and add ‘tiddlywebplugins.simplerizer’
to install_requires section of setup.py for your serializer package:install_requires = [‘setuptools’, ‘simplejson’, ‘tiddlyweb.simplerizer’, ‘tiddlyweb’],Created by Paul Downey, <psd@osmosoft.com>.http://blog.whatfettle.comThis package is licensed under the same terms as TiddlyWeb itself.