Code Monkey home page Code Monkey logo

indexator's Introduction

Indexator

Indexator is a powerful index for quick search. Data is stored in a simple DB, like gdbm, berkelyDB or Tokyo cabinet, with a specific index format. Indexator doesn't handle well delete, but it's very efficient for selecting and counting. Its primary target is log analysis.

http://www.facebook.com/note.php?note_id=89508453919

Install

easy_install -U pyparsing
easy_install -U pytc

Usage

You need a library:

library = Library('/tmp/index.test')

and some documents:

document = Document()
document['name'] = 'Robert'
document['score'] = 42
document['tags'] = ('machin', 'truc', 'simple')
document.set('data', inverse=False)

Document can act as a dictionnary (with string keys), or with a set when you need to specify informations. Field value can be unique or a collection.

You can now add it to the library:

library.append(document)

And querying it:

for document in library.documents(library.query("score:42 and tags:simple")):
  print document

Modules

Bitset

A bitset is a large ordered collection of boolean. It handles booleans operations, and, or, xor, not and cardinality. Bitset can be stored and load. Compression is handled.

http://en.wikipedia.org/wiki/Bitmap_index

Library

A library handles collection of documents. A document is a collection of fields. The library stores documents and manage an inversed index. Tokyo Cabinet handles the storage.

Log

A simple parser for apache formated data. Common and combined format can be used.

User-agent

A fast parser to handle user-agent. Datas comes from http://browsers.garykeith.com/ .

Graph

A simple wrapper to make full HTML graph with javascript and canvas only : flot.

indexator's People

Stargazers

 avatar aaron avatar Angus H. avatar Mathieu Lecarme avatar

Watchers

Mathieu Lecarme avatar James Cloos avatar  avatar

indexator's Issues

Security Policy violation SECURITY.md

This issue was automatically created by Allstar.

Security Policy Violation
Security policy not enabled.
A SECURITY.md file can give users information about what constitutes a vulnerability and how to report one securely so that information about a bug is not publicly visible. Examples of secure reporting methods include using an issue tracker with private issue support, or encrypted email with a published key.

To fix this, add a SECURITY.md file that explains how to handle vulnerabilities found in your repository. Go to https://github.com/athoune/indexator/security/policy to enable.

For more information, see https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository.


This issue will auto resolve when the policy is in compliance.

Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.