No description
Find a file
2023-06-25 22:32:30 +03:00
docs Move parameter type hints to description in docs 2023-05-27 19:55:32 +03:00
examples remove support for yaml 2022-01-17 11:44:16 +03:00
tests Convert lxml support test into a expected failed test 2023-05-15 21:08:24 +03:00
.gitignore Ignore vscode settings 2023-05-15 20:48:28 +03:00
.readthedocs.yml update readthedocs configuration 2022-12-24 20:22:52 +03:00
CHANGES.rst Drop support for Python 3.7 2023-05-02 20:30:35 +03:00
LICENSE.txt changed license to LGPL 2016-08-10 11:18:58 +03:00
piculet.py Move parameter type hints to description in docs 2023-05-27 19:55:32 +03:00
pyproject.toml Change docs organization to Sphinx default 2023-05-15 20:25:59 +03:00
README.rst Move parameter type hints to description in docs 2023-05-27 19:55:32 +03:00
requirements-dev.txt Update development requirements 2023-06-10 13:21:56 +03:00
requirements.txt remove dependency on typing_extensions 2023-02-04 23:03:51 +03:00
setup.cfg Switch from flit to setuptools 2023-05-02 20:46:30 +03:00

Piculet
=======

Piculet is a module for extracting data from XML or HTML documents
using XPath queries.
It consists of a `single source file`_ with no dependencies
other than the standard library.
If available, it will make use of the lxml package
for improved performance and better XPath support.

Piculet is used for the parsers
of the `Cinemagoer <https://github.com/cinemagoer/cinemagoer>`_ project.

.. _single source file: https://github.com/uyar/piculet/blob/master/piculet.py

Getting started
---------------

Piculet works with Python 3.8 and later versions.
You can install it using ``pip``::

    pip install piculet

Installing Piculet creates a script named ``piculet``
which can be used to invoke the command line interface::

   $ piculet -h
   usage: piculet [-h] [--version] [--html] -s SPEC [document]

For example, say you want to extract some data from the file `shining.html`_.
An example specification is given in `movie.json`_.
Download both of these files and run the command::

   $ piculet -s movie.json shining.html

.. _shining.html: https://github.com/uyar/piculet/blob/master/examples/shining.html
.. _movie.json: https://github.com/uyar/piculet/blob/master/examples/movie.json

Getting help
------------

The documentation is available on: https://piculet.readthedocs.io/

The source code can be obtained from: https://github.com/uyar/piculet

License
-------

Copyright (C) 2014-2023 H. Turgut Uyar <uyar@tekir.org>

Piculet is released under the LGPL license, version 3 or later.
Read the included `LICENSE.txt`_ file for details.

.. _LICENSE.txt: https://github.com/uyar/piculet/blob/master/LICENSE.txt