#favorite #utilities #bilibili #data-structures #fav #resources #sets

fav_utils

Fav's utils crate; A collection of utilities and data structures for the fav project

21 releases

0.0.15 Nov 25, 2024
0.0.14 Sep 5, 2024
0.0.12 Jun 18, 2024
0.0.4 May 16, 2024
0.0.1-beta4 Feb 24, 2024

#710 in Web programming

Download history 158/week @ 2024-09-01 8/week @ 2024-09-08 27/week @ 2024-09-15 20/week @ 2024-09-22 8/week @ 2024-09-29 4/week @ 2024-10-06 1/week @ 2024-10-13 3/week @ 2024-11-03 1/week @ 2024-11-17 148/week @ 2024-11-24 9/week @ 2024-12-01

158 downloads per month
Used in fav_cli

MIT license

90KB
2K SLoC

This utils is an example for fav_core.

fav_core

fav_core provides the core traits needed to create an app, which fetch your remote favorite sets(lists), and pull tracked resources to local.

fav_utils

fav_utils provides the utilities for fav_cli, which now only support bilibili(Like Chinese Youtube).

I really want to support more websites, and make utils and cli more generic to use, but I don't have enough time to do that. So if you like, you can make use of fav_core to create your own app!!!

All you need is to define data structures with protobuf like this example.

And impl traits in fav_core like Res, Set, Sets, Status, Attr to defined resources, and AuthOps, SetOps, SetsOps to operate resources.

After that, many Ext method will be available for you to use, helping you batchly operating resource, getting subset of resource, and so on.

Examples can be find here

Dependencies

~16–31MB
~478K SLoC