Releases: ritikmishra/anacreonlib
Releases · ritikmishra/anacreonlib
v2.1.0b1
v2.0.1
fix some deserialization issues
maxTradeRoutes
is now optional forOwnedWorld
targetTechLevel
andtargetPopulation
have been added as optional fields toWorld
anacreonlib v2.0.0
The old version of anacreonlib, first published on github in 2018, was kind of bad for several reasons
- Everything was a dict which was directly retrieved from the Anacreon API
- You were forced to vendor
anacreonlib
as a dependency inside your project - Documentation about what fields were actually contained inside objects was basically non-existent
I have spent some time basically rewriting anacreonlib from scratch
high level overview of what's new
- uses
asyncio
, so you don't have to use threads for concurrency - there is actual documentation you can go read
- supports type checkers like
mypy
- uses
pydantic
to deserialize JSON values coming in from the Anacreon API into real Python objects (i.e you get IDE autocomplete on them)
- uses
- you can install using pip now (instead of extracting a zip file into your repo)