trompamusic / trompace-client

A python library to read from and write to the Trompa CE
Apache License 2.0
1 stars 0 forks source link

Use CE client from external configuration file #39

Closed aggelosgkiokas closed 4 years ago

aggelosgkiokas commented 4 years ago

How is it possible to use the client for other than default local CE?

alastair commented 4 years ago

I've updated the example in the readme: https://github.com/trompamusic/trompa-ce-client/blob/2fcad51a59d0337f2d824ee24a64acf42c0666fb/README.md#using-the-library

You can copy the file 'trompace.ini' anywhere, and pass this full path to config.load(). If you want to use a different CE, change the host and secure items in the config file. For the MTG CE you should use:

[server]
host = trompa-mtg.upf.edu/ce/
secure = true