Access FileMaker(tm) Server Databases
Project description
Access FileMaker(tm) Server 8 Advanced databases via XML publishing interface.
FileMaker is a registered trademark of FileMaker Inc.
- Author:
- Organization:
Laboratory for Fluorescence Dynamics. University of California, Irvine
- Version:
2018.8.15
Requirements
Revisions
- 2018.8.15
Move module into fmkr package.
- 2018.5.25
Use lxml instead of minidom to parse FMPXMLResult. Improve string representations of FMPXMLResult and FMField. Update error codes. Drop support for Python 2.
- 2006.10.30
Initial release.
References
Examples
>>> from fmkr import FM, FMError >>> fmi = FM('filemaker.domain.com', 80, 'http') >>> fmi.set_db_data('database', 'layout', maxret=5) >>> fmi.set_db_password('fmuser', 'password') >>> # create a new record >>> fmi.add_db_param('FIRST', 'John') >>> fmi.add_db_param('LAST', 'Doe') >>> fmi.fm_new() >>> # find and sort records >>> fmi.add_db_param('LAST', 'Doe', 'bw') >>> fmi.add_sort_param('LAST', 'ascend', 1) >>> fmi.add_sort_param('FIRST', 'ascend', 2) >>> result = fmi.fm_find() >>> for record in result.resultset: ... print(record['FIRST'], record['LAST']) John Doe >>> # delete record >>> recid = result.resultset[0]['RECORDID'] >>> fmi.set_record_id(recid) >>> fmi.fm_delete() >>> # catch an exception >>> try: ... fmi.add_db_param('LAST', 'Doe', 'cn') ... fmi.fm_find() ... except FMError as e: ... print(e) FileMaker Error 401: No records match the request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fmkr-2018.8.15.tar.gz
(13.2 kB
view hashes)
Built Distribution
fmkr-2018.8.15-py3-none-any.whl
(12.4 kB
view hashes)