Main > Free Download Search >

Free attributes software for linux

attributes

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 638
File::Attributes 0.04

File::Attributes 0.04


File::Attributes is a Perl module to manipulate file metadata. more>>
File::Attributes is a Perl module to manipulate file metadata.

SYNOPSIS

use File::Attributes qw(set_attribute list_attributes get_all_attributes);

my $file = foo.txt;
set_attribute($file, type => text/plain);
set_attribute($file, encoding => utf8);

my @attributes = list_attributes($file);
# @attributes = qw(type encoding)

%attributes = get_attributes($file);
# $attributes{type} will be text/plain
# $attributes{foo} will be undefined.

File::Attributes is a wrapper around modules in the File::Attributes hierarchy. If you use this module directly (instead of one of the aforementioned decendants), then your attribute manipulations will Just Work, regardless of the underlying filesystem.

Module::Pluggable is used to find all File::Attributes:: modules that inherit from File::Attributes::Base and that are applicable on your system. If it finds one, it uses that. If not, it uses File::Attributes::Simple, which is bundled with this module and works everywhere.

As of version 0.04, plugins are now set up per-file, not per-system. This means that if you have File::Attributes::Extended installed, extended attributes will be used where available, but Simple attributes will be used on files where extended attributes dont work (a FAT filesytem on a Linux machine, for example). Existing simple attributes will be read even if extended attributes are available, but writes will affect only the extended attributes.

This means that you can switch to a better attribute plugin at any time, without losing any old data!

<<less
Download (0.030MB)
Added: 2007-04-25 License: Perl Artistic License Price:
912 downloads
Class::Declare::Attributes 0.04

Class::Declare::Attributes 0.04


Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes. more>>
Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes.

SYNOPSIS

package My::Class;

use 5.006;
use strict;
use warnings;

use base qw( Class::Declare::Attributes );

# declare the class/instance attributes
__PACKAGE__->declare( ... );

#
# declare class/static/restricted/etc methods of this package
#

sub my_abstract : abstract { ... }
sub my_class : class { ... }
sub my_static : static { ... }
sub my_restricted : restricted { ... }
sub my_public : public { ... }
sub my_private : private { ... }
sub my_protected : protected { ... }

Class::Declare::Attributes extends Class::Declare by adding support for Perl attributes for specifying class method types. This extension was inspired by Damian Conways Attribute::Handlers module, and Tatsuhiko Miyagawas Attribute::Protected module. The original implementation used Attribute::Handlers, but now simply refers to attributes.

The addition of Perl attribute support (not to be confused with object attributes, which are entirely different, and also supported by Class::Declare) greatly simplifies the specification of Class::Declare-derived class and instance methods. This should aid in the porting of existing code (Perl, Java and C++) to a Class::Declare framework, as well as simplify the development of new modules.

With the addition of Perl attributes, Class::Declare methods can now be written as

sub method : public
{
my $self = shift;
...
}
instead of
sub method
{
my $self = __PACKAGE__->public( shift );
...
}

<<less
Download (0.021MB)
Added: 2007-06-20 License: Perl Artistic License Price:
857 downloads
File::Attributes::Recursive 0.02

File::Attributes::Recursive 0.02


