An open API service indexing awesome lists of open source software.

https://github.com/Ueaj-Kerman/PoliticsAndJava

A Simple Politics and War API wrapper for Java
https://github.com/Ueaj-Kerman/PoliticsAndJava

Last synced: 8 months ago
JSON representation

A Simple Politics and War API wrapper for Java

Awesome Lists containing this project

README

          

# PoliticsAndJava
A Simple Politics and War API wrapper for Java

## This is a library bent on distancing the user from the raw api

#### 1. Consistant - trying to make it easier on the eyes and logic

- Consistant naming, similar variable names for things that represent the same thing (alex does this fairly well already though)
- Consistant typing, the current api is ok. it's consistant... consistantly bad LOL GOTEM jk no kill plz
#### 2. Documented - am yet to fully do this though

#### 3. Correct - the main focus of the library, Alex's types are quite jank, "1" and "0" as booleans, doubles in strings, etc.

- Date objects rather than strings
- Lots, and lots, of enums :)
- booleans rather than strings ("1" and "0")
- floats/doubles rather than strings ("12.4534")
- fixing other oddities in the api
- uses Gson, and by extention can handle the occassional malformed json that is given

#### 4. Fast - although this layer of type correction does add a delay, it's not significant built in caching is an important part of the library

- This type correction layer does add a noticable delay, but your actual code will end up running faster, for example, string comparison is much slower than floats and enums.
#### 5. Diverse - will probably copy paste some parts of my old wrapper into this one, such as webscraping and other utilities.

#### 6. Easy to use - throwing somewhat usefull exceptions, well, that's what it attempts atleast.

## This library also includes tons and tons of other epic utilities
- Message automation
- Other web automations
- Web scraping
- Hooks