Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mofeing/pkgmetadata.jl
Parse metadata from Project.toml files of installed packages
https://github.com/mofeing/pkgmetadata.jl
entrypoint julia metadata pkg
Last synced: about 2 months ago
JSON representation
Parse metadata from Project.toml files of installed packages
- Host: GitHub
- URL: https://github.com/mofeing/pkgmetadata.jl
- Owner: mofeing
- License: apache-2.0
- Created: 2023-01-15T16:41:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T20:50:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T23:06:07.614Z (about 2 months ago)
- Topics: entrypoint, julia, metadata, pkg
- Language: Julia
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PkgMetadata.jl
[![CI](https://github.com/mofeing/PkgMetadata.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/mofeing/PkgMetadata.jl/actions/workflows/CI.yml)
[![codecov](https://codecov.io/gh/mofeing/PkgMetadata.jl/branch/master/graph/badge.svg?token=5KHAT87GIF)](https://codecov.io/gh/mofeing/PkgMetadata.jl)A small library for parsing `[metadata]` of `Project.toml` files from installed packages in the environment.
An example is shown in `test/PkgDemo`.
```toml
name = "PkgDemo"
uuid = "3736cb39-e601-445f-987c-61a75079cc79"[metadata]
target = "greet"
array = ["hello", "world"][metadata.sub]
subtarget = "subgreet"
````PkgMetadata` exports the `metadata` function which returns a `Dict` from package names to parsed metadata. If `PkgDemo` is added to the current environment, the result will be the following:
```julia
julia> using PkgMetadatajulia> metadata()
Dict{String, Dict{String, Any}} with 1 entry:
"PkgDemo" => Dict("sub"=>Dict{String, Any}("subtarget"=>"subgreet"), "array"=>["hello", "world"], "target"=>"greet")
```