Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A Python database interface for eXist-db

Project description

snakesist Documentation Status

snakesist is a Python database interface for eXist-db. It supports basic CRUD operations and uses delb for representing the yielded resources.

pip install snakesist

Usage example

from snakesist import ExistClient

db = ExistClient()

db.root_collection = '/db/foo/bar'
# the client will only query from this point downwards

names = db.retrieve_resources('//*:persName')
# note the namespace wildcard in the XPath expression

# append 'Python' to all names which are 'Monty' and delete the rest
for name in names:
    if name.node.full_text == 'Monty':
        name.node.append_child(' Python')

Your eXist instance

snakesist leverages the eXist RESTful API for database queries. This means that allowing database queries using the _query parameter of the RESTful API is a requirement in the used eXist-db backend. eXist allows this by default, so if you haven’t configured your instance otherwise, don’t worry about it.

snakesist is tested with eXist 4.7.1 and is not compatible yet with eXist 5.0.0.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for snakesist, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size snakesist-0.1.1-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size snakesist-0.1.1.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page