Repolib

Latest version: v1.5.1

Safety actively analyzes 619566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.0

New features this release:

* New ident field for easier working with specific sources
* Ident to eventually replace filename field
* Added a re-implementation of add-apt-repository from software-properties
* New module function to get a list with all sources inside it
* Added polkit integration to fallback and get permissions without root
* New CLI command for interacting with sources
* CLI interface now creates legacy-format sources by default.

1.0.1

This release improves the Debian Repository Line parser to better filter options where we need to. The code which matches the URI and Options portions of the line are now Regex based, with a much better tolerance for matching the correct strings and separating them out from the rest of the line (so that it can be parsed more simply).

This change allows RepoLib to have much more reliable option and URI matching, which will work even if the options or URI have square brackets and if an option has a colon (and thus looks like a URI). This limitation does preclude support for `cdrom:` repositories being entered using a deb-line, however they can still be entered manually through `apt-manage add` (with no arguments) or using a GUI tool like Repoman.

This change actually gives RepoLib more compliant parsing than `software-properties`, which only supports the `Architectures:` option in a line. Any other options must be added to the line manually afterwards. RepoLib will correctly parse lines like:

`deb [arch=amd64 lang=en_US,en_CA] http://example.com/ release main nonfree`

into a correct repository, whereas performing this operation using `add-apt-repository` fails, claiming the repository is invalid.

1.0.0

This is the first stable release of RepoLib.

RepoLib is a Python library and CLI tool-set for managing your software system software repositories. It's currently set up to handle APT repositories on Debian-based linux distributions.

RepoLib is intended to operate on DEB822-format sources. It provides basic feature parity with software-properties for most common functions, such as adding/removing repositories, expanding ppa:owner/name repositories to full repo lines, fetching keys for PPAs, and listing software sources.

It provides a library for interacting with software sources as well as a CLI tool implementing that library.

0.0.7alpha

This is the initial public release of RepoLib.

RepoLib is a Python library and CLI tool-set for managing your software system software repositories. It's currently set up to handle APT repositories on Debian-based linux distributions.

RepoLib is intended to operate on DEB822-format sources. It provides basic feature parity with software-properties for most common functions, such as adding/removing repositories, expanding `ppa:owner/name` repositories to full repo lines, fetching keys for PPAs, and listing software sources.

It provides a library for interacting with software sources as well as a CLI tool implementing that library.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.