tracking of upstream project metadata
Project description
Upstream Ontologist
The upstream ontologist provides a common interface for finding metadata about upstream software projects.
It will gather information from any sources available, prioritize data that it has higher confidence in as well as report the confidence for each of the bits of metadata.
The ontologist originated in Debian and the currently reported metadata fields are loosely based on DEP-12, but it is meant to be distribution-agnostic.
Provided Fields
Standard fields:
Homepage
: homepage URLName
: human name of the upstream projectContact
: contact address of some sort of the upstream (e-mail, mailing list URL)Repository
: VCS URLRepository-Browse
: Web URL for viewing the VCSBug-Database
: Bug database URL (for web viewing, generally)Bug-Submit
: URL to use to submit new bugs (either on the web or an e-mail address)Screenshots
: List of URLs with screenshotsArchive
: Archive used - e.g. SourceForgeSecurity-Contact
: e-mail or URL with instructions for reporting security issuesDocumentation
: Link to documentation on the web
Extensions for upstream-ontologist, not defined in DEP-12:
X-SourceForge-Project
: sourceforge project nameX-Wiki
: Wiki URLX-Summary
: one-line description of the projectX-Description
: longer description of the projectX-License
: Single line license (e.g. "GPL 2.0")X-Copyright
: List of copyright holdersX-Version
: Current upstream versionX-Security-MD
: URL to markdown file with security policyX-Author
: List of people who contributed to the projectX-Maintainer
: The maintainer of the project
Supported Data Sources
At the moment, the ontologist can read metadata from the following upstream data sources:
- Python package metadata (PKG-INFO, setup.py, setup.cfg, pyproject.timl)
- package.json
- composer.json
- package.xml
- Perl package metadata (dist.ini, META.json, META.yml, Makefile.PL)
- Perl POD files
- GNU configure files
- R DESCRIPTION files
- Rust Cargo.toml
- Maven pom.xml
- metainfo.xml
- .git/config
- SECURITY.md
- DOAP
- Haskell cabal files
- go.mod
- ruby gemspec files
- nuspec files
- OPAM files
- Debian packaging metadata (debian/watch, debian/control, debian/rules, debian/get-orig-source.sh, debian/copyright, debian/patches)
- Dart's pubspec.yaml
- meson.build
It will also scan README and INSTALL for possible upstream repository URLs (and will attempt to verify that those match the local repository).
In addition to local files, it can also consult external directories using their APIs:
Example Usage
The easiest way to use the upstream ontologist is by invoking the
guess-upstream-metadata
command in a software project:
$ guess-upstream-metadata ~/src/dulwich
X-Security-MD: https://github.com/dulwich/dulwich/tree/HEAD/SECURITY.md
Name: dulwich
X-Version: 0.20.15
Bug-Database: https://github.com/dulwich/dulwich/issues
Repository: https://www.dulwich.io/code/
X-Summary: Python Git Library
Bug-Submit: https://github.com/dulwich/dulwich/issues/new
Alternatively, there is a Python API. There are also autocodemeta
and
autodoap
commands that can generate output in the
codemeta and
DOAP formats, respectively.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file upstream-ontologist-0.1.31.tar.gz
.
File metadata
- Download URL: upstream-ontologist-0.1.31.tar.gz
- Upload date:
- Size: 101.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c1faf073cd9f2cfb43faec3c53a5b69cc7ab4c7aa5d26de66c9877e92e3c26 |
|
MD5 | 84b8655a08405570090707e4ef52af24 |
|
BLAKE2b-256 | 5bb90c673ded2689a96fdcd285716c185382c7779b22f4ffa3c565a82ea34270 |
File details
Details for the file upstream_ontologist-0.1.31-py3-none-any.whl
.
File metadata
- Download URL: upstream_ontologist-0.1.31-py3-none-any.whl
- Upload date:
- Size: 60.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec17679b2a97f8f410baccb87b65a287a6a6c9b79cb5b826e0f97bca8e0048a0 |
|
MD5 | e056140173176371c53ff097940323c9 |
|
BLAKE2b-256 | fdaa95945feb97ffca59a33bb7dd071ee52c6d757fe7b4594c4f30890cf4d39c |