nekos-best: Unofficial nekos.best API wrapper

[ catgirls, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

The Nekos.best API Wrapper in Haskell is a powerful and flexible tool designed to interact seamlessly with the Nekos.best API, a popular service for fetching adorable and charming neko-themed images and more


[Skip to Readme]

Modules

  • NekosBest
    • NekosBest.API
    • NekosBest.Category
    • NekosBest.Error

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0
Dependencies aeson (>=2.1.2.1 && <2.2), base (>=4.16.4.0 && <4.17), bytestring (>=0.11.4.0 && <0.12), containers (>=0.6.5.1 && <0.7), http-client (>=0.7.13.1 && <0.8), http-client-tls (>=0.3.6.2 && <0.4), http-types (>=0.12.3 && <0.13), random (>=1.2.1 && <1.3) [details]
License MIT
Author xQuantx
Maintainer xquantxz@gmail.com
Category Catgirls
Home page https://github.com/xquantxz/nekos-best.hs
Bug tracker https://github.com/xquantxz/nekos-best.hs/issues
Source repo head: git clone https://github.com/xquantxz/nekos-best.hs
this: git clone https://github.com/xquantxz/nekos-best.hs(tag v0.2.0.0)
Uploaded by xQuantx at 2023-07-27T11:15:29Z
Distributions
Downloads 107 total (7 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-07-27 [all 2 reports]

Readme for nekos-best-0.2.0.0

[back to package description]

nekos-best

Haskell wrapper for nekos.best API

Examples

Get a neko image

import NekosBest.API (getNbImage)
import qualified NekosBest.Category as C

main = do
    res <- getNbImage C.Neko
    print res

For random images you can use randomNbImage passing a RandomGen value

import NekosBest.API (randomNbImage)
import qualified NekosBest.Category as C

main = do
    gen <- getStdGen
    (res, gen') <- randomNbImage gen
    print res


Downloading an image

import NekosBest.API (getNbImage, downloadNbImage)
import qualified NekosBest.Category as C

main = do
    res <- getNbImage C.Neko
    mapM_ (\x -> downloadNbImage x "filename") res