This modifies the default User-Agent to include package details: python closeio v{VERSION} {DEFAULT}
Also breaks out the version constant into its' own version file. This helps to reduce the change of inconsistent versions, while also making it easy to add the seudo-standard __version__ attribute :)
Testing
Setup a simple server script to dump headers when making calls with the client. Then loaded the modified closeio_api and the output of the dump confirms this is working.
In response to https://github.com/closeio/closeio-api/issues/80.
This modifies the default
User-Agent
to include package details:python closeio v{VERSION} {DEFAULT}
Also breaks out the version constant into its' own version file. This helps to reduce the change of inconsistent versions, while also making it easy to add the seudo-standard
__version__
attribute :)Testing
Setup a simple server script to dump headers when making calls with the client. Then loaded the modified closeio_api and the output of the dump confirms this is working.