Git Product home page Git Product logo

pysaxon's Introduction

PySaxon

Python interface to the Saxon/C Home Edition XML document processor library.

Note: The code is still in the very early stage of development. The API is not stable and can change after each commit.

Installation

The standard Python method is supported:

$ python setup.py install

Requirements:

  • Python 3 (support for Python 2 not yet verified)
  • Saxon/C Home Edition library (currently only available for Linux)
  • Python packages:
    • six
    • Cython
    • pytest (for testing only)

For Developers

Those interested in contributing to this project should consider using the Docker image with all the requirements already installed and the Saxon/C Home Edition library properly configured. Since the library is only available for Linux using this image will both ensure the consistency of the development environment as well as allow Mac and Windows users to work on their computers.

Here are the steps to set up the development environment:

  1. Change to a directory which will be used as the repository's base, let's call it SOME_DIRECTORY.

  2. Clone the PySaxon repository:

$ git clone https://github.com/ajelenak/pysaxon.git

There should be a pysaxon directory in SOME_DIRECTORY.

  1. Install and start Docker.

  2. Pull the Docker image:

$ docker pull ajelenak/pysaxon
  1. Start the image (create a Docker container):
$ docker run -it -v SOME_DIRECTORY:/opt/pysaxon ajelenak/pysaxon

If all the above steps were successful, the running Docker container should have the PySaxon repository available at /opt/pysaxon.

  1. Change directory to /opt/pysaxon.

  2. Build the PySaxon package:

$ python setup.py develop
  1. [Optional] Run the tests:
$ python setup.py test

pysaxon's People

Contributors

ajelenak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pysaxon's Issues

How to install pysaxon using pip3?

I try to install library into my project using next way:

pip3 install -r requirements.txt

My requirements.txt contains:

six
cython
git+https://github.com/ajelenak/pysaxon.git

But installations fails:

Collecting git+https://github.com/ajelenak/pysaxon.git (from -r /var/www/gost/gost/requirements.txt (line 20))
Cloning https://github.com/ajelenak/pysaxon.git to /tmp/pip-zkz6pq1u-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-zkz6pq1u-build/setup.py", line 8, in
from Cython.Build import cythonize
ImportError: No module named 'Cython'

What is wrong?

ps
Question on Stackoverflow

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.