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: 5 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T20:50:26.000Z (over 2 years ago)
- Last Synced: 2025-01-20T20:59:26.363Z (6 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
[](https://github.com/mofeing/PkgMetadata.jl/actions/workflows/CI.yml)
[](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")
```