beezwax / filemaker-admin

Python class for performing admin functions on FileMaker servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beezwax Logo

FileMaker-Admin

A Python class for managing a FileMaker 17 Server or FileMaker Cloud 17 server using its REST interface. Tested against Python verison 2.7.10.

A version including support for working with the fmsadmin command line tool is planned, but not yet implemented.

USAGE EXAMPLE

The following example will display all available database, schedule, and client information for a server.


# Used to format output & exceptions
import pprint, sys
pp = pprint.PrettyPrinter(indent=4)

####################################
hostname="hostname.domain.com"
account="youraccount"
password="serverpass"
cloudServer=True
####################################

try:
    fac = filemaker_admin_rest (hostname, account, password, usingCloud=cloudServer)
    pp.pprint (fac.list_databases())
    pp.pprint (fac.list_schedules())
    pp.pprint (fac.list_clients())
except:
    exType, exValue, exTraceback = sys.exc_info()
    print
    print "Error running script"
    print("Type : %s " % exType.__name__)
    print("Message : %s" %exValue)
    print

# If login was succesful be sure we kill session.
if 'fac' in globals():
    fac.logout()

=======

parent of 73f6b43... added example to README

References


Built by Beezwax

About

Python class for performing admin functions on FileMaker servers

License:MIT License


Languages

Language:Python 100.0%