package starred_ml
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=79bab75e5c1088e1f986f6ff1a957f522ffc1d6b5a7462c97972ad73f1d39a6b
sha512=e121bbc7a38132aa16794a8e970d609b44151f76effed52cd20cb658f5254224c32ab3325f646a8b40d9bec08fa696acb9fd53a8e4c3faf291de53f4d0c31ca7
Description
Turn your starred items into a awesomeness list of repos
Added to opam-repository:
README
Starred_ml - Github Awesome list based on starred proejct
Are you a compulsive Github stargazer? Starred_ml is here for you! It will access Github https://api.github.com/user/starred API and fetch all starred repositories and dump a mardown that you can use as README.md in a repository.
Running
opam update
opam install starred_ml
TOKEN={{your github personal token}} starred_ml render > README.mdFor full option list, run starred_ml --help.
Development
Clone the repo, then create and configure an opam switch:
opam switch create starred_ml ocaml-base-compiler.5.4.1
eval $(opam env --switch=starred_ml)
opam install . --deps-only --with-test -yBuild and run tests:
dune build
dune testSee Templating section for details on the output markdown.
Will output something liket this:
Awesome Stars
===
> A curated list of Github stars! Generated by [starred_ml](https://github.com/paulosuzart/starred_ml)
Languages
---
Total of `7` Languages starred:
- [C](#C)
- [C#](#C#)
- [C++](#C++)
- [Haskell](#Haskell)
- [Java](#Java)
- [Jupyter Notebook](#Jupyter-Notebook)
- [Lua](#Lua)
...
Contents
---
## C
- [pikasTech/PikaPython](https://api.github.com/repos/pikasTech/PikaPython) - An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
## C#
- [microsoft/kiota](https://api.github.com/repos/microsoft/kiota) - OpenAPI based HTTP Client code generator
...Generating your awesome README.md
You can run starred_ml locally, but it makes more sense that you atomatically generate a README.md in dedicated github repository. For that you can use my Awesome as a template https://github.com/paulosuzart/awesome.
You need two things:
- Select
Allow GitHub Actions to create and approve pull requestsunder (YOUR REPO)/Settings/Actions/General. - A PAT Personal Access Token with starred read-only access that you must set to your awesome repository under (YOUR REPO)/Settings/Secrets and variables/Actions, then in the
Repository Secretsyou can add your generated token with the nameTOKEN.
Templating
Starred_ml uses jingoo as a template engine. Create a template file (default is default.jingoo) if you want to customize. You can reuse the provided template here and customize as you see fit. You can save the template with a different name. Use --template the specify a different template file.
The availabe variables are:
lang_count- The total count of languages found (IncludingNot set)languages- a list of languages detected across all starred repos.by_language- a list of objects representing starred repositories with the following keys:language- the slug language of in questionstarred- a list of objects with the following keys:name- name of the repositorylanguage- slug version of the languagehtml_url- Github urldescription- repository descriptionowner_login- the repository owner login
Similar projects
While developing Starred_ml I found at least one alternative:
- smaguowei/starred written in python. I then proceeded to use a similar output
Dependencies (15)
-
dune
>= "3.21" -
ocaml
>= "5.5.0" -
cohttp-eio
>= "6.2.1" -
eio
>= "1.6" -
eio_main
>= "1.6" -
fmt
>= "0.9.0" -
jingoo
>= "1.5.2" -
logs
>= "0.7.0" -
mirage-crypto-rng
>= "1.2.0" -
ppx_deriving
>= "5.2.1" -
ppx_deriving_yojson
>= "3.7.0" -
tls-eio
>= "1.0.4" -
yojson
>= "2.1.2" -
re2
>= "v0.16.0" -
cmdliner
>= "1.2.0"
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building starred_ml with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1.0 (this version) | n/a | n/a | n/a | n/a | good |
| 0.0.9 | n/a | n/a | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure