Commit graph

65 commits

Author SHA1 Message Date
Kevin
02711463a3 Add tests for 'getTraffic' and 'getTrafficById' 2022-03-02 15:05:55 -05:00
Kevin
b4b0137e3f - forgot to capitalize 'by' in 'getTrafficById' 2022-03-02 14:43:56 -05:00
Kevin
727617342f Fix bad dict (keys missing quotes) 2022-02-26 22:56:25 -05:00
Kevin
1403c746f4 Implement 'traffic' endpoint of 'System' API 2022-02-26 22:53:30 -05:00
Kevin
608d4bfe10 Add traffic endpoint for System API 2022-02-26 19:45:07 -05:00
be52fae1c3 0.1 2021-03-17 09:31:43 +01:00
da044e918f typo fixed … 2021-01-28 17:21:21 +01:00
98d6beaffa fixed __eq__ comparison for System 2020-10-28 10:24:12 +01:00
7b6e31e51d cmdr model: fixed hidden sys/coords 2020-10-21 03:34:28 +02:00
3a25c73e56 me == stoopid 2020-10-21 03:22:19 +02:00
be921a4f83 cmdr model: fixed for hidden activity 2020-09-29 11:07:00 +02:00
468c3fc5f9 README: fixed Discord invite 2020-04-24 10:25:46 +02:00
0f452ae401 Positinable.distanceTo is now single dispatch
… but a) that only works for methods in 3.8 so I had to use a wrapper
and b) I don’t know if/how I can actually check for an instance of
Positionable as argument … so it’s kind of half of what I wanted it to
be.
2020-01-17 17:52:58 +01:00
36a660f240 added dateutil dependency 2020-01-16 19:32:49 +01:00
dc18cbb914 Commander.lastActivity is now a proper datetime 2020-01-16 18:16:07 +01:00
82519b9d66 fixed cmdr profile url handling
Will now properly react to a public commander with a hidden profile.
2020-01-13 22:53:24 +01:00
a2c9fb1540 reworded exception messages
now more human readable, less debugging focused
2020-01-13 22:23:02 +01:00
9661e62852 Revert "test data changed"
This reverts commit afde1c4ca2.
2020-01-13 22:13:47 +01:00
f280919e1a spring cleaning 2020-01-13 21:53:40 +01:00
95cfe233da removed unittest requirement. built-in and all … 2020-01-13 20:44:07 +01:00
b476c34de5 system list now sorted by default 2020-01-08 14:52:02 +01:00
b7e8060ce2 added requirements.txt 2020-01-08 14:45:46 +01:00
7c20bc4284 Systems are now comparable! 2020-01-08 14:45:31 +01:00
8e27ffd30e removed obsolete import 2020-01-08 14:40:02 +01:00
318ad17011 implemented Systems endpoint of the Systems API 2020-01-08 13:42:17 +01:00
ef36127bb9 added distaneTo to Commander and System models
They do now implement a “Positionable” interface that allows to
calculate distances to other Positionables or a dict of x,y,z
coordinates.
2020-01-08 11:14:18 +01:00
3909728056 removed obsolete cache.py 2019-12-27 01:24:07 +01:00
c5e5a12086 indentation 2019-12-26 23:57:03 +01:00
14b9fb4965 fixed get parameter handling
Starting to learn how to do things the Python way … it’s a rocky road :)
2019-12-26 23:53:38 +01:00
afde1c4ca2 test data changed
somehow our test planet is now appearing as tidally locked in the database when
it wasn’t before; even though orbital period is still ≠ rotational period.
2019-12-26 23:50:51 +01:00
105a08a683 added Commander model and logs/get-position endpoint 2019-11-24 22:39:18 +01:00
ce11595a38 fixed some test case style … 2019-11-24 22:27:13 +01:00
ca57e86d22 made exception.ServerError more descriptive 2019-11-24 21:58:16 +01:00
8fa672ba28 systemsApi: fixed SystemNotFoundError message 2019-11-24 21:58:16 +01:00
16026bab51 updated README 2019-11-14 08:16:35 +01:00
2877d97102 fixed wonky system names
Now url ecoding system names. Fixes problems with e.g. `+`
(BD+<something>) and `[]` in system names.

fixes #1
2019-11-12 10:06:57 +01:00
e32446f3bd Makefile fixed for std python alternatives config 2019-11-12 10:05:50 +01:00
3c93f24966 docstring copypasta error 2019-11-02 00:58:48 +01:00
f0a54a7fe4 added bodyCount property to System model 2019-10-04 00:07:11 +02:00
d3a4a876ac added Bodies endpoint for the System API
without the actual model for bodies yet, because the first thing I need
is adding a `bodyCount` to the `System` model …
2019-10-04 00:00:17 +02:00
5c22a52291 fetch() now returns self 2019-09-22 03:55:22 +02:00
7f7e24c8a6 added Discord link to README 2019-09-22 03:50:50 +02:00
ed79aaae5d completely refactored models.System
It now allows for

a) instancing with name, id and coords; this will be useful for the
systemAPI implementation that returns lists of systems
b) on-demand fetching data from the API
2019-09-22 03:39:51 +02:00
420e59dcf6 added bare bones README 2019-09-18 16:40:28 +02:00
a3928fbc89 did i forget something? nah. 2019-09-18 16:34:31 +02:00
3a06f26f62 LICENSE added (GPL v3) 2019-09-18 16:18:17 +02:00
381f2ea09a added ALL the missing docstrings 2019-09-18 16:09:50 +02:00
db59cd39c1 fixed docstring copypasta error 2019-09-18 16:08:25 +02:00
9e48c8fd30 defaulted optional attributes to None 2019-09-18 16:05:48 +02:00
ec5964db21 Status.lastUpdate is now a proper datetime 2019-09-18 15:59:14 +02:00