Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

inxs – A Python framework for XML transformations without boilerplate.

inxs is inexcessive.

inxs is not XSLT.

inxs is ISC-licensed.

inxs is fully documented here: https://inxs.readthedocs.io/en/latest/

https://img.shields.io/pypi/v/inxs.svg https://img.shields.io/pypi/l/inxs.svg https://img.shields.io/pypi/pyversions/inxs.svg https://img.shields.io/travis/funkyfuture/inxs/master.svg https://coveralls.io/repos/github/funkyfuture/inxs/badge.svg

At a glimpse

Solving the Wikipedia XSLT example #1:

def extract_person(element):
    return element.attrib['username'], element.find('name').text

def append_person(previous_result, result):
    lxml_utils.subelement(result, 'name', {'username': previous_result[0]},
                          text=previous_result[1])

transformation = Transformation(
    Rule('person', (extract_person, append_person)),
    result_object='context.result', context={'result': etree.Element('root')})

# that's five (or not counting line-breaks: nine) lines less sloc
# than the XSLT implementation

Solving the Wikipedia XSLT example #2:

def generate_skeleton(context, e):
    context.persons_list = e.ul()
    context.html = e.html(
        e.head(e.title('Testing XML Example')),
        e.body(e.h1('Persons'), context.persons_list))

def extract_person(element, persons):
    persons.append((element.find('name').text, element.find('family-name').text))

def list_persons(previous_result, persons_list, e):
    persons_list.extend(e.li(f'{x[1]}, {x[0]}') for x in previous_result)

transformation = Transformation(
    lib.init_elementmaker(namespace='http://www.w3.org/1999/xhtml'),
    generate_skeleton,
    Rule('person', extract_person),
    lib.sorter('persons', itemgetter(1)),
    list_persons,
    result_object='context.html', context={'persons': []})

# that's eight (or not counting line-breaks: thirteen) lines less sloc
# than the XSLT implementation

Here you can find the source repository and issue tracker of inxs.

History

0.1b1 (2017-06-25)

  • new: Allows the definition that any rule must match per transformation as common_rule_conditions.

  • Minor improvements and fixes.

0.1b0 (2017-06-19)

  • First beta release.

0.1a0 (2017-05-02)

  • First release on PyPI.

Metadata

Release files for inxs 0.1b2.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inxs 0.1b2.dev2
File Size Uploaded Provenance Actions
inxs-0.1b2.dev2.tar.gz 42.7 kB Without provenance Details for inxs-0.1b2.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inxs 0.1b2.dev2
File Interpreter ABI Platform Actions
inxs-0.1b2.dev2-py3-none-any.whl Python 3 none any Details for inxs-0.1b2.dev2-py3-none-any.whl

Total release size: 61.7 kB

Release files / inxs-0.1b2.dev2.tar.gz

Download URL inxs-0.1b2.dev2.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
250cff5deec8cf54ab195ba562cfa48b4ad0ccb4a8da3b8b5795224ee8065fc6
BLAKE2b-256 checksum
How to use checksums
5ffce0eac00d1a0028e7355fe7afb96b9badb613f159fe53c9aaa5d96f0b07b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / inxs-0.1b2.dev2-py3-none-any.whl

Download URL inxs-0.1b2.dev2-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
950e5ca2b8a99e7eb5282347f22ddd8de02ac94732962715553ce168e3a29f1c
BLAKE2b-256 checksum
How to use checksums
3c4b9aa31dc6e9755558a34a2193b68d5cb85f414ba90f15f0d108c63e749287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for inxs 0.1b2.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page