Last updated:
0 purchases
otlet 1.0.0.post1
Zero-dependency, pure-python wrapper for the PyPI JSON Web API.
Installing
Otlet supports Python 3.6 and above, but at least Python 3.8 is recommended.
The simplest method is installing otlet from PyPI using pip:
pip install -U otlet
Examples
Print a list of available versions for a package:
from otlet.api import PackageObject
pkg = PackageObject("pygame")
print("All available versions for pygame:")
for ver in pkg.releases:
print(ver)
Print a list of a dependency's dependencies:
from otlet.api import PackageObject
pkg = PackageObject("Sphinx")
requests = pkg.dependencies[13]
requests.populate()
print("All dependencies of the 'Sphinx' dependency, 'requests':")
for dep in requests.dependencies:
print(dep.name)
Development
If you plan to contribute to otlet and clone the repository, make sure you have installed the Poetry dependency management system, then run the following commands to set up your environment:
poetry install # to set up virtualenv, and install all dev dependencies
git config --local core.hooksPath .githooks/ # add otlet's hooks to your local repo config
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.