Source

doko / doko / __init__.py

Author Commit Message Labels Comments Date
Lars Yencken
Pull location source into core tuple. Also put responsibility for serializing and deserialising locations into the Location class.
Lars Yencken
Clean up pull request. - Use mtime as cache timestamp - Only cache output of non-cache strategy - Also return strategy from location method - Strip trailing main() call on import - Style linting
Richo Healey
Cache the raw location data, even if we're asked for less precision
Richo Healey
Use a filebacked cache for up to 30 mins
Lars Yencken
Move backoff logic into top-level method.
Lars Yencken
Have --show respect precision.
Lars Yencken
Style linting.
Lars Yencken
Fix typo in backoff strategy use.
Richo Healey
Use DOKO_PRECISION environment variable to globally set precision
Richo Healey
Implement a --precision flag to allow some privacy
Richo Healey
Presentation should be the concern of a Location This change brings the output format inline with whereami(1) and also selfishly serves to make it work with the applications I've already developed
Richo Healey
Have doko use strategies in order, configurably This also should complete the changes needed to make it do reasonable things on windows and linux
Richo Healey
Work without CoreLocation on non-darwin platforms
Richo Healey
Implement a request timeout on the geoip handler
Lars Yencken
Back off to GeoBytes page for external geocoding.
Lars Yencken
An initial implementation of doko.