File::Attributes::Recursive module contains inherit file attributes from parent directories. more>>
File::Attributes::Recursive module contains inherit file attributes from parent directories.
SYNOPSIS
Works like File::Attributes, but will recurse up the directory tree until a matching attribute is found.
EXPORT
None, by default. Specify the functions youd like to use as arguments to the module. :all means export everything.
FUNCTIONS
get_attribute_recursively($file, [$top], $attribute)
Returns the value of attribute $attribute. If $top is specified, then the search will terminate when the path no longer contains $top. (i.e. if $file is /foo/bar/baz/quux and $top is
get_attributes_recursively($file, [$top])
Returns a hash of key value pairs for all attributes that apply to $file. Only the closest attributes are returned. Given:
/a (a = yes, foo = bar)
/a/b (b = yes, foo = baz)
/a/b/c (c = yes)
get_attributes_recursively(/a/b/c, /a) will return:
(a => yes, b => yes, c => yes, foo => baz).
The foo => bar is masked by the "closer" foo => baz.
list_attributes_recursively($file, [$top])
Returns a list of attributes that are defined and apply to $file. Like keys get_attributes_recursively($file, [$top]), but faster.
NOTABLY ABSENT FUNCTIONS
unset_attribute_recursively
There are two possible ways for this function to behave -- either recurse until the attribute is removed, or recurse to top, removing the attribute at each level. The first doesnt make sense, and the second is dangerous. If you need this function, write it for the specific needs of your application; I think thats the safest thing to do.
(Note that rm refuses to rm .., so I think theres some precedent here.)
Enhancements:
- Perl
<<less
Download (0.025MB)
Added: 2007-07-25 License: Perl Artistic License Price:
821 downloads
Extended attributes for Python 0.1.3

Extended attributes for Python 0.1.3


Extended attributes for Python is a Python module created to manipulate extended attributes in filesystems that support them. more>>
Extended attributes for Python is a Python module that can manipulate extended attributes in filesystems that support them.

<<less
Download (0.012MB)
Added: 2005-12-03 License: GPL (GNU General Public License) Price:
1420 downloads
Be::Attribute 0.1

Be::Attribute 0.1


Be::Attribute is a Perl module to get and set MIME file attributes. more>>
Be::Attribute is a Perl module to get and set MIME file attributes.

SYNOPSIS

use Be::Attribute;
$node = Be::Attribute::GetBNode("/my/file/here");
@attrs = Be::Attribute::ListAttrs($node);
for $i (@attrs) {
print "$i - ", Be::Attribute::ReadAttr($node, $i), "n";
}
Be::Attribute::CloseNode($node);

Get (or set) MIME file attributes.

USAGE

lookit the synopsis. look at example.pl. Look at the .xs code. Read the Node webpage.

<<less
Download (0.003MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
Attribute::Handlers 0.85

Attribute::Handlers 0.85


Attribute::Handlers is a multi-purpose, highly customizable Linux programming tool. more>> Attribute:Handlers 0.85 is a multi-purpose, highly customizable Linux programming tool. This module, when inherited by a package, allows that package's class to define attribute handler subroutines for specific attributes. Variables and subroutines subsequently defined in that package, or in packages derived from that package may be given attributes with the same names as the attribute handler subroutines, which will then be called in one of the compilation phases (i.e. in a BEGIN, CHECK, INIT, or END block). (UNITCHECK blocks don't correspond to a global compilation phase, so they can't be specified here.)

To create a handler, define it as a subroutine with the same name as the desired attribute, and declare the subroutine itself with the attribute.

<<less
Added: 2009-07-26 License: Perl Artistic License Price: FREE
downloads
Getopt::Attribute 1.3.2

Getopt::Attribute 1.3.2


Getopt::Attribute is a Perl module to attribute wrapper for Getopt::Long. more>>
Getopt::Attribute is a Perl module to attribute wrapper for Getopt::Long.

SYNOPSIS

use Getopt::Attribute;

our $verbose : Getopt(verbose!);
our $all : Getopt(all);
our $size : Getopt(size=s);
our $more : Getopt(more+);
our @library : Getopt(library=s);
our %defines : Getopt(define=s);
sub quiet : Getopt(quiet) { our $quiet_msg = seen quiet }
usage() if our $man : Getopt(man);
...

# Meanwhile, on some command line:

mypgm.pl --noverbose --all --size=23 --more --more --more --quiet
--library lib/stdlib --library lib/extlib
--define os=linux --define vendor=redhat --man -- foo

Note: This version of the module works works with perl 5.8.0. If you need it to work with perl 5.6.x, please use an earlier version from CPAN.
This module provides an attribute wrapper around Getopt::Long. Instead of declaring the options in a hash with references to the variables and subroutines affected by the options, you can use the Getopt attribute on the variables and subroutines directly.

As you can see from the Synopsis, the attribute takes an argument of the same format as you would give as the hash key for Getopt::Long. See the Getopt::Long manpage for details.

Note that since attributes are processed during CHECK, but assignments on newly declared variables are processed during run-time, you cant set defaults on those variables beforehand, like this:

our $verbose : Getopt(verbose!) = 1; # DOES NOT WORK
Instead, you have to establish defaults afterwards, like so:
our $verbose : Getopt(verbose!);
$verbose ||= 1;
Alternatively, you can specify a default value within the Getopt attribute:
our $def2 : Getopt(def2=i 42);

<<less
Download (0.003MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
Object::Relation::Meta::Attribute::Schema 0.1.0

Object::Relation::Meta::Attribute::Schema 0.1.0


Object::Relation::Meta::Attribute::Schema is a Perl module for Object::Relation database store builder. more>>
Object::Relation::Meta::Attribute::Schema is a Perl module for Object::Relation database store builder.

Synopsis

# Assuming MyThingy was generated by Object::Relation::Meta and that were building
# a data store schema.
my $class = MyThingy->my_class;

print "nAttributes:n";
for my $attr ($class->attributes) {
print " o ", $attr->name, $/;
print " Column: ", $attr->column, $/;
if (my $idx = $attr->index) {
print " Index: $idxn";
}
if (my $ref = $attr->references) {
print " References ", $ref->package, $/;
print " On Delete: ", $attr->on_delete, $/;
}
}

This module is provides metadata for all Object::Relation class attributes while building a storage schema. Loading Object::Relation::Schema causes it to be used instead of Object::Relation::Meta::Attribute. This is so that extra metadata methods are available that are useful in constructing the schema, but are not otherwise useful when an application is actually in use.

<<less
Download (0.23MB)
Added: 2006-09-26 License: Perl Artistic License Price:
1123 downloads
HTTPD::Authen 1.66

HTTPD::Authen 1.66


HTTPD::Authen is a HTTP server authentication class. more>>
HTTPD::Authen is a HTTP server authentication class.

SYNOPSIS

use HTTPD::Authen ();

This module provides methods for authenticating a user. It uses HTTPD::UserAdmin to lookup passwords in a database. Subclasses provide methods specific to the authentication mechanism.

Currently, under HTTP/1.0 the only supported authentication mechanism is Basic Authentication. NCSA Mosaic and NCSA HTTPd understand the proposed Message Digest Authentication, which should make it into the HTTP spec someday. This module supports both.

METHODS

new ()

Since HTTPD::Authen uses HTTPD::UserAdmin for database lookups it needs many of the same attributes. Or, if the first argument passed to the new() object constructor is a reference to an HTTPD::UserAdmin, the attributes are inherited.

The following attributes are recognized from HTTPD::UserAdmin:

DBType, DB, Server, Path, DBMF, Encrypt
And if you wish to query an SQL server: Host, User, Auth, Driver, UserTable, NameField, PasswordField
The same defaults are assumed for these attributes, as in HTTPD::UserAdmin. See HTTPD::UserAdmin for details.

$authen = new HTTPD::Authen (DB => "www-users");

basic()

Short-cut to return an HTTPD::Authen::Basic object.

$basic = $authen->basic;

digest()

Short-cut to return an HTTPD::Authen::Digest object.

$digest = $authen->digest;

type($authorization_header_value)

This method will guess the authorization scheme based on the Authorization header value, and return an object bless into that schemes class.

By using this method, it is simple to authenticate a user without even knowing what scheme is being used:

$authtype = HTTPD::Authen->type($authinfo);
@info = $authtype->parse($authinfo)
if( $authtype->check(@info) ) {
#response 200 OK, etc.
}

<<less
Download (0.11MB)
Added: 2007-03-21 License: GPL (GNU General Public License) Price:
948 downloads
Tactical Rogue 0.1.1

Tactical Rogue 0.1.1


Tactical Rogue is a tactical roguelike game. more>>
Tactical Rogue game aims to take the best of two very interesting concepts and merge them together, namely, the variety and endlessness of rogue and the strategic elements of Tactics Ogre/Final Fantasy Tactics.

Basically this means well be autogenerating vast amounts of items, weapons and armors, autogenerating dungeon labyrinths and autogenerating monsters based on set profiles. Then, we will use these autogenerated worlds and enforce a strategical/tactical engine based upon many simply attributes such as speed, movement, agility, strength, dexterity, wisdom, intelligence, hp, mp, level, class and experience. The game will run semi-realtime, in the sense that time progresses until someones wait-time reaches zero allowing them to move/act which will then reset their wait-time to its maximum value based upon the characters traits and attributes.

The game will be developed under linux using sdl and c++, using .png for graphical storage of sprites and aminations and .ogg (vorbis) for storage of sound effects and music. All files, be it code, music or sprites will be licenced in a license compatible with the GPL, most likely under the GPL.

<<less
Download (2.9MB)
Added: 2007-05-14 License: Freeware Price:
893 downloads
PyHtmlTable 1.13

PyHtmlTable 1.13


PyHtmlTable is a class for Python CGIs to generate HTML tables on the fly. more>>
PyHtmlTable is a class for Python CGIs to generate HTML tables on the fly. The reason that i made this script is I couldnt find something like Table.pm or Table.php
Main features:
- Allows setting of individual row and cell attributes via arbitrary dictionaries
- Allows spanning of rows and columns
- Autogrows table if cells set outside initial Range.
- Allows dynamic insertion of new rows and columns anywhere in the table
- Allows bulk population of table data via arrays to arbitrary locations in the table.
- Provides default cell attributes for tablewide uniformity and the ability to override these on a cell by cell basis.
- NOTE: Row indexes start at 0 like God and Kernighan demand!
- Influenced heavily by Table.pm and Table.php
<<less
Download (0.011MB)
Added: 2006-06-22 License: GPL (GNU General Public License) Price:
1221 downloads
Class::ObjectTemplate 0.7

Class::ObjectTemplate 0.7


Class::ObjectTemplate is a Perl extension for an optimized template builder base class. more>>
Class::ObjectTemplate is a Perl extension for an optimized template builder base class.

SYNOPSIS

package Foo;
use Class::ObjectTemplate;
require Exporter;
@ISA = qw(Class::ObjectTemplate Exporter);

attributes(one, two, three);

# initialize will be called by new()
sub initialize {
my $self = shift;
$self->three(1) unless defined $self->three();
}

use Foo;
$foo = Foo->new();

# store 27 in the one attribute
$foo->one(27);

# check the value in the two attribute
die "should be undefined" if defined $foo->two();

# set using the utility method
$foo->set_attribute(one,27);

# check using the utility method
$two = $foo->get_attribute(two);

# set more than one attribute using the named parameter style
$foo->set_attributes(one=>27, two=>42);

# or using array references
$foo->set_attributes([one,two],[27,42]);

# get more than one attribute
@list = $foo->get_attributes(one, two);

# get a list of all attributes known by an object
@attrs = $foo->get_attribute_names();

# check that initialize() is called properly
die "initialize didnt set three()" unless $foo->three();

Class::ObjectTemplate is a utility class to assist in the building of other Object Oriented Perl classes.

It was described in detail in the OReilly book, "Advanced Perl Programming" by Sriram Srinivasam.

<<less
Download (0.006MB)
Added: 2006-10-05 License: Perl Artistic License Price:
1115 downloads
Graph::Writer::TGXML 0.01

Graph::Writer::TGXML 0.01


Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML. more>>
Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML.

SYNOPSIS

use Graph;
use Graph::Writer::TGXML;

$graph = Graph->new();
# add edges and nodes to the graph

$writer = Graph::Writer::TGXML->new();
$writer->write_graph($graph, mygraph.xml);

Graph::Writer::TGXML is a class for writing out a directed graph in a format suitable for use with TouchGraphs LinkBrowser. The graph must be an instance of the Graph class, which is actually a set of classes developed by Jarkko Hietaniemi.

The XML format contains Nodes and Edges. For nodes, the label, URL and tooltip attributes are used, for label, url and hint respectively. For edges, no attributes are currently used.

METHODS

new()

Constructor - generate a new writer instance.

$writer = Graph::Writer::TGXML->new();

This doesnt take any arguments.

write_graph()

Write a specific graph to a named file:

$writer->write_graph($graph, $file);

The $file argument can either be a filename, or a filehandle for a previously opened file.

<<less
Download (0.004MB)
Added: 2007-06-18 License: Perl Artistic License Price:
863 downloads
XML::DOM::Attr 1.44

XML::DOM::Attr 1.44


XML::DOM::Attr is an XML attribute in XML::DOM. more>>
XML::DOM::Attr is an XML attribute in XML::DOM.

XML::DOM::Attr extends XML::DOM::Node.

The Attr nodes built by the XML::DOM::Parser always have one child node which is a Text node containing the expanded string value (i.e. EntityReferences are always expanded.) EntityReferences may be added when modifying or creating a new Document.

The Attr interface represents an attribute in an Element object. Typically the allowable values for the attribute are defined in a document type definition.

Attr objects inherit the Node interface, but since they are not actually child nodes of the element they describe, the DOM does not consider them part of the document tree. Thus, the Node attributes parentNode, previousSibling, and nextSibling have a undef value for Attr objects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more efficient to implement such features as default attributes associated with all elements of a given type.

Furthermore, Attr nodes may not be immediate children of a DocumentFragment. However, they can be associated with Element nodes contained within a DocumentFragment. In short, users and implementors of the DOM need to be aware that Attr nodes have some things in common with other objects inheriting the Node interface, but they also are quite distinct.

The attributes effective value is determined as follows: if this attribute has been explicitly assigned any value, that value is the attributes effective value; otherwise, if there is a declaration for this attribute, and that declaration includes a default value, then that default value is the attributes effective value; otherwise, the attribute does not exist on this element in the structure model until it has been explicitly added. Note that the nodeValue attribute on the Attr instance can also be used to retrieve the string version of the attributes value(s).

In XML, where the value of an attribute can contain entity references, the child nodes of the Attr node provide a representation in which entity references are not expanded. These child nodes may be either Text or EntityReference nodes. Because the attribute type may be unknown, there are no tokenized attribute values.

<<less
Download (0.11MB)
Added: 2006-07-20 License: GPL (GNU General Public License) Price:
1191 downloads
Halipeto 2.0

Halipeto 2.0


Halipeto is a system for generating web pages from templates and a database. more>>
Halipeto is a system for generating web pages from templates and a database. The project includes support for a simple database based on text files and could easily be extended to access information via SQL.
In other words, its a Haskell based Content Management System (a rather simple, but very flexible one).
Demonstration code and data is included to generate a part of the pancito web site.
Templates are XHTML with additional element attributes. Attributes are associated with Haskell functions. So, for example:
< p hal:text="hello {customer.name}" / >
is transformed to (asuming that the database contains the value "andrew" for customer.name):
< p >hello andrew< /p >
More complex functionality, including iterating over data, is also available. The system can be extended further by adding user-defined Haskell functions.
Enhancements:
- Updated to use new package names for HaXml.
<<less
Download (0.55MB)
Added: 2007-03-01 License: GPL (GNU General Public License) Price:
967 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5