Giter Club home page Giter Club logo

python-simplexquery's Introduction

python-simplexquery

A simple native XQuery processing module using xqilla.

Usage

import simplexquery as sxq
print(sxq.execute("<body>{string(/user)}</body>", "<user>Taro</user>"))

For more details, see examples/example.py

License

Apache License Version 2.0

(Because all of dependencies use the license)

Install by easy_install

easy_install python-simplexquery

You can install on both Python3.x and Python2.x

Requires for build

  • python (2.x, 3.x)
  • xqilla (2.0.0 - 2.2.4)
  • xerces-c (2.8.x, 3.1.x)

Build from source

python setup.py bdist_egg

For Ubuntu

ppa is now available for ubuntu 10.04 lucid

sudo apt-add-repository ppa:bellbind/python-simplexquery
apt-get update
apt-get install python-simplexquery

For Windows

You can download stable installer exes from PyPI python-simplexquery.

More new versions may be avaiable from github download

For building modules yourself, see doc/HOWTO-BUILD-ON-WINDOWS.md

Concept of the module

This module is designed for using XQuery on python easily, so the module:

  • only provides stateless functions which only use python builtins objects
  • will not support external functions by python callable because the values handled by XQuery function are based on DOM
  • is aimed for a comprehensible example for native modules with: multi python version, closs platform with warningless code, module with external c++ libraries, well managed resources (memory alloc, reference count, exceptions), packaging strategy for every platform, distribution for source and package

Resources

python-simplexquery's People

Contributors

bellbind avatar

Stargazers

Arnav Goel avatar

Watchers

Arnav Goel avatar

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.