Skip to content

Python class for performing admin functions on FileMaker servers

License

Notifications You must be signed in to change notification settings

beezwax/filemaker-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